Nmap Development mailing list archives

Re: 4.22SOC8 bugs, or features?


From: Stoiko Ivanov <stoiko () xover htu tuwien ac at>
Date: Tue, 6 Nov 2007 13:50:14 +0100

Hi,


On Tue, Nov 06, 2007 at 02:45:29AM +0530, Gaveen Prabhasara wrote:

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?

I'm not quite sure, wheter this works, but could I ask you to try
configuring nmap without ssl support, and report wheter this solves the
issue?

I think there was an issue that openssl provides the dl* symbols, and afair
there is a workaround in the configure script to provide -ldl, if configure
is run with --without-openssl.
Maybe newer versions of openssl don't provide these symbols anymore.



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

cheers 
stoiko


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: