Nmap Development mailing list archives

Re: Nmap static build fails


From: David Fifield <david () bamsoftware com>
Date: Mon, 17 Sep 2012 12:17:41 -0700

On Mon, Sep 17, 2012 at 02:07:42PM +0200, Florian Roth wrote:
"make static" fails.

libpcap/libpcap.a(nametoaddr.o): In function `pcap_nametonetaddr':
/home/froth/nmap-5.36TEST4/libpcap/./nametoaddr.c:151: warning: Using
'getnetbyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
libpcap/libpcap.a(nametoaddr.o): In function `pcap_nametoproto':
/home/froth/nmap-5.36TEST4/libpcap/./nametoaddr.c:267: warning: Using
'getprotobyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
libpcap/libpcap.a(nametoaddr.o): In function `pcap_nametoport':
/home/froth/nmap-5.36TEST4/libpcap/./nametoaddr.c:181: warning: Using
'getservbyname' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer
equality in `/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../libc.a(strcmp.o)'
can not be used when making an executable; recompile with -fPIE and
relink with -pie
collect2: ld returned 1 exit status
make[2]: *** [nmap] Error 1
make[2]: Leaving directory `/home/froth/nmap-5.36TEST4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/froth/nmap-5.36TEST4'
make: *** [static] Error 2

I'm seeing this error too with "make static". I haven't seen it before,
so it's probably caused by some change in the GCC build chain. A few
minutes of web searching didn't reveal an obvious cause.

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: