Nmap Development mailing list archives
Re: make failed
From: Daniel Miller <bonsaiviking () gmail com>
Date: Sun, 2 Nov 2014 20:59:16 -0600
Robin, Thanks! Your config.log shows that the check is working, but I forgot to put a placeholder entry in the config.h.in files in order for the configure script to fill it in. r33778 ought to fix things. Dan On Sun, Nov 2, 2014 at 10:11 AM, Robin Wood <robin@digi.ninja> wrote:
I've tried make clean and make distclean and neither worked. The error is: nsock_pcap.c: In function ‘nsock_pcap_set_filter’: nsock_pcap.c:110: error: ‘PCAP_NETMASK_UNKNOWN’ undeclared (first use in this function) nsock_pcap.c:110: error: (Each undeclared identifier is reported only once nsock_pcap.c:110: error: for each function it appears in.) make[1]: *** [nsock_pcap.o] Error 1 make[1]: Leaving directory `/home/robin/tools/nmap/nsock/src' make: *** [nsock_build] Error 2 robin@bt nmap $ cp nsock/src/config.log ~ and the config log is at: http://digi.ninja/files/nsock-config.log Robin On 31 October 2014 17:37, Daniel Miller <bonsaiviking () gmail com> wrote:Robin, That same commit added the configure check for nsock as well. Would you mind posting your nsock/src/config.log? You could also try `make distclean` and then ./configure as usual. Dan On Fri, Oct 31, 2014 at 9:37 AM, Robin Wood <robin@digi.ninja> wrote:Bit closer, PCAP_NETMASK_UNKNOWN is used in more than the one place though. gcc -c -I../../nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall -Wall nsock_pcap.c -o nsock_pcap.o nsock_pcap.c: In function ‘nsock_pcap_set_filter’: nsock_pcap.c:110: error: ‘PCAP_NETMASK_UNKNOWN’ undeclared (first use in this function) nsock_pcap.c:110: error: (Each undeclared identifier is reported only once nsock_pcap.c:110: error: for each function it appears in.) make[1]: *** [nsock_pcap.o] Error 1 make[1]: Leaving directory `/home/robin/tools/nmap/nsock/src' make: *** [nsock_build] Error 2 On 31 October 2014 13:28, Daniel Miller <bonsaiviking () gmail com> wrote:Robin, Thanks for the report. Apparently, PCAP_NETMASK_UNKNOWN was not defined prior to libpcap 1.1.1. I've just pushed a configure check that will define it as 0 (the literal value we had been using before) if it's not defined already. Please try r33774. Dan On Fri, Oct 31, 2014 at 6:17 AM, Robin Wood <robin@digi.ninja> wrote:Building the latest github clone on an old Backtrack 5 box and I got this. make[1]: Leaving directory `/home/robin/tools/nmap/libnetutil' make[1]: Entering directory `/home/robin/tools/nmap/libnetutil' g++ -c -I../liblinear -I../liblua -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing netutil.cc -o netutil.o netutil.cc: In function ‘void set_pcap_filter(const char*, pcap_t*, const char*, ...)’: netutil.cc:4072: error: ‘PCAP_NETMASK_UNKNOWN’ was not declared in this scope make[1]: *** [netutil.o] Error 1 make[1]: Leaving directory `/home/robin/tools/nmap/libnetutil' make: *** [netutil_build] Error 2 Robin _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- make failed Robin Wood (Oct 31)
- Re: make failed Daniel Miller (Oct 31)
- Re: make failed Robin Wood (Oct 31)
- Re: make failed Daniel Miller (Oct 31)
- Re: make failed Robin Wood (Nov 02)
- Re: make failed Daniel Miller (Nov 02)
- Re: make failed Robin Wood (Nov 03)
- Re: make failed Robin Wood (Oct 31)
- Re: make failed Daniel Miller (Oct 31)