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

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



Package: vrweb
Version: 1.5-16
Usertags: ftbfs-gcc-4.3
Tags: patch

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).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)

> Automatic build of vrweb_1.5-16 on em64t by sbuild/amd64 0.53
...
> g++  -O2  -Dcplusplus_2_1 -DInterViews -Div_nls  -DOSMajorVersion=2 -DOSMinorVersion=0 -DLINUX -DHG_OSMaj=2 -DHG_OSMin=0  -I/build/tbm/vrweb-1.5/installed/include     -pipe  -c /build/tbm/vrweb-1.5/src/harmony/widgets/lib/../widgets/textb.C
> /build/tbm/vrweb-1.5/src/harmony/widgets/lib/../widgets/textb.C: In member function 'void TextBrowser::attractMark(long int, int)':
> /build/tbm/vrweb-1.5/src/harmony/widgets/lib/../widgets/textb.C:697: error: 'labs' was not declared in this scope
> make[5]: *** [textb.o] Error 1

--- harmony/widgets/widgets/textb.C~	2007-04-04 13:04:27.000000000 +0000
+++ harmony/widgets/widgets/textb.C	2007-04-04 13:05:17.000000000 +0000
@@ -76,6 +76,7 @@
 
 #include <X11/keysym.h>
 
+#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 

The build system is rather odd, so I'm not sure if everything works
now.

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



Reply to: