Nmap Development mailing list archives

Re: Nmap 5.61TEST5 compile error freebsd 6.4


From: olli hauer <ohauer () gmx de>
Date: Mon, 28 May 2012 13:43:36 +0200

On 2012-05-28 04:09, David Fifield wrote:
On Thu, May 24, 2012 at 10:49:28AM -0400, Infraservice hostmaster wrote:

gmake[1]: Entering directory `/var/usr/ports/security/nmap/work/nmap-5.61TEST5/libnetutil'
c++ -c -I../liblinear -I/usr/include/lua -I/usr/local/include/lua51 -I../libdnet-stripped/include 
-I/usr/local/include  -I/usr/local/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 
-fno-strict-aliasing -pipe -I/usr/local/include -Wall -fno-strict-aliasing netutil.cc -o netutil.o
In file included from netutil.cc:127:
/usr/include/netinet/ip.h:160: error: `n_long' does not name a type
/usr/include/netinet/ip.h:163: error: `n_long' does not name a type
gmake[1]: *** [netutil.o] Error 1
gmake[1]: Leaving directory `/var/usr/ports/security/nmap/work/nmap-5.61TEST5/libnetutil'
gmake: *** [netutil_build] Error 2
*** Error code 1

Thank you for the report. It appears this change has already been made
in the 6.00 release; please try it and report back.

David Fifield

Fix is included in FreeBSD nmap-6.00 port so it should work (at last for FreeBSD 7.[0-3]).
http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/nmap/files/patch-libnetutil__netutil.cc?annotate=1.1

BTW: Your FreeBSD-6.4 is EOL since Nov. 2010!
 http://security.freebsd.org/#unsup

Please Note: I plan to remove the fix again with one of the next nmap releases, so please upgrade you OS.

// olli
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: