Nmap Development mailing list archives
Re: compile nmap 4.03/4.10 on mac os x
From: jmzhou.ml () gmail com
Date: Mon, 26 Jun 2006 10:49:57 -0700 (PDT)
Aha, this is interesting. I just downloaded nmap 4.11 and realized that ``--enable-shared'' and ``--enable-static'' are not in the option list of ``./configure --help''. But, I can still supply ``--enable-shared'' and ``--disable-static'' to the configure script, and this causes the same trouble in linking libdnet again. OK, I admit that this is NOT nmap's fault. It IS a problem of my build script that uses these two options. ;-) Thanks, Jimmy On Mon, 26 Jun 2006, Diman Todorov wrote:
Today I compiled nmap 4.10, still with the same configure option. And it failed again. However, after looking at Autoconf documents, I found a solution for this problem. That is, configure nmap as the following: ./configure --enable-shared --enable-static=libdnetHello, I tried to reproduce this error today, without any success. g++ -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 nmap_lua.o -lnbase -lnsock libpcre/libpcre.a -lpcap -lssl -lcrypto libdnet-stripped/src/.libs/libdnet.a This is the linking command which is produced by configure & make my ssl lib is shared while libdnet is static :) The '--enable-shared' option is not recognized by the configure script from the nmap distribution tarball. The reason is that nmap currently is not using libtool. I don't know what you mean when you say that your compiler is Xcode 2.0 Xcode should use gcc/g++ behind the scenes, it is not a compiler nor does it provide a proprietary compiler. I have two advices for you: * if you are going to compile nmap, do it on the command line and not in Xcode read the INSTALL file in the nmap tarball for instructions * upgrade your xcode to the current version (2.2) regards Diman
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- compile nmap 4.03/4.10 on mac os x jmzhou . ml (Jun 13)
- Re: compile nmap 4.03/4.10 on mac os x Fyodor (Jun 25)
- Re: compile nmap 4.03/4.10 on mac os x Diman Todorov (Jun 26)
- Re: compile nmap 4.03/4.10 on mac os x jmzhou . ml (Jun 26)