Nmap Development mailing list archives

libdnet-stripped compile error on OSX


From: Matt Selsky <selsky () columbia edu>
Date: Thu, 15 Sep 2011 06:57:50 -0400

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)


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


Current thread: