Bug#461944: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Mon Jan 21 16:27:01 UTC 2008
Package: dasher
Version: 4.4.2-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://gcc.gnu.org/gcc-4.3/porting_to.html
(Sorry, since I filed the last bug, some more headers got cleaned up;
but there won't be any further changes.)
You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.
> Automatic build of dasher_4.4.2-2 on em64t by sbuild/amd64 0.53
...
> Making all in Alphabet
> make[5]: Entering directory `/build/tbm/dasher-4.4.2/Src/DasherCore/Alphabet'
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -g -Wall -O2 -Wall -Wno-non-virtual-dtor -c -o AlphIO.o AlphIO.cpp
> AlphIO.cpp: In member function 'void Dasher::CAlphIO::Save(const std::string&)':
> AlphIO.cpp:227: error: 'strlen' was not declared in this scope
> AlphIO.cpp: In static member function 'static void Dasher::CAlphIO::XML_StartElement(void*, const expat::XML_Char*, const expat::XML_Char**)':
> AlphIO.cpp:384: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:411: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:433: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:445: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:471: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:497: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:524: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:585: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:599: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:626: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:653: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:665: error: 'strcmp' was not declared in this scope
> AlphIO.cpp: In static member function 'static void Dasher::CAlphIO::XML_EndElement(void*, const expat::XML_Char*)':
> AlphIO.cpp:710: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:715: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:720: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:725: error: 'strcmp' was not declared in this scope
> AlphIO.cpp:730: error: 'strcmp' was not declared in this scope
> make[5]: *** [AlphIO.o] Error 1
> make[5]: Leaving directory `/build/tbm/dasher-4.4.2/Src/DasherCore/Alphabet'
> make[4]: *** [all-recursive] Error 1
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-gnome-maintainers
mailing list