Nmap Development mailing list archives
Re: [BUG] configure test for "checking if libpcap is suitable" fails
From: David Fifield <david () bamsoftware com>
Date: Sat, 8 Sep 2012 12:20:02 -0700
On Sat, Sep 08, 2012 at 08:58:35PM +0200, John Spencer wrote:
On 09/08/2012 08:45 PM, David Fifield wrote:On Sat, Sep 08, 2012 at 08:50:03PM +0200, John Spencer wrote:configure:6301: checking if libpcap is suitable configure:6325: gcc -o conftest -D_GNU_SOURCE -D_BSD_SOURCE -Wl,-E -lz -Wl,-rpath-link=//lib conftest.c -lp$ conftest.c: In function 'main': conftest.c:35:5: error: implicit declaration of function 'exit' exit is defined in<stdlib.h> so either this include should be added, or return used instead of exitWhat platform are you running on?musl/linux (musl libc, which is stricter than glibc) glibc's stdio.h unconditionally and erroneusly (namespace pollution) includes stdlib.h, that's why some tests written for glibc fail. most people write code, check if it compiles and then think it's "ok"
Does this patch work for you? David Fifield
Attachment:
pcap-no-exit.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:
- [BUG] configure test for "checking if libpcap is suitable" fails John Spencer (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails David Fifield (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails John Spencer (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails David Fifield (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails John Spencer (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails David Fifield (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails John Spencer (Sep 08)
- Re: [BUG] configure test for "checking if libpcap is suitable" fails David Fifield (Sep 08)