Bug#455405: FTBFS with GCC 4.3: #define redefined

2007-12-09 Thread Martin Michlmayr
* Fyodor <[EMAIL PROTECTED]> [2007-12-09 16:37]:
> Thanks for the report, Martin.  Do you think you could try with Nmap
> 4.49RC6 and mail the results to [EMAIL PROTECTED] ?  You can
> obtain it from:
> http://insecure.org/nmap/download.html

I don't see this problem with 4.49RC6 - everything compiles without
any problems.
-- 
Martin Michlmayr
http://www.cyrius.com/



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



Bug#455405: FTBFS with GCC 4.3: #define redefined

2007-12-09 Thread Fyodor
On Sun, Dec 09, 2007 at 04:53:51PM -0700, Martin Michlmayr wrote:
> 
> 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.  GCC 4.3 has converted a number
> of warnings into errors.  With GCC 4.3, you're no longer to
> just redefine a previous #define.  You need to either avoid
> redefinitions directly or to use #ifndef to make sure that something
> has not been defined already.  See
> http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

Thanks for the report, Martin.  Do you think you could try with Nmap
4.49RC6 and mail the results to [EMAIL PROTECTED] ?  You can
obtain it from:

http://insecure.org/nmap/download.html

Also, I think our HAVE_AF_INET6 test macro isn't working on your
system, probably due to the new compiler.  So if you would also send
your nbase/config.log with the report, that would be great.

Thanks,
Fyodor




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



Bug#455405: FTBFS with GCC 4.3: #define redefined

2007-12-09 Thread Martin Michlmayr
Package: nmap
Version: 4.20-3
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.  GCC 4.3 has converted a number
of warnings into errors.  With GCC 4.3, you're no longer to
just redefine a previous #define.  You need to either avoid
redefinitions directly or to use #ifndef to make sure that something
has not been defined already.  See
http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

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 nmap_4.20-3 on em64t by sbuild/amd64 0.53
...
> make[1]: Entering directory `/build/tbm/nmap-4.20'
> Makefile:202: makefile.dep: No such file or directory
> g++ -MM -Ilibdnet-stripped/include -O2 -Wall -D_GNU_SOURCE -Wall  
> -fno-strict-aliasing -Inbase -Insock/include   -DHAVE_CONFIG_H 
> -DNMAP_VERSION=\"4.20\" -DNMAP_NAME=\"Nmap\" 
> -DNMAP_URL=\"http://insecure.org\"; 
> -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" 
> -DNMAPDATADIR=\"/usr/share/nmap\"  main.cc nmap.cc targets.cc tcpip.cc 
> nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc 
> scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc 
> portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc 
> service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc  > 
> makefile.dep
> In file included from nmap.h:124,
>  from main.cc:102:
> nbase/nbase.h:137:26: error: nbase_config.h: No such file or directory
> In file included from nmap.h:124,
>  from nmap.cc:103:
> nbase/nbase.h:137:26: error: nbase_config.h: No such file or directory
> In file included from nmap.h:124,
>  from targets.h:126,
>  from targets.cc:104:
> nbase/nbase.h:137:26: error: nbase_config.h: No such file or directory
> In file included from tcpip.h:111,
>  from tcpip.cc:106:
> nbase/nbase.h:137:26: error: nbase_config.h: No such file or directory

Not sure why this happens.

> nbase/nbase_ipv6.h:125:1: error: "AF_INET6" redefined
> In file included from /usr/include/sys/socket.h:36,
>  from libdnet-stripped/include/dnet/os.h:36,
>  from libdnet-stripped/include/dnet.h:12,
>  from tcpip.cc:105:
> /usr/include/bits/socket.h:110:1: error: this is the location of the previous 
> definition

But this should get fixed.

Although it seems the package builds successfully?

> **
> Built successfully
> Purging /data/tbm/build-snapshot/chroot-unstable4/build/tbm/nmap-4.20
> --
> (Reading database ... 19064 files and directories currently installed.)

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



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