[MacPorts] #15636: NMAP 4.60 build error
#15636: NMAP 4.60 build error --------------------------------------------+------------------------------- Reporter: Peter.Charbonneau@williams.edu | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | --------------------------------------------+------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/15636> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------------+------------------------------ Changes (by dluke@macports.org): * owner: macports-tickets@lists.macosforge.org => dluke@macports.org Comment: 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! -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------------+------------------------------ Comment (by Peter.Charbonneau@williams.edu): 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 -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------------+------------------------------ Changes (by dluke@macports.org): * status: new => assigned Comment: Sorry, you probably need sudo for the port install command as well. Try: sudo port -dv install nmap | tee nmap_build_log.txt -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------------+------------------------------ Changes (by jmr@macports.org): * milestone: => Port Bugs -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ---------------------------------------------+------------------------------ Changes (by dluke@macports.org): * status: assigned => closed * resolution: => invalid Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ---------------------------------------------+------------------------------ Comment (by Peter.Charbonneau@williams.edu): 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 -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15636: NMAP 4.60 build error ---------------------------------------------+------------------------------ Reporter: Peter.Charbonneau@williams.edu | Owner: dluke@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ---------------------------------------------+------------------------------ Comment (by dluke@macports.org): 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 -- Ticket URL: <http://trac.macports.org/ticket/15636#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts