[Debichem-devel] Bug#462071: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Tue Jan 22 11:34:27 UTC 2008
Package: liboglappth
Version: 0.96-3
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 liboglappth_0.96-3 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"liboglappth\" -DPACKAGE_TARNAME=\"liboglappth\" -DPACKAGE_VERSION=\"0.96\" "-DPACKAGE_STRING=\"liboglappth 0.96\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"liboglappth\" -DVERSION=\"0.96\" -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 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DHAVE_GL_GLUT_H=1 -DSTDC_HEADERS=1 -I. -I. -g -O2 -c base_wcl.cpp -fPIC -DPIC -o .libs/base_wcl.o
> base_wcl.cpp: In member function 'void base_wcl::SetTitle(const char*)':
> base_wcl.cpp:144: error: 'strlen' was not declared in this scope
> base_wcl.cpp:145: error: 'strcpy' was not declared in this scope
> base_wcl.cpp: In member function 'int base_wcl::ogl_GetGlutStringWidth(const char*, void*)':
> base_wcl.cpp:168: error: 'strlen' was not declared in this scope
> base_wcl.cpp: In member function 'void base_wcl::ogl_WriteGlutString3D(const char*, GLfloat, GLfloat, GLfloat, const ogl_obj_loc_data*, void*)':
> base_wcl.cpp:212: error: 'strlen' was not declared in this scope
> base_wcl.cpp:234: error: 'strlen' was not declared in this scope
> make[2]: *** [base_wcl.lo] Error 1
> make[2]: Leaving directory `/build/tbm/liboglappth-0.96/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/build/tbm/liboglappth-0.96'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Debichem-devel
mailing list