Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15636 closed defect (invalid)

NMAP 4.60 build error

Reported by: Peter.Charbonneau@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

NMAP 4.60 port build ... using XCODE 3.0

(I have tried this building this port with PCRE and without PCRE)

porthos2:~ pcharbon$ sudo port install nmap ---> Fetching nmap ---> Verifying checksum(s) for nmap ---> Extracting nmap ---> Configuring nmap ---> Building nmap with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nmap/work/nmap-4.60" && make all " returned error 2 Command output: Lpcre_getargs(lua_State*, pcre2, char const, unsigned long*)in nse_pcrelib.o

"_lua_pushcclosure", referenced from:

auxiliar_newclass(lua_State*, char const*, luaL_Reg*)in nse_auxiliar.o init_lua(lua_State*) in nse_init.o set_nmaplib(lua_State*) in nse_nmaplib.o l_exc_newtry(lua_State*) in nse_nmaplib.o l_exc_newtry(lua_State*) in nse_nmaplib.o

"_lua_pushvalue", referenced from:

process_pickScriptsForPort(lua_State*, Target*, Port*, std::vector<run_record, std::allocator<run_record> >&)in nse_main.o process_preparehost(lua_State*, Target*, std::list<thread_record, std::allocator<thread_record> >&)in nse_main.o process_preparehost(lua_State*, Target*, std::list<thread_record, std::allocator<thread_record> >&)in nse_main.o l_nsock_check_buf(lua_State*) in nse_nsock.o l_nsock_check_buf(lua_State*) in nse_nsock.o init_parseargs(lua_State*) in nse_init.o init_parseargs(lua_State*) in nse_init.o init_parseargs(lua_State*) in nse_init.o init_loadfile(lua_State*, char*)in nse_init.o init_loadfile(lua_State*, char*)in nse_init.o init_loadfile(lua_State*, char*)in nse_init.o init_updatedb(lua_State*) in nse_init.o init_loadcategories(lua_State*, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)in nse_init.o init_loadcategories(lua_State*, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)in nse_init.o l_exc_finalize(lua_State*) in nse_nmaplib.o l_dumpValue(lua_State*, int) in nse_debug.o Lpcre_gmatch(lua_State*) in nse_pcrelib.o luaopen_pcrelib(lua_State*) in nse_pcrelib.o

ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [nmap] Error 1 make: * [all] Error 2

Error: Status 1 encountered during processing.

Attachments (1)

nmap_build_log.txt (111.1 KB) - added by Peter.Charbonneau@… 16 years ago.
output from the new build process …

Download all attachments as: .zip

Change History (9)

comment:1 Changed 16 years ago by danielluke (Daniel J. Luke)

Owner: changed from macports-tickets@… to dluke@…

Can you please do the following:

sudo port clean --all nmap port -dv install nmap | tee nmap_build_log.txt

Then attach the nmap_build_log.txt file to this ticket.

Thanks!

comment:2 Changed 16 years ago by Peter.Charbonneau@…

Nothing in the nmap_build_log.txt file .... this is the output from the screen when running the two commands:

porthos2:~ pcharbon$ sudo port clean --all nmap ---> Cleaning nmap porthos2:~ pcharbon$ port -dv install nmap | tee nmap_build_log.txt DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/net/nmap DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/nmap DEBUG: Requested variant darwin is not provided by port nmap. DEBUG: Requested variant i386 is not provided by port nmap. DEBUG: Requested variant macosx is not provided by port nmap. DEBUG: can't create directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nmap": permissi

while executing

"file mkdir $workpath"

(procedure "open_statefile" line 5) invoked from within

"open_statefile"

(procedure "check_variants" line 17) invoked from within

"check_variants variations install"

invoked from within

"$workername eval check_variants variations $target"

(procedure "mportexec" line 7) invoked from within

"mportexec $workername $target" Error: Unable to execute port: can't create directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_p porthos2:~ pcharbon$ porthos2:~ pcharbon$ ls -sla nmap_build_log.txt 0 -rw-r--r-- 1 pcharbon pcharbon 0 Jun 16 15:16 nmap_build_log.txt

comment:3 Changed 16 years ago by danielluke (Daniel J. Luke)

Status: newassigned

Sorry, you probably need sudo for the port install command as well.

Try:

sudo port -dv install nmap | tee nmap_build_log.txt

Changed 16 years ago by Peter.Charbonneau@…

Attachment: nmap_build_log.txt added

output from the new build process ...

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Bugs

comment:5 Changed 16 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: assignedclosed

Ok, the problem here is that you have a broken lua library in /usr/local

"ld: warning in /usr/local/lib/liblua.a, file is not of required architecture"

I would (temporarily) move aside /usr/local, build nmap, and then move /usr/local back to verify this.

comment:6 Changed 16 years ago by Peter.Charbonneau@…

Worked ... sorta.

I moved the /usr/local/lib/liblua.a file to /usr/local/lib/save/liblua.a

I then ran sudo port clean nmap and got an error stating that llua.a not found.

At that point, I cd to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nmap/work/nmap-4.60/liblua

and ran sudo make. I then copied the just made liblua.a file to /usr/local/lib/liblua.a and:

ran sudo nmap install nmap

which worked.

ty

PeteC

comment:7 Changed 16 years ago by danielluke (Daniel J. Luke)

That's really not what you want, since you now have an nmap port that depends on the libua that you moved there and so isn't being tracked by MacPorts correctly.

When you only moved the libua.a file, the build still tried to link with a libua in /usr/local (there are probably libua headers or other libraries that the configure script found there).

What you really want, is to port -f uninstall nmap && port clean --all nmap && mv /usr/local /usr/foo && port install nmap && mv /usr/foo /usr/local

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.