Bug#462379: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Thu Jan 24 11:39:43 UTC 2008
Package: ogre
Version: 1.4.5-3
Severity: important
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 ogre_1.4.5-3 on em64t by sbuild/amd64 0.53
...
> mkdir .libs
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../../../OgreMain/include -DYY_NEVER_INTERACTIVE -DYY_NO_UNPUT -I../../../../RenderSystems/GL/include -I../../../../OgreMain/include -I../../../../PlatformManagers/GLX/include -fvisibility=hidden -fvisibility-inlines-hidden -DOGRE_GCC_VISIBILITY -g -O2 -fPIC -MT nvparse.lo -MD -MP -MF .deps/nvparse.Tpo -c nvparse.cpp -fPIC -DPIC -o .libs/nvparse.o
> nvparse.cpp: In function 'void nvparse(const char*, int, ...)':
> nvparse.cpp:85: error: 'strdup' was not declared in this scope
> nvparse.cpp:177: error: 'free' was not declared in this scope
> make[5]: *** [nvparse.lo] Error 1
> make[5]: Leaving directory `/build/tbm/ogre-1.4.5/RenderSystems/GL/src/nvparse'
> make[4]: *** [all-recursive] Error 1
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list