Bug#455428: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Mon Dec 10 00:28:47 UTC 2007
Package: libccscript3
Version: 1.1.6-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 libccscript3_1.1.6-2 on em64t by sbuild/amd64 0.53
...
> Making all in modules
> make[2]: Entering directory `/build/tbm/libccscript3-1.1.6/modules'
> g++ -DHAVE_CONFIG_H -I. -I. -I../src -I./../src -fPIC -DPIC -g -Wall -O2 -D_GNU_SOURCE -c -o math.o math.cpp
> math.cpp: In function 'long int ccscript3Extension::fRandom(long int*, unsigned int)':
> math.cpp:78: error: 'rand' was not declared in this scope
> math.cpp:78: error: 'RAND_MAX' was not declared in this scope
> math.cpp: In function 'long int ccscript3Extension::fPi(long int*, unsigned int)':
> math.cpp:97: error: 'atol' was not declared in this scope
> math.cpp: In member function 'const char* ccscript3Extension::MathChecks::chkRandom(ost::Script::Line*, ost::ScriptImage*)':
> math.cpp:180: error: 'atoi' was not declared in this scope
> math.cpp: In member function 'bool ccscript3Extension::MathMethods::scrSeed()':
> math.cpp:215: error: 'atoi' was not declared in this scope
> math.cpp:215: error: 'srand' was not declared in this scope
> math.cpp: In member function 'bool ccscript3Extension::MathMethods::scrRandom()':
> math.cpp:230: error: 'atoi' was not declared in this scope
> math.cpp:234: error: 'atoi' was not declared in this scope
> math.cpp:244: error: 'atoi' was not declared in this scope
> math.cpp:248: error: 'atoi' was not declared in this scope
> math.cpp:248: error: 'srand' was not declared in this scope
> math.cpp:252: error: 'atoi' was not declared in this scope
> math.cpp:256: error: 'atoi' was not declared in this scope
> math.cpp:260: error: 'atoi' was not declared in this scope
> math.cpp:264: error: 'atoi' was not declared in this scope
> math.cpp:283: error: 'rand' was not declared in this scope
> math.cpp:283: error: 'RAND_MAX' was not declared in this scope
> make[2]: *** [math.o] Error 1
> make[2]: Leaving directory `/build/tbm/libccscript3-1.1.6/modules'
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-voip-maintainers
mailing list