[MacPorts] #21811: nmap fails to build

MacPorts noreply at macports.org
Sat Oct 3 23:23:31 PDT 2009


#21811: nmap fails to build
-------------------------------------+--------------------------------------
  Reporter:  johnmusbach1@…          |       Owner:  macports-tickets@…                   
      Type:  defect                  |      Status:  closed                               
  Priority:  Normal                  |   Milestone:                                       
 Component:  ports                   |     Version:  1.8.1                                
Resolution:  worksforme              |    Keywords:                                       
      Port:                          |  
-------------------------------------+--------------------------------------
Description changed by toby@…:

Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <http://trac.macports.org/ticket/21811#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list