Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21811 closed defect (worksforme)

nmap fails to build

Reported by: johnmusbach1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port:

Description (last modified by tobypeterson)

MacBook Intel Core 2 Duo 2.16Ghz with 2GB RAM running Mac OS X 10.6.1. Tried to install nmap but it fails:

bash-3.2$ sudo port install nmap
Password:
--->  Computing dependencies for libpcap
--->  Fetching libpcap
--->  Attempting to fetch libpcap-1.0.0.tar.gz from http://www.tcpdump.org/release/
--->  Verifying checksum(s) for libpcap
--->  Extracting libpcap
--->  Applying patches to libpcap
--->  Configuring libpcap
--->  Building libpcap
--->  Staging libpcap into destroot
--->  Deactivating libpcap @0.9.8_0
--->  Computing dependencies for libpcap
--->  Installing libpcap @1.0.0_0
--->  Activating libpcap @1.0.0_0
--->  Cleaning libpcap
--->  Computing dependencies for nmap
--->  Fetching pcre
--->  Attempting to fetch pcre-7.9.tar.bz2 from http://voxel.dl.sourceforge.net/pcre
--->  Verifying checksum(s) for pcre
--->  Extracting pcre
--->  Configuring pcre
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9" && ./configure --prefix=/opt/local --docdir=/opt/local/share/doc/pcre-7.9 --enable-unicode-properties --enable-pcretest-libreadline --enable-pcregrep-libz --enable-pcregrep-libbz2 " returned error 1
Command output: checking bits/type_traits.h usability... no
checking bits/type_traits.h presence... no
checking for bits/type_traits.h... no
checking type_traits.h usability... no
checking type_traits.h presence... no
checking for type_traits.h... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for strtoq... yes
checking for long long... yes
checking for unsigned long long... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... no
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for BZ2_bzopen in -lbz2... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for readline in -lreadline... yes
** Cannot --enable-pcregrep-libz because libz was not found

Error: The following dependencies failed to build: pcre
Error: Status 1 encountered during processing.

Tried to fix dependency issues but that failed too:

bash-3.2$ sudo port install libzip libzvt libzzip
--->  Computing dependencies for libzip
--->  Fetching libzip
--->  Attempting to fetch libzip-0.9.tar.bz2 from http://distfiles.macports.org/libzip
--->  Verifying checksum(s) for libzip
--->  Extracting libzip
--->  Configuring libzip
--->  Building libzip
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzip/work/libzip-0.9" && /usr/bin/make -j2 all " returned error 2
Command output: Undefined symbols:
  "_crc32", referenced from:
      _zip_close in zip_close.o
      _zip_close in zip_close.o
      __zip_filerange_crc in zip_filerange_crc.o
      __zip_filerange_crc in zip_filerange_crc.o
      _zip_fopen_index in zip_fopen_index.o
      _zip_fread in zip_fread.o
  "_inflateEnd", referenced from:
      _zip_fclose in zip_fclose.o
  "_inflate", referenced from:
      _zip_fread in zip_fread.o
  "_deflateEnd", referenced from:
      _zip_close in zip_close.o
      _zip_close in zip_close.o
  "_inflateInit2_", referenced from:
      _zip_fopen_index in zip_fopen_index.o
  "_deflate", referenced from:
      _zip_close in zip_close.o
  "_zError", referenced from:
      __zip_error_strerror in zip_error_strerror.o
      _zip_error_to_str in zip_error_to_str.o
  "_deflateInit2_", referenced from:
      _zip_close in zip_close.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libzip.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

So kind of stuck here.

Change History (5)

comment:1 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

comment:2 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:3 in reply to:  1 Changed 15 years ago by danmiller@…

Replying to toby@…:

Migration

Also on OS X 10.6.1. Fails out with same error. Reopening.

comment:4 Changed 15 years ago by johnmusbach1@…

dan miller wanted to reopen but the status was not changed, changing for him :)

EDIT: Nevermind, apparently even the ticket creator has insufficient privileges to reopen it on this site <_<

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

danmiller should open a new ticket with a description of what the problem he is seeing is.

This ticket says it's about nmap, with a log that shows a failure to build pcre where it looks like the problem is libz (and most likely was caused by the original reporter having upgraded to 10.6 without following the Macports migration instructions).

Note: See TracTickets for help on using tickets.