Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2003 01:46:23 -0500
From:      Jon Noack <noackjr@alumni.rice.edu>
To:        freebsd-questions@freebsd.org
Subject:   nmap build failure
Message-ID:  <3F73E0BF.6050504@alumni.rice.edu>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050206020907080209030301
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

nmap 3.46 from ports fails to build on my 5.1-RELEASE-p8 machine with 
the following error (full build log attached):

*************************** error ***************************
c++ -c  -I/usr/local/include -O -pipe -march=pentium3 -fmemoize-lookups 
-fsave-memoized -Wall  -I/usr/local/include -Ilibpcap-possiblymodified 
-Inbase -Insock/include  -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.46\" 
-DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" 
-DNMAP_PLATFORM=\"i386-portbld-freebsd5.1\" 
-DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified 
main.cc -o main.o
In file included from nbase/nbase.h:256,
                  from nmap.h:109,
                  from main.cc:87:
/usr/local/include/getopt.h:115: declaration of C function `int getopt()'
    conflicts with
/usr/include/unistd.h:377: previous declaration `int getopt(int, char* 
const*,
    const char*)' here
*** Error code 1
*************************************************************

Any ideas would be appreciated,
Jon Noack

--------------050206020907080209030301
Content-Type: text/plain;
 name="nmap_failure"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="nmap_failure"

--->  Upgrading 'nmap-3.30' to 'nmap-3.46' (security/nmap)
--->  Building '/usr/ports/security/nmap'
===>  Cleaning for libtool-1.4.3_2
===>  Cleaning for pcre-4.4
===>  Cleaning for perl-5.6.1_13
===>  Cleaning for openssl-0.9.7b_1
===>  Cleaning for nmap-3.46
===>  Extracting for nmap-3.46
>> Checksum OK for nmap-3.46.tar.bz2.
===>  Patching for nmap-3.46
===>  Applying FreeBSD patches for nmap-3.46
===>   nmap-3.46 depends on shared library: pcre.0 - found
===>   nmap-3.46 depends on shared library: crypto.3 - found
===>  Configuring for nmap-3.46
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for inline... inline
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for unistd.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for main in -lm... yes
checking for library containing gethostent... none required
checking for library containing setsockopt... none required
checking for library containing nanosleep... none required
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_datalink in -lpcap... yes
checking if libpcap version is recent enough... no
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... yes
checking whether byte ordering is bigendian... no
checking if struct in_addr is a wacky huge structure (some Sun boxes)... no
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
checking for bzero... yes
checking for memcpy... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for inet_aton... yes
checking for getopt_long_only... no
checking for usleep... yes
checking for type of 6th argument to recvfrom()... socklen_t
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in nbase
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking rpc/types.h usability... yes
checking rpc/types.h presence... yes
checking for rpc/types.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/stat.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking libiberty.h usability... no
checking libiberty.h presence... no
checking for libiberty.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for inline... inline
checking for __attribute__... yes
checking whether byte ordering is bigendian... no
checking for gethostent... yes
checking for setsockopt... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for bzero... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for memcpy... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for signal... yes
checking for inet_aton... yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for asprintf... yes
checking for asnprintf... no
checking for vasprintf... yes
checking for vasnprintf... no
checking for usleep... yes
checking for gettimeofday... yes
checking for sleep... yes
checking for getopt_long_only... no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for working getaddrinfo... yes
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking for sockaddr_storage... yes
checking for AF_INET6 definition... yes
checking for IPv6 support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbase_config.h
configure: configuring in libpcap-possiblymodified
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking target system type... i386-portbld-freebsd5.1
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using cc... yes
checking for u_int16_t using cc... yes
checking for u_int32_t using cc... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... yes
checking sys/ioccom.h presence... yes
checking for sys/ioccom.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... no
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking for strlcpy... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... bpf
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking whether we have /proc/net/dev... no
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in nsock/src
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking for gethostent... yes
checking for setsockopt... yes
checking for nanosleep... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... no
configure: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... yes
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nsock_config.h
configure: configuring in nbase
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking rpc/types.h usability... yes
checking rpc/types.h presence... yes
checking for rpc/types.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/stat.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking libiberty.h usability... no
checking libiberty.h presence... no
checking for libiberty.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for inline... inline
checking for __attribute__... yes
checking whether byte ordering is bigendian... no
checking for gethostent... yes
checking for setsockopt... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for bzero... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for memcpy... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for signal... yes
checking for inet_aton... yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for asprintf... yes
checking for asnprintf... no
checking for vasprintf... yes
checking for vasnprintf... no
checking for usleep... yes
checking for gettimeofday... yes
checking for sleep... yes
checking for getopt_long_only... no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for working getaddrinfo... yes
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking for sockaddr_storage... yes
checking for AF_INET6 definition... yes
checking for IPv6 support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbase_config.h
config.status: nbase_config.h is unchanged
configure: configuring in libpcap-possiblymodified
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking target system type... i386-portbld-freebsd5.1
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using cc... yes
checking for u_int16_t using cc... yes
checking for u_int32_t using cc... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... yes
checking sys/ioccom.h presence... yes
checking for sys/ioccom.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... no
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking for strlcpy... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... bpf
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking whether we have /proc/net/dev... no
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
configure: configuring in nsock/src
configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdirs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '--prefix=/usr/local' '--build=i386-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/local/lib' 'CFLAGS=-O -pipe -march=pentium3' 'CXX=c++' 'build_alias=i386-portbld-freebsd5.1' 'CC=cc' 'CXXFLAGS=-O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized' --cache-file=/dev/null --srcdir=.
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd5.1
checking host system type... i386-portbld-freebsd5.1
checking for gethostent... yes
checking for setsockopt... yes
checking for nanosleep... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... no
configure: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... yes
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nsock_config.h
config.status: nsock_config.h is unchanged
===>  Building for nmap-3.46
Compiling libpcap
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./pcap-bpf.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./pcap.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./inet.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./gencode.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./optimize.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./nametoaddr.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./etherent.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./savefile.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c bpf_filter.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./bpf_image.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c ./bpf_dump.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c scanner.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -Dyylval=pcap_lval -c grammar.c
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
cc -I. -g -O2 -O -pipe -march=pentium3 -DHAVE_CONFIG_H -c version.c
ar rc libpcap.a pcap-bpf.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o grammar.o version.o
ranlib libpcap.a
Compiling libnbase
cd nbase && make
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c snprintf.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c getopt.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c getopt1.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c nbase_str.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c nbase_misc.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c nbase_memalloc.c
cc -O -pipe -march=pentium3 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -c nbase_rnd.c
Compiling libnbase
rm -f libnbase.a
ar cr libnbase.a snprintf.o getopt.o getopt1.o nbase_str.o nbase_misc.o nbase_memalloc.o nbase_rnd.o
ranlib libnbase.a
Compiling libnsock
cd nsock/src && make
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include error.c -o error.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include filespace.c -o filespace.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include gh_list.c -o gh_list.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_connect.c -o nsock_connect.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_core.c -o nsock_core.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_iod.c -o nsock_iod.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_read.c -o nsock_read.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_timers.c -o nsock_timers.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_write.c -o nsock_write.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_ssl.c -o nsock_ssl.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include utils.c -o utils.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_event.c -o nsock_event.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include nsock_pool.c -o nsock_pool.o
cc -c  -O -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.01\" -I../include netutils.c -o netutils.o
Compiling libnsock
rm -f libnsock.a
ar cr libnsock.a error.o filespace.o gh_list.o nsock_connect.o nsock_core.o nsock_iod.o nsock_read.o nsock_timers.o nsock_write.o nsock_ssl.o utils.o nsock_event.o nsock_pool.o netutils.o
ranlib libnsock.a
c++ -c  -I/usr/local/include -O -pipe -march=pentium3 -fmemoize-lookups -fsave-memoized -Wall  -I/usr/local/include -Ilibpcap-possiblymodified -Inbase -Insock/include  -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.46\" -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"i386-portbld-freebsd5.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified main.cc -o main.o
In file included from nbase/nbase.h:256,
                 from nmap.h:109,
                 from main.cc:87:
/usr/local/include/getopt.h:115: declaration of C function `int getopt()' 
   conflicts with
/usr/include/unistd.h:377: previous declaration `int getopt(int, char* const*, 
   const char*)' here
*** Error code 1

Stop in /usr/ports/security/nmap/work/nmap-3.46.
*** Error code 1

Stop in /usr/ports/security/nmap.
	! security/nmap (nmap-3.30)	(unknown build error)

--------------050206020907080209030301--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F73E0BF.6050504>