Ticket #15042 (closed defect: worksforme)
nmap won't install
| Reported by: | kriss@… | Owned by: | dluke@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | opendarwin.org@… | |
| Port: |
Description
I did a debug install of nmap, and the output of that is attached below. Basically, I installed nmap on a clean install of ports. I did a selfupdate as well, but it did not fix the problem. When I do sudo port install nmap, It errors out with this message:
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: set_pcap_filter(char const*, pcap*, char*, ...)in tcpip.o
_nsock_pcap_set_filter in libnsock.a(nsock_pcap.o)
"_pcap_next_ex", referenced from:
_do_actual_pcap_read in libnsock.a(nsock_pcap.o)
"_ERR_get_error", referenced from:
_handle_connect_result in libnsock.a(nsock_core.o) _handle_connect_result in libnsock.a(nsock_core.o) _Nsock_SSL_Init in libnsock.a(nsock_ssl.o) _Nsock_SSL_Init in libnsock.a(nsock_ssl.o)
"_SSL_write", referenced from:
_handle_write_result in libnsock.a(nsock_core.o)
"_SSL_new", referenced from:
_handle_connect_result in libnsock.a(nsock_core.o)
"_SSL_load_error_strings", referenced from:
_Nsock_SSL_Init in libnsock.a(nsock_ssl.o)
"_SSL_library_init", referenced from:
_Nsock_SSL_Init in libnsock.a(nsock_ssl.o)
"_SSL_shutdown", referenced from:
_nsi_delete in libnsock.a(nsock_iod.o)
"_SSL_get1_session", referenced from:
_nsi_get1_ssl_session in libnsock.a(nsock_iod.o)
"_SSL_CTX_new", referenced from:
_Nsock_SSL_Init in libnsock.a(nsock_ssl.o)
"_pcap_lookupnet", referenced from:
set_pcap_filter(char const*, pcap*, char*, ...)in tcpip.o _nsock_pcap_set_filter in libnsock.a(nsock_pcap.o)
ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [nmap] Error 1 make: * [all] Error 2
Warning: the following items did not execute (for nmap): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
I am running on a MacBook Pro on Leopard with all of the latest updates. (10.5.2)
Please let me know if you need additional information.
Attachments
Change History
Changed 5 years ago by kriss@…
- Attachment nmap_error.txt added
comment:1 Changed 5 years ago by jmr@…
- Cc opendarwin.org@… added
- Owner changed from macports-tickets@… to dluke@…
- Milestone set to Port Bugs
Assigning to maintainers.
comment:2 Changed 5 years ago by dluke@…
- Status changed from new to assigned
Can you verify the version of libpcap that you have installed? (should be 0.9.8)
comment:3 Changed 5 years ago by kriss@…
$ sudo port info libpcap libpcap 0.9.8, net/libpcap (Variants: ipv6, no_shared) http://www.tcpdump.org/
The Packet Capture library provides a high level interface to packet capture systems. All packets on the network, even those destined for other hosts, are accessible through this mechanism.
Platforms: darwin Maintainers: opendarwin.org@…
comment:4 Changed 5 years ago by dluke@…
port info just shows what is in the portindex, please run:
port installed libpcap
and reply with the output
thanks!
comment:5 Changed 5 years ago by kriss@…
OK, so I had an older version of libpcap. I upgraded libpcap, and I got past the original error message, but then it was complaining about something related to ssl, so I upgraded openssl, and then nmap compiled.
Sorry I didn't think about checking deps first, just not used to having to do that with ports.
Thanks for your help. Sorry for the newb ticket.


output of sudo -dv install nmap