--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: FTBFS with GCC 4.3: missing #includes
- From: Martin Michlmayr <tbm@cyrius.com>
- Date: Wed, 12 Dec 2007 20:22:01 -0700
- Message-id: <20071213032201.GT23895@deprecation.cyrius.com>
- In-reply-to: <20071212021601.825AF460D5@em64t.snowman.net>
- References: <20071212021601.825AF460D5@em64t.snowman.net>
Package: aprsd
Version: 1:2.2.5-13-4
Usertags: ftbfs-gcc-4.3
More pain. :(
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 aprsd_1:2.2.5-13-4 on em64t by sbuild/amd64 0.53
...
> /usr/bin/make all-recursive
> make[2]: Entering directory `/build/tbm/aprsd-2.2.5-13'
> Making all in src
> make[3]: Entering directory `/build/tbm/aprsd-2.2.5-13/src'
> source='aprsd.cpp' object='aprsd.o' libtool=no \
> depfile='.deps/aprsd.Po' tmpdepfile='.deps/aprsd.TPo' \
> depmode=gcc3 /bin/sh ../support/depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -Wall -pipe -pthread -c -o aprsd.o `test -f 'aprsd.cpp' || echo './'`aprsd.cpp
> In file included from /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/strstream:51,
> from aprsd.cpp:56:
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider use of an equivalent, non-deprecated interface for the requested functionality. A list of valid replacements is as follows: Use: Instead of: <sstream>, basic_stringbuf <strstream>, strstreambuf <sstream>, basic_istringstream <strstream>, istrstream <sstream>, basic_ostringstream <strstream>, ostrstream <sstream>, basic_stringstream <strstream>, strstream <unordered_set>, unordered_set <ext/hash_set>, hash_set <unordered_set>, unordered_multiset <ext/hash_set>, hash_multiset <unordered_map>, unordered_map <ext/hash_set>, hash_map <unordered_map>, unordered_multimap <ext/hash_set>, hash_multimap <functional>, bind <functional>, binder1st <functional>, bind <functional>, binder2nd <functional>, bind <functional>, bind1st <functional>, bind <functional>, bind2nd <memory>, unique_ptr <memory>, auto_ptr To disable this warning use -Wno-deprecated.
> In file included from aprsdexception.h:29,
> from mutex.h:36,
> from dupCheck.h:32,
> from aprsd.cpp:75:
> osdep.h: In function 'std::string aprsd::strerror_r(int)':
> osdep.h:91: error: '::strerror_r' has not been declared
> aprsd.cpp: In function 'int serverConfig(const std::string&)':
> aprsd.cpp:227: error: 'strlen' was not declared in this scope
> aprsd.cpp:241: error: 'strdup' was not declared in this scope
> aprsd.cpp:246: error: 'strdup' was not declared in this scope
> aprsd.cpp:299: error: 'strdup' was not declared in this scope
> aprsd.cpp:327: error: 'strdup' was not declared in this scope
> aprsd.cpp:332: error: 'strdup' was not declared in this scope
> aprsd.cpp:337: error: 'strdup' was not declared in this scope
> aprsd.cpp:386: error: 'strdup' was not declared in this scope
> aprsd.cpp:392: error: 'strdup' was not declared in this scope
> aprsd.cpp:395: error: 'strdup' was not declared in this scope
> aprsd.cpp:544: error: 'strdup' was not declared in this scope
> aprsd.cpp:586: error: 'strdup' was not declared in this scope
> aprsd.cpp:771: error: 'strdup' was not declared in this scope
> aprsd.cpp: In function 'int main(int, char**)':
> aprsd.cpp:936: error: 'strcmp' was not declared in this scope
> aprsd.cpp:984: error: 'strcmp' was not declared in this scope
> aprsd.cpp:1118: error: 'strcat' was not declared in this scope
> make[3]: *** [aprsd.o] Error 1
> make[3]: Leaving directory `/build/tbm/aprsd-2.2.5-13/src'
--
Martin Michlmayr
http://www.cyrius.com/
--- End Message ---
--- Begin Message ---
Source: aprsd
Source-Version: 1:2.2.5-13-5
We believe that the bug you reported is fixed in the latest version of
aprsd, which is due to be installed in the Debian FTP archive:
aprsd_2.2.5-13-5.diff.gz
to pool/main/a/aprsd/aprsd_2.2.5-13-5.diff.gz
aprsd_2.2.5-13-5.dsc
to pool/main/a/aprsd/aprsd_2.2.5-13-5.dsc
aprsd_2.2.5-13-5_i386.deb
to pool/main/a/aprsd/aprsd_2.2.5-13-5_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 456059@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Joop Stakenborg <pa3aba@debian.org> (supplier of updated aprsd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 21 Mar 2008 13:02:55 +0100
Source: aprsd
Binary: aprsd
Architecture: source i386
Version: 1:2.2.5-13-5
Distribution: unstable
Urgency: low
Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Changed-By: Joop Stakenborg <pa3aba@debian.org>
Description:
aprsd - Internet Gateway for the Automatic Position Reporting System
Closes: 242497 277788 319725 356081 356110 356237 456059 469217
Changes:
aprsd (1:2.2.5-13-5) unstable; urgency=low
.
* Patch for munging packets with non-print chars. Thanks Kevin, N8VNR.
Closes: #242497.
* Confirm NMU, FTBFS with GCC 4.3: missing #includes. Closes: #456059.
* Confirm NMU, LSB formatted dependency info in init.d script.
Closes: #469217.
* Fix http server output by using VALIGN="MIDDLE" instead of
VALIGN="CENTER". Thanks Jari, OH2LNA. Closes: #277788.
* Remove logfiles when purging the package. Closes: #319725.
* Fix count of connected users, thanks Iain, g7iii.
Closes: #356237.
* Patch by Iain to allow a JavAPRS filter to be specified when it
connects to servers/hubs/igates. Closes: #356081.
* Confirm NMU: FTBFS with G++ 4.1: extra qualifications.
Closes: #356110.
Files:
e3e4613116e24b5b031a8b1235c78f6d 810 hamradio optional aprsd_2.2.5-13-5.dsc
c14765b62586f853fb8da8620119afe1 9004 hamradio optional aprsd_2.2.5-13-5.diff.gz
22925fad31bc4e52329f6d576d578a4a 155180 hamradio optional aprsd_2.2.5-13-5_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFH46s1/CqtjGLxpX8RAkLFAJ9LNF5pLUzdJwIo/z7keF1vtobg/QCg1Qts
Vrt5K51nOfntk1BA7iXUhg0=
=P0hA
-----END PGP SIGNATURE-----
--- End Message ---