Version: 1.7.0 (using KDE 3.5.9) Installed from: Compiled From Sources Compiler: gcc 4.3.1 OS: Linux When building kst 1.6/1.7 in Mandriva cooker (AKA 2009), it fails at: /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../kst/src/libkst -I../../../kst/src/extdate -I../../../kst/src/libkst -I../libkst -I../../../kst/src/libkstmath -I../../.. -I/opt/kde3/include -I/usr/lib/qt3//include -I/usr/include -I/usr/include/cfitsio -I/usr/include/netcdf-3 -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT libkstwidgets_la.all_cpp.lo -MD -MP -MF .deps/libkstwidgets_la.all_cpp.Tpo -c -o libkstwidgets_la.all_cpp.lo libkstwidgets_la.all_cpp.cpp In file included from ../../../kst/src/libkst/kstdatacollection.h:24, from matrixselector.h:15, from kstwidgets.cpp:23: ../../../kst/src/libkst/kstvector.h:143: warning: type qualifiers ignored on function return type In file included from /usr/lib/qt3//include/qdragobject.h:50, from draggablelistbox.h:22, from plotlistbox.h:21, from kstwidgets.cpp:24: /usr/lib/qt3//include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const': /usr/lib/qt3//include/qimage.h:61: warning: suggest parentheses around && within || /usr/lib/qt3//include/qptrlist.h: In member function 'void QPtrList<type>::deleteItem(void*) [with type = KConfigBackEnd]': kstwidgets.cpp:148: instantiated from here /usr/lib/qt3//include/qptrlist.h:153: warning: possible problem detected in invocation of delete operator: /usr/lib/qt3//include/qptrlist.h:153: warning: invalid use of incomplete type 'struct KConfigBackEnd' /opt/kde3/include/kconfigbase.h:38: warning: forward declaration of 'struct KConfigBackEnd' /usr/lib/qt3//include/qptrlist.h:153: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. mv -f .deps/kstwidgets.Tpo .deps/kstwidgets.Plo In file included from /usr/lib/qt3//include/qdragobject.h:50, from draggablelistbox.h:22, from draggablelistbox.cpp:19, from libkstwidgets_la.all_cpp.cpp:4: /usr/lib/qt3//include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const': /usr/lib/qt3//include/qimage.h:61: warning: suggest parentheses around && within || In file included from ../../../kst/src/libkst/kstobject.h:32, from ../../../kst/src/libkst/kstdatasource.h:32, from ../../../kst/src/libkst/kstdatacollection.h:22, from scalarselector.h:16, from scalarselector.cpp:11, from libkstwidgets_la.all_cpp.cpp:12: ../../../kst/src/libkst/rwlock.h: At global scope: ../../../kst/src/libkst/rwlock.h:57: error: 'KstWaitCondition' does not name a type
Could you please attach the Makefile.in and Makefile from kst/src/widgets/ Thanks.
Created attachment 25919 [details] kst/src/widgets/Makefile.in
Created attachment 25920 [details] kst/src/widgets/Makefile
this problem only occurs when ./configure uses the --enable-final flag
this is a problem going back to at least kst 1.3 when widgets was first separated out into its own folder
SVN commit 829733 by arwalker: CCBUG:165779 fix compile errors with --enable-final M +2 -2 libkst/kstwaitcondition.h M +2 -2 libkstapp/kstgfx2dplotmousehandler.h WebSVN link: http://websvn.kde.org/?view=rev&revision=829733
Everything is now compiling with --enable-final