Nmap Development mailing list archives
Re: AIX libdnet-stripped patch
From: "Peter O'Gorman" <nmap-dev () mlists thewrittenword com>
Date: Wed, 23 Nov 2011 11:50:50 -0600
On Tue, Nov 22, 2011 at 04:24:06PM -0800, David Fifield wrote:
On Fri, Nov 18, 2011 at 11:02:12AM -0600, Peter O'Gorman wrote:Hi, This patch http://code.google.com/p/libdnet/issues/detail?id=23 gave us a fully working nmap-5.51 on AIX 5.2, 5.3, 6.1 and 7.1. I had thought that submitting it to libdnet was appropriate, but it doesn't appear to be that active.Could you try the latest Subversion release? I recently did a lot of AIX portability work, including merging a patch that was originally by you. Here's the CHANGELOG entry for it:
Ok, I built todays svn on AIX 5.2 with IBM xlc. This is the minimal patch to get `./nmap -A other-host-on-lan' working. net/if_arp.h can not be included without first including net/if.h, this is a problem in libnetutil/netutil.cc and tcpip.cc. -Wall isn't a portable compiler flag. A number of macros in libdnet-stripped/include/dnet/icmp.h conflict with macros in /usr/include/netinet/ip_icmp.h (errors with already defined with a different definition). These macros do not appear to be used by nmap. IPV6_HOPLIMIT etc are defined on AIX 6, but not earlier. Because we have a newer version of autoconf, it goes with the compiler result instead of the preprocessor result when checking for headers, so it says that we don't have net/route.h, and ends up building route-none.c. including sys/socket.h for the header checks fixes it. There are other problems with dependencies, -MM is a gcc flag, other compilers have issues with it, I just typed `gmake' multiple times to get around it rather than including a patch here. Peter -- Peter O'Gorman pogma () thewrittenword com
Attachment:
aix.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- AIX libdnet-stripped patch Peter O'Gorman (Nov 18)
- Re: AIX libdnet-stripped patch David Fifield (Nov 22)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Nov 22)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Nov 23)
- Re: AIX libdnet-stripped patch David Fifield (Nov 22)