On Mon, 2007-11-05 at 21:41 +0100, majek04 wrote:
> #1. ubuntu 7.04 (maybe newer...)
> $ ./configure && make
> g++ -Llibpcap -Wl,-E -Lnbase -Lnsock/src/ -o nmap main.o nmap.o
> targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o
> output.o scan_engine.o timing.o charpool.o services.o protocols.o
> nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o
> FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o
> nmap_tty.o nmap_dns.o traceroute.o portreasons.o nse_main.o
> nse_auxiliar.o nse_nsock.o nse_init.o nse_nmaplib.o nse_debug.o
> nse_pcrelib.o nse_string.o -lnbase -lnsock libpcre/libpcre.a -lpcap
> libdnet-stripped/src/.libs/libdnet.a liblua/liblua.a
> liblua/liblua.a(loadlib.o): In function `ll_loadfunc':
> loadlib.c:(.text+0x907): undefined reference to `dlsym'
> loadlib.c:(.text+0x914): undefined reference to `dlerror'
> loadlib.c:(.text+0x9ec): undefined reference to `dlopen'
> loadlib.c:(.text+0xa01): undefined reference to `dlerror'
> liblua/liblua.a(loadlib.o): In function `gctm':
> loadlib.c:(.text+0x100e): undefined reference to `dlclose'
> collect2: ld returned 1 exit status
> make[1]: *** [nmap] Błąd 1
> make[1]: Opuszczenie katalogu `/dev/shm/nmap-4.22SOC8'
> make: *** [all] Błąd 2
>
> Adding -ldl to linking command works.
> Shouldn't this be tested at ./configure level?
>
This reminds me that I haven't corresponded to this thread:
http://seclists.org/nmap-dev/2007/q4/0195.html which is also about
the same issue.
I just tried it in my Ubuntu 7.10 system, and so I can confirm this
on two 7.10 systems. Please also note that I tried with and without
pre-installed pcre, liblua, libpcap, libstdc++, etc. too, as Kris
and Eddie suggested, but the issue still persists.
Cheers,
Gav
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Nov 05 2007