Thank you for the report Martin, this issue has now been fixed in the
upstream branch.

 http://fivebits.net/proj/mrd6/changeset/1695

Hugo

On 4/2/07, Martin Michlmayr <[EMAIL PROTECTED]> wrote:
Package: mrd6
Version: 0.9.5-release-1
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.

> Automatic build of mrd6_0.9.5-release-1 on coconut0 by sbuild/ia64 0.49
...
> make[1]: Entering directory `/build/tbm/mrd6-0.9.5-release/src'
> C++ address.cpp
> address.cpp: In member function 'bool inet6_addr::set(const std::string&)':
> address.cpp:160: error: 'strtol' was not declared in this scope
> make[1]: *** [address.o] Error 1

--- src/address.cpp~    2007-04-02 19:00:41.000000000 +0000
+++ src/address.cpp     2007-04-02 19:00:50.000000000 +0000
@@ -27,6 +27,7 @@
 #include <sys/socket.h>
 #include <arpa/inet.h>

+#include <cstdlib>
 #include <cstdio>

 base_stream &operator << (base_stream &os, const inet6_addr &addr) {

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





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to