[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#454818: FTBFS with GCC 4.3: missing #includes



Package: clanlib
Version: 0.6.5-1-4
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 clanlib_0.6.5-1-4 on em64t by sbuild/amd64 0.53
...
> Compile command .c = gcc -fPIC -DDEBUG=1 -I/usr/include/lua40 -Wall -I Sources -I /usr/include/X11 -I /usr/include/X11/X11 -I/usr/include/freetype2 -fPIC -DNOCONTROLS -D__int64=int64_t -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_INT=4 -DCL_SCANDIR="/usr/lib/ClanLib" -DHAVE_LIBZ=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_X11=1 -DUSE_JOY=1 -DUSE_OPENGL=1 -DUSE_VIDMODE=1 -DUSE_CLANSOUND=1 -DUSE_NETWORK=1 -DUSE_DYN=1 -DUSE_GUI=1 -DUSE_LUA=1 -DUSE_MIKMOD=1 -DUSE_PNG=1 -DUSE_JPEG=1 -DUSE_VORBIS=1 -DUSE_TTF=1 -DHAVE_LIBPTHREAD=1 -O2
> Compile command .s = as
> Compiling Sources/Core/System/Generic/cl_assert.cpp
> Compiling Sources/Core/IOData/Generic/datafile_inputprovider.cpp
> Sources/Core/IOData/Generic/datafile_inputprovider.cpp: In member function 'void CL_InputSourceProvider_Datafile::open()':
> Sources/Core/IOData/Generic/datafile_inputprovider.cpp:88: error: 'strlen' was not declared in this scope
> Sources/Core/IOData/Generic/datafile_inputprovider.cpp:96: error: 'strcmp' was not declared in this scope
> Sources/Core/IOData/Generic/datafile_inputprovider.cpp: In member function 'void CL_InputSourceProvider_Datafile::load_resource_ids()':
> Sources/Core/IOData/Generic/datafile_inputprovider.cpp:112: error: 'strlen' was not declared in this scope
> make[1]: *** [Libs/Intermediate/datafile_inputprovider.o] Error 1
> make[1]: Leaving directory `/build/tbm/clanlib-0.6.5-1/build-tree/ClanLib-0.6.5'
> make: *** [debian/stampdir/build] Error 2

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




Reply to: