[Pkg-kde-extras] Bug#455373: FTBFS with GCC 4.3: missing #includes

Martin Michlmayr tbm at cyrius.com
Sun Dec 9 22:46:34 UTC 2007


Package: kdebluetooth
Version: 1.0~beta8-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  There's some more information about this at
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of kdebluetooth_1.0~beta8-2 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/build/tbm/kdebluetooth-1.0~beta8/./kdebluetooth/libkbluetooth -I/usr/include/kde -I/usr/share/qt3/include -I.  -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include       -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -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  -c -o sdpdevice.lo /build/tbm/kdebluetooth-1.0~beta8/./kdebluetooth/libkbluetooth/sdpdevice.cpp
> /build/tbm/kdebluetooth-1.0~beta8/./kdebluetooth/libkbluetooth/sdpdevice.cpp: In member function 'void KBluetooth::SDP::Device::updateServices()':
> /build/tbm/kdebluetooth-1.0~beta8/./kdebluetooth/libkbluetooth/sdpdevice.cpp:114: error: 'free' was not declared in this scope
> make[4]: *** [sdpdevice.lo] Error 1
> make[4]: Leaving directory `/build/tbm/kdebluetooth-1.0~beta8/obj-x86_64-linux-gnu/kdebluetooth/libkbluetooth'
> make[3]: *** [all-recursive] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the pkg-kde-extras mailing list