[Debichem-devel] Bug#466828: FTBFS with GCC 4.3: missing #includes

Martin Michlmayr tbm at cyrius.com
Thu Feb 21 10:55:36 UTC 2008


Package: psicode
Version: 3.3.0-1
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 from unstable.

> Automatic build of psicode_3.3.0-1 on em64t by sbuild/amd64 0.53
...
> g++  -O3 -m64 -DHAVE_DECL_PUTENV=1 -DHAVE_PUTENV=1 -DHAVE_DECL_SETENV=1 -DHAVE_SETENV=1 -DHAVE_FUNC_ISINF=1 -DLinux -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE       -DUSE_LIBCHKPT    -I. -I../../../include -I/build/tbm/psicode-3.3.0/include -I/build/tbm/psicode-3.3.0/src/lib -I../../../src/lib  -c params.cc -o params.o
> In file included from params.cc:3:
> intco.h:7: warning: 'typedef' was ignored in this declaration
> params.cc: In member function 'void Params::parseInputFile()':
> params.cc:52: warning: deprecated conversion from string constant to 'char*'
> params.cc:52: warning: deprecated conversion from string constant to 'char*'
> params.cc:56: warning: deprecated conversion from string constant to 'char*'
> params.cc:83: warning: deprecated conversion from string constant to 'char*'
> params.cc:85: warning: deprecated conversion from string constant to 'char*'
> params.cc:86: warning: deprecated conversion from string constant to 'char*'
> params.cc:91: warning: deprecated conversion from string constant to 'char*'
> params.cc:105: warning: deprecated conversion from string constant to 'char*'
> params.cc:108: warning: deprecated conversion from string constant to 'char*'
> params.cc:109: warning: deprecated conversion from string constant to 'char*'
> params.cc:111: error: 'strcmp' was not declared in this scope
> params.cc:119: warning: deprecated conversion from string constant to 'char*'
> params.cc:122: warning: deprecated conversion from string constant to 'char*'
> params.cc:123: warning: deprecated conversion from string constant to 'char*'
> params.cc:125: error: 'strcmp' was not declared in this scope
> params.cc:133: warning: deprecated conversion from string constant to 'char*'
> params.cc:134: warning: deprecated conversion from string constant to 'char*'
> params.cc:136: error: 'strcmp' was not declared in this scope
> params.cc:144: warning: deprecated conversion from string constant to 'char*'
> params.cc:145: warning: deprecated conversion from string constant to 'char*'
> params.cc:146: error: 'strcmp' was not declared in this scope
> params.cc:157: warning: deprecated conversion from string constant to 'char*'
> params.cc:163: warning: deprecated conversion from string constant to 'char*'
> params.cc:163: warning: deprecated conversion from string constant to 'char*'
> params.cc:168: warning: deprecated conversion from string constant to 'char*'
> params.cc:169: warning: deprecated conversion from string constant to 'char*'
> params.cc:169: warning: deprecated conversion from string constant to 'char*'
> params.cc:172: error: 'strcmp' was not declared in this scope
> params.cc:183: warning: deprecated conversion from string constant to 'char*'
> params.cc:186: warning: deprecated conversion from string constant to 'char*'
> params.cc:187: warning: deprecated conversion from string constant to 'char*'
> params.cc:189: error: 'strcmp' was not declared in this scope
> params.cc:201: warning: deprecated conversion from string constant to 'char*'
> params.cc:202: warning: deprecated conversion from string constant to 'char*'
> params.cc:210: warning: deprecated conversion from string constant to 'char*'
> params.cc:215: warning: deprecated conversion from string constant to 'char*'
> params.cc:219: warning: deprecated conversion from string constant to 'char*'
> params.cc:226: warning: deprecated conversion from string constant to 'char*'
> params.cc:229: warning: deprecated conversion from string constant to 'char*'
> params.cc: In member function 'void Params::checkIsotopes()':
> params.cc:252: warning: deprecated conversion from string constant to 'char*'
> params.cc:255: warning: deprecated conversion from string constant to 'char*'
> params.cc:265: warning: deprecated conversion from string constant to 'char*'
> params.cc:265: warning: deprecated conversion from string constant to 'char*'
> params.cc:267: error: 'strcmp' was not declared in this scope
> params.cc: In member function 'void Params::checkMasses()':
> params.cc:294: warning: deprecated conversion from string constant to 'char*'
> params.cc:297: warning: deprecated conversion from string constant to 'char*'
> params.cc:307: warning: deprecated conversion from string constant to 'char*'
> params.cc:307: warning: deprecated conversion from string constant to 'char*'
> params.cc: In member function 'void Params::writeMasses()':
> params.cc:328: warning: deprecated conversion from string constant to 'char*'
> params.cc:331: warning: deprecated conversion from string constant to 'char*'
> params.cc:342: warning: deprecated conversion from string constant to 'char*'
> params.cc:342: warning: deprecated conversion from string constant to 'char*'
> make[4]: *** [params.o] Error 1
> make[4]: Leaving directory `/build/tbm/psicode-3.3.0/src/bin/intder'

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





More information about the Debichem-devel mailing list