[Gambas-user] report to gambas-0.74

Charlie Reinl Karl.Reinl at ...9...
Sun Dec 21 14:22:09 CET 2003


Salut Benoît,

3 news:

1 the good:

no problems  on 
	gentoo 1.4 , qt 3.1.2 , gcc 3.2.3 , KDE 3.1.2 , mysql 4.0.13

2 the best (for me and my SuSe 7.2)

	compile with gcc 2.95 

	after some add. work it runs (see Attachment)
	-	Configure takes /opt/kde2 
	-	something in CPICTURE_update_mask not found
	- 	/reconf  says : 	src/exec/Makefile.am:4: library used but `LIBTOOL' not 
defined in `configure.in'

3 the bad
	your FTranslate.class patch don't work (in both)

Thanks for your good job
And luck for 2004

Amicalement Charlie
-------------- next part --------------
If I run ./configure on my SuSE 7.2 KDE 2.2.2
configure find KDE 3.x component headers and KDE 3.x component libraries but in /opt/kde2
After in 'make'. I'v got an Error (see outputs below)

I think there you have still to do something

	checking for QT meta-object compiler... /usr/lib/qt-3.0.5/lib//../bin/moc
	checking for KDE 3.x component headers... /opt/kde2//include/
	checking for KDE 3.x component libraries... /opt/kde2//lib/
	checking for Networking component headers...


	make[5]: Entering directory `/opt/gambas/gambas-0.74/src/lib/qt/kde'
	/bin/sh ../../../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share  -I/usr/lib/qt-3.0.5/include/  -I/opt/kde2//include/    -g -O2 -pipe -Wall -fno-exceptions -g -O0 -c CDialog.cpp
	c++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share -I/usr/lib/qt-3.0.5/include/ -I/opt/kde2//include/ -g -O2 -pipe -Wall -fno-exceptions -g -O0 -Wp,-MD,.deps/CDialog.pp -c CDialog.cpp  -fPIC -DPIC -o CDialog.lo
	In file included from /usr/include/g++/iterator:32,
			from /usr/lib/qt-3.0.5/include/qvaluelist.h:48,
			from /usr/lib/qt-3.0.5/include/qmap.h:47,
			from /usr/lib/qt-3.0.5/include/qmime.h:43,
			from /usr/lib/qt-3.0.5/include/qevent.h:45,
			from /usr/lib/qt-3.0.5/include/qobject.h:45,
			from /usr/lib/qt-3.0.5/include/qwidget.h:43,
			from /usr/lib/qt-3.0.5/include/qcombobox.h:42,
			from /opt/kde2/include/kcolordialog.h:28,
			from CDialog.cpp:30:
	/usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h:337: warning: `offsetof' redefined
	../../../../src/share/common.h:100: warning: this is the location of the previous definition
	In file included from CDialog.cpp:30:
	/opt/kde2/include/kcolordialog.h:33: qtableview.h: No such file or directory
	In file included from CDialog.cpp:30:
	/opt/kde2/include/kcolordialog.h:231: parse error before `{'
	/opt/kde2/include/kcolordialog.h:232: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:232: non-member function `className()' cannot have `const' method qualifier
	/opt/kde2/include/kcolordialog.h:232: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:232: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:232: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:232: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h: In function `class QObject * qObject()':
	/opt/kde2/include/kcolordialog.h:232: invalid use of `this' in non-member function
	/opt/kde2/include/kcolordialog.h:232: warning: control reaches end of non-void function `qObject()'
	/opt/kde2/include/kcolordialog.h: At top level:
	/opt/kde2/include/kcolordialog.h:232: parse error before `private'
	/opt/kde2/include/kcolordialog.h:235: destructors must be member functions
	/opt/kde2/include/kcolordialog.h: In function `class QColor color(int)':
	/opt/kde2/include/kcolordialog.h:239: `colors' undeclared (first use this function)
	/opt/kde2/include/kcolordialog.h:239: (Each undeclared identifier is reported only once
	/opt/kde2/include/kcolordialog.h:239: for each function it appears in.)
	/opt/kde2/include/kcolordialog.h:239: warning: control reaches end of non-void function `color(int)'
	/opt/kde2/include/kcolordialog.h: In function `int numCells()':
	/opt/kde2/include/kcolordialog.h:241: implicit declaration of function `int numRows(...)'
	/opt/kde2/include/kcolordialog.h:241: implicit declaration of function `int numCols(...)'
	/opt/kde2/include/kcolordialog.h: In function `void setShading(bool)':
	/opt/kde2/include/kcolordialog.h:243: `shade' undeclared (first use this function)
	/opt/kde2/include/kcolordialog.h: In function `void setAcceptDrags(bool)':
	/opt/kde2/include/kcolordialog.h:245: `acceptDrags' undeclared (first use this function)
	/opt/kde2/include/kcolordialog.h: In function `int getSelected()':
	/opt/kde2/include/kcolordialog.h:248: `selected' undeclared (first use this function)
	/opt/kde2/include/kcolordialog.h:248: warning: control reaches end of non-void function `getSelected()'
	/opt/kde2/include/kcolordialog.h: At top level:
	/opt/kde2/include/kcolordialog.h:250: parse error before `protected'
	/opt/kde2/include/kcolordialog.h:261: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:265: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:269: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:273: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:277: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:281: virtual outside class declaration
	/opt/kde2/include/kcolordialog.h:285: `class QColor * colors' used prior to declaration
	/opt/kde2/include/kcolordialog.h:288: `int selected' used prior to declaration
	/opt/kde2/include/kcolordialog.h:289: `bool shade' used prior to declaration
	/opt/kde2/include/kcolordialog.h:290: `bool acceptDrags' used prior to declaration
	/opt/kde2/include/kcolordialog.h:292: parse error before `private'
	/opt/kde2/include/kcolordialog.h:294: syntax error before `*'
	/opt/kde2/include/kcolordialog.h:232: warning: `class QMetaObject * staticMetaObject()' declared `static' but never defined
	/opt/kde2/include/kcolordialog.h:232: warning: `class QString tr(const char *, const char * = 0)' declared `static' but never defined
	/opt/kde2/include/kcolordialog.h:232: warning: `class QString trUtf8(const char *, const char * = 0)' declared `static' but never defined
	make[5]: *** [CDialog.lo] Error 1
	make[5]: Leaving directory `/opt/gambas/gambas-0.74/src/lib/qt/kde'
	make[4]: *** [all-recursive] Error 1
	make[4]: Leaving directory `/opt/gambas/gambas-0.74/src/lib/qt'
	make[3]: *** [all-recursive] Error 1
	make[3]: Leaving directory `/opt/gambas/gambas-0.74/src/lib'
	make[2]: *** [all-recursive] Error 1
	make[2]: Leaving directory `/opt/gambas/gambas-0.74/src'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/opt/gambas/gambas-0.74'
	make: *** [all-recursive-am] Error 2

Not knowing how to do it, I just set your have_kde in all cases to 'no'

	checking for QT meta-object compiler... /usr/lib/qt-3.0.5/lib//../bin/moc
	checking for KDE 3.x component headers... /opt/kde2//include/
	checking for KDE 3.x component libraries... /opt/kde2//lib/
	configure: warning: *** KDE 3.x component is disabled
	checking for Networking component headers...

Now 'make' gave me an ERROR in CPICTURE.cpp at line 372
I just commented it out.

Can you tell me if you have a work around ??
Here my new code.

	PUBLIC void CPICTURE_update_mask(CPICTURE *_object)
	{
	// if (THIS->pixmap && THIS->pixmap->hasAlpha())
	//   THIS->pixmap->setMask(THIS->pixmap->createHeuristicMask());
	}

This is the output after 	./reconf
	src/exec/Makefile.am:4: library used but `LIBTOOL' not defined in `configure.in'


Here the warnings ( on my changed configure)

	configure: warning: *** internationalization is disabled
	configure: warning: *** charset conversion is disabled
	configure: warning: *** KDE 3.x component is disabled
	configure: warning: *** PostgreSQL driver is disabled
	configure: warning: *** SDL component is disabled


More information about the User mailing list