Bug 165779 - kst 1.6/1.7 does not build due to "'KstWaitCondition' does not name a type"
Summary: kst 1.6/1.7 does not build due to "'KstWaitCondition' does not name a type"
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.7.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 10:59 UTC by Funda Wang
Modified: 2008-07-09 01:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
kst/src/widgets/Makefile.in (49.23 KB, text/plain)
2008-07-08 05:39 UTC, Funda Wang
Details
kst/src/widgets/Makefile (49.69 KB, text/plain)
2008-07-08 05:40 UTC, Funda Wang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Funda Wang 2008-07-05 10:59:47 UTC
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
Comment 1 Andrew Walker 2008-07-07 22:09:48 UTC
Could you please attach the Makefile.in and Makefile from kst/src/widgets/
Thanks.
Comment 2 Funda Wang 2008-07-08 05:39:46 UTC
Created attachment 25919 [details]
kst/src/widgets/Makefile.in
Comment 3 Funda Wang 2008-07-08 05:40:00 UTC
Created attachment 25920 [details]
kst/src/widgets/Makefile
Comment 4 Andrew Walker 2008-07-08 23:21:37 UTC
this problem only occurs when ./configure uses the --enable-final flag
Comment 5 Andrew Walker 2008-07-08 23:53:21 UTC
this is a problem going back to at least kst 1.3 when widgets was first separated out into its own folder
Comment 6 Andrew Walker 2008-07-09 01:43:29 UTC
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
Comment 7 Andrew Walker 2008-07-09 01:46:02 UTC
Everything is now compiling with --enable-final