Opened 9 years ago

Closed 9 years ago

#24177 closed defect (fixed)

Can't Install nmap 5.21

Reported by: keithnickum@… Owned by: opendarwin.org@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: danielluke (Daniel J. Luke)
Port: nmap

Description (last modified by mf2k (Frank Schima))

Had an earlier version of nmap installed and had problems with upgrading. The error I'm getting now is a syntax error for setup.py:

/usr/bin/g++-4.0 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -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 payload.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_nsock.o nse_fs.o nse_nmaplib.o nse_debug.o nse_pcrelib.o nse_binlib.o nse_bit.o nse_openssl.o nse_ssl_cert.o  -lnbase -lnsock -lpcre -lpcap -lssl -lcrypto libdnet-stripped/src/.libs/libdnet.a liblua/liblua.a -lm  
cd ndiff && /usr/bin/python setup.py build 
  File "setup.py", line 27
    except distutils.errors.DistutilsPlatformError, e:
                                                  ^
SyntaxError: invalid syntax
make[1]: *** [build-ndiff] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Here's the general commands I used (more or less, forget the exact details but I *have* done all of these in order, at some point or another). I know some of it is more than a little redundant, but I thought I'd be 100% sure...also, the error is the same error throughout.

port -v selfupdate port upgrade outdated

Error here for nmap

port upgrade nmap

Error

port uninstall nmap port upgrade outdated

Works fine

port clean nmap port install nmap

Error

port uninstall nmap port clean nmap port -v selfupdate port -v selfupdate port uninstall nmap port clean nmap port install nmap

Error

Attachments (2)

build_log.txt (72.6 KB) - added by keithnickum@… 9 years ago.
Output of command 'sudo port clean nmap && sudo port -dv build nmap | tee build_log.txt'
build_log.2.txt (72.9 KB) - added by asbjorn@… 9 years ago.
Build_log_darwin_10.3

Download all attachments as: .zip

Change History (8)

comment:1 Changed 9 years ago by keithnickum@…

Ugh should have checked formatting before submitting:

port -v selfupdate

port upgrade outdated

Error here for nmap

port upgrade nmap

Error

port uninstall nmap

port upgrade outdated

Works fine

port clean nmap

port install nmap

Error

port uninstall nmap

port clean nmap

port -v selfupdate

port -v selfupdate

port uninstall nmap

port clean nmap

port install nmap

Error

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Cc: dluke@… added
Description: modified (diff)
Keywords: nmap install port nmap 5.21 removed
Owner: changed from macports-tickets@… to opendarwin.org@…
Priority: HighNormal

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

Please attach the full build log (do sudo port clean nmap && sudo port -dv build nmap | tee build_log.txt and upload the build_log.txt file)

Changed 9 years ago by keithnickum@…

Attachment: build_log.txt added

Output of command 'sudo port clean nmap && sudo port -dv build nmap | tee build_log.txt'

comment:4 Changed 9 years ago by keithnickum@…

Forgot to mention that I'm running Leopard, if that's important (work computer, hopefully we'll upgrade to Snow Leopard soon...).

Also forgot to mention that all commands were run as root user (did 'sudo -i' before running the commands I listed).

Changed 9 years ago by asbjorn@…

Attachment: build_log.2.txt added

Build_log_darwin_10.3

comment:5 Changed 9 years ago by asbjorn@…

I'm getting the same errors on Snow leopard
Darwin Kernel Version 10.3.0 i386

comment:6 Changed 9 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

fixed by disabling ndiff in r66431

(if ndiff is really needed, it could be re-enabled by adding a dependency on macports python)

Note: See TracTickets for help on using tickets.