Bug#456067: FTBFS with GCC 4.3: missing #includes
Package: ax25mail-utils
Version: 0.11-4
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 ax25mail-utils_0.11-4 on em64t by sbuild/amd64 0.53
...
> Making all in routes
> make[3]: Entering directory `/build/tbm/ax25mail-utils-0.11/routes'
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -funsigned-char -c update_routes.cc
> update_routes.cc: In member function 'route_addr& route_addr::operator=(const route_addr&)':
> update_routes.cc:36: error: 'strcpy' was not declared in this scope
> update_routes.cc: In constructor 'route_addr::route_addr()':
> update_routes.cc:46: error: 'strcpy' was not declared in this scope
> update_routes.cc: In function 'void add_record(char*, char*, time_t)':
> update_routes.cc:66: error: 'strcpy' was not declared in this scope
> update_routes.cc:73: error: 'strcmp' was not declared in this scope
> update_routes.cc:79: error: 'strcmp' was not declared in this scope
> update_routes.cc:83: error: 'strcmp' was not declared in this scope
> update_routes.cc:95: error: 'strcpy' was not declared in this scope
> update_routes.cc: In function 'void read_database()':
> update_routes.cc:122: error: 'strcpy' was not declared in this scope
> update_routes.cc:127: error: 'strncpy' was not declared in this scope
> update_routes.cc: In function 'bool read_source_route(char*, int, char*, time_t*)':
> update_routes.cc:147: error: 'strcpy' was not declared in this scope
> update_routes.cc:151: error: 'strncmp' was not declared in this scope
> update_routes.cc:152: error: 'strncmp' was not declared in this scope
> update_routes.cc:154: error: 'strstr' was not declared in this scope
> update_routes.cc: In function 'void update_bbs(char*)':
> update_routes.cc:181: error: 'strncpy' was not declared in this scope
> update_routes.cc:203: error: 'strcpy' was not declared in this scope
> update_routes.cc:205: error: 'strlen' was not declared in this scope
> make[3]: *** [update_routes.o] Error 1
> make[3]: Leaving directory `/build/tbm/ax25mail-utils-0.11/routes'
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: