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

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



Package: mldonkey
Version: 2.9.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://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 mldonkey_2.9.2-2 on em64t by sbuild/amd64 0.53
...
> g++ -Wall -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -o src/utils/lib/CryptoPP.o "-I/usr/lib/ocaml/3.10.0" -c src/utils/lib/CryptoPP.cc
> In file included from src/utils/lib/CryptoPP.cc:85:
> src/utils/lib/CryptoPP.h: In function 'void CryptoPP::GetUserKey(CryptoPP::ByteOrder, T*, unsigned int, const byte*, unsigned int)':
> src/utils/lib/CryptoPP.h:2271: error: there are no arguments to 'memset' that depend on a template parameter, so a declaration of 'memset' must be available
> src/utils/lib/CryptoPP.h:2271: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
> src/utils/lib/CryptoPP.cc: At global scope:
> src/utils/lib/CryptoPP.cc:1726: warning: 'CryptoPP::s_RunAtStartup' defined but not used
> make[1]: *** [src/utils/lib/CryptoPP.o] Error 1

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




Reply to: