Nmap Development mailing list archives
Re: Nmap Dev
From: Florian Roth <venom14 () gmail com>
Date: Mon, 17 Sep 2012 16:48:41 +0200
We figured out, why the "--enable-static" flag failed in generating a usable Makefile. Makefile ----------------------- STATIC = LDFLAGS = -Wl,-E -Lnbase -Lnsock/src/ $(DBGFLAGS) $(STATIC) The "STATIC" param is empty. It is important, that the linker gets the flag as well. The following commands did the job. ./configure --enable-static LDFLAGS="-static" make On Mon, Sep 17, 2012 at 1:11 PM, Florian Roth <venom14 () gmail com> wrote:
Configure ./configure --without-openssl --without-zenmap --with-pcap=linux --with-liblua=included --with-libpcap=internal --enable-static --without-ndiff --without-nping Make make froth@rubikus:~/nmap-5.36TEST4$ ldd nmap linux-vdso.so.1 => (0x00007fff7e9ff000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fddc261a000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fddc2314000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fddc208e000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fddc1e78000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fddc1ae3000) /lib64/ld-linux-x86-64.so.2 (0x00007fddc2839000) make static 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 -- Sincerely Saludos cordiales Mit freundlichen Grüßen Florian Roth +49 (0) 173 696 4177 PGP Key: http://www.tierralinda.de/venom14.asc Fingerprint: 99BE 525E EE89 D009 72DA 81AD 3D63 4F8B 4FE1 3664
-- Sincerely Saludos cordiales Mit freundlichen Grüßen Florian Roth +49 (0) 173 696 4177 PGP Key: http://www.tierralinda.de/venom14.asc Fingerprint: 99BE 525E EE89 D009 72DA 81AD 3D63 4F8B 4FE1 3664 _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: Nmap Dev Florian Roth (Sep 17)