Bug#461954: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Mon Jan 21 16:43:34 UTC 2008
Package: pokerth
Version: 0.6-1-1
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://gcc.gnu.org/gcc-4.3/porting_to.html
You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.
> Automatic build of pokerth_0.6-1-1 on em64t by sbuild/amd64 0.53
...
> g++ -c -pipe -fpermissive -O2 -Wall -W -D_REENTRANT -DQT_SHARED -DPOKERTH_DEDICATED_SERVER -DENABLE_IPV6 -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4 -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/gui/qt -Isrc/gui/qt/qttools -Isrc/gui/qt/qttools/nonqthelper -Isrc/net -Isrc/engine/local_engine -Isrc/engine/network_engine -Isrc/config -Isrc/core/tinyxml -Isrc/core -Imocs -Iuics -o obj/convhelper.o src/core/linux/convhelper.cpp
> src/core/linux/convhelper.cpp: In static member function 'static std::string ConvHelper::NativeToUtf8(const std::string&)':
> src/core/linux/convhelper.cpp:54: error: 'strerror' was not declared in this scope
> src/core/linux/convhelper.cpp:60: error: 'strerror' was not declared in this scope
> src/core/linux/convhelper.cpp: In static member function 'static std::string ConvHelper::Utf8ToNative(const std::string&)':
> src/core/linux/convhelper.cpp:88: error: 'strerror' was not declared in this scope
> src/core/linux/convhelper.cpp:94: error: 'strerror' was not declared in this scope
> make[2]: *** [obj/convhelper.o] Error 1
> make[2]: Leaving directory `/build/tbm/pokerth-0.6-1'
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list