Bug#364630: FTBFS with GCC 4.2: invalid use of incomplete type
Package: koffice
Version: 1:1.5.0-1
Your package fails to build with GCC 4.2. Version 4.2 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. I assume the problem below is
because G++ is constantly becoming stricter regarding the C++
standard. However, if you believe this is a bug in the compiler
please let me know. You can reproduce the problem with the
gcc-snapshot package.
> Automatic build of koffice_1:1.5.0-1 on test.track.rz.uni-augsburg.de by sbuild/powerpc 0.44
...
> g++ -DHAVE_CONFIG_H -I. -I/build/tbm/koffice-1.5.0/./lib/kross/api -I../../.. -I/build/tbm/koffice-1.5.0/./lib/kross -I../../../lib/kross -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -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 -DHAVE_KNEWSTUFF -fexceptions -c libkrossapi_la.all_cpp.cpp -fPIC -DPIC -o .libs/libkrossapi_la.all_cpp.o
> /build/tbm/koffice-1.5.0/./lib/kross/api/object.h: In static member function 'static T* Kross::Api::Object::fromObject(KSharedPtr<Kross::Api::Object>)':
> /build/tbm/koffice-1.5.0/./lib/kross/api/object.h:202: error: invalid use of incomplete type 'struct Kross::Api::Exception'
> /build/tbm/koffice-1.5.0/./lib/kross/api/object.h:41: error: forward declaration of 'struct Kross::Api::Exception'
> make[6]: *** [libkrossapi_la.all_cpp.lo] Error 1
> make[6]: Leaving directory `/build/tbm/koffice-1.5.0/obj-powerpc-linux-gnu/lib/kross/api'
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: