Nmap Development mailing list archives

Re: libdnet-stripped compile error on OSX


From: David Fifield <david () bamsoftware com>
Date: Fri, 16 Sep 2011 23:46:28 -0700

On Thu, Sep 15, 2011 at 06:57:50AM -0400, Matt Selsky wrote:
This is svn trunk:

$ make
[...]
Compiling libdnet
Making all in include
make  all-recursive
Making all in dnet
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include  -I../include   -g -O2 -Wall -c -o 
intf.lo intf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c intf.c -o intf.o
intf.c: In function ‘_intf_get_noalias’:
intf.c:395: error: ‘SIOCGIFINDEX’ undeclared (first use in this function)
intf.c:395: error: (Each undeclared identifier is reported only once
intf.c:395: error: for each function it appears in.)
intf.c:397: error: ‘struct ifreq’ has no member named ‘ifr_ifindex’
make[2]: *** [intf.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [dnet_build] Error 2


SIOCGIFINDEX isn't defined on OSX.  This was changed in r26257 (Tue Aug 30 23:55:07 2011 +0000)

I think this is fixed now in r26603.

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

Current thread: