Home page logo
/

nmap-dev logo Nmap Development mailing list archives

FreeBSD 4.7 & nmap doesn't build
From: dirk diggler <freakout678 () yahoo com>
Date: Fri, 27 Dec 2002 22:05:30 -0800 (PST)



Hi all. I have trouble building nmap on FreeBSD from
the ports collection, downloaded source (stable and
current). I get this error on 2 different FreeBSD
pc's. Both run FreeBSD 4.7, but I decided to build a
new pc, and track everything from the beginning.
Anyway, the error doesn't tell much. Are there any
suggestions?

Thanks.


From the very beginning life of this pc:

1. hardware: 3com 3c905B-tx NIC (xl0 driver); intel
p3-700Mhz; Asus cuv4x motherboard.

2. FreeBSD 4.7 ISO (md5 verified) from www.freebsd.org

3. Installed X-kern-developer + ports collection, then
did:

4. cd /usr/ports/net/cvsupit
   make
   make install   (Chose CVS-stable 4.x)
   rehash
   cvsup - g -L 2 /etc/cvsupfile

   init 1
   cd /usr/src
   make buildworld
   make buildkernel
   make installkernel
   make installworld
   shutdown -r now

uname -a
FreeBSD fbuild.qa-lab.net 4.7-STABLE FreeBSD
4.7-STABLE #0: Fri Dec 27 21:36:04 PST 2002    
root () fbuild qa-lab net:/usr/obj/usr/src/sys/GENERIC 
i386


5. cd /usr/src/security/nmap

fbuild# make distclean
===>  Cleaning for nmap-3.00
===>  Deleting distfiles for nmap-3.00
fbuild# make clean
===>  Cleaning for nmap-3.00
fbuild# make 
nmap-3.00.tgz doesn't seem to exist in
/usr/ports/distfiles/.
Attempting to fetch from
http://download.insecure.org/nmap/dist/.
Receiving nmap-3.00.tgz (922293 bytes): 100%
922293 bytes transferred in 2.9 seconds (315.79 kBps)
===>  Extracting for nmap-3.00
Checksum OK for nmap-3.00.tgz.
===>  Patching for nmap-3.00
===>  Applying FreeBSD patches for nmap-3.00
===>  Configuring for nmap-3.00
configure: WARNING: you should use --build, --host,
--target
checking for i386-portbld-freebsd4.7-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 build system type... i386-portbld-freebsd4.7
checking host system type... i386-portbld-freebsd4.7
checking for main in -lm... yes
checking for gethostent... yes
checking for setsockopt... yes
checking for nanosleep... yes
checking how to run the C preprocessor... cc -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... no
checking for unistd.h... yes
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... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
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 netinet/if_ether.h usability... no
checking netinet/if_ether.h presence... yes
configure: WARNING: netinet/if_ether.h: present but
cannot be compiled
configure: WARNING: netinet/if_ether.h: check for
missing prerequisite headers?
configure: WARNING: netinet/if_ether.h: proceeding
with the preprocessor's result
checking for netinet/if_ether.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 whether time.h and sys/time.h may both be
included... yes
checking for cc option to accept ANSI C... none needed
checking for inline... inline
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 snprintf... yes
checking for vsnprintf... yes
checking for memcpy... yes
checking for usleep... yes
checking for nanosleep... (cached) yes
checking for strerror... yes
checking for strcasestr... yes
checking for inet_aton... yes
checking for getopt_long_only... no
checking for gtk-config... no
checking If you have GTK+ installed... no
configure: WARNING: Gtk+ has not been installed ->
nmapfe will not be made
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  '--prefix=/usr/local'
'i386-portbld-freebsd4.7' 'CFLAGS=-O -pipe '
'host_alias=i386-portbld-freebsd4.7'
'build_alias=i386-portbld-freebsd4.7'
'target_alias=i386-portbld-freebsd4.7' 'CC=cc'
--cache-file=/dev/null --srcdir=.
configure: WARNING: you should use --build, --host,
--target
checking for i386-portbld-freebsd4.7-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 i386-portbld-freebsd4.7-ranlib... no
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd4.7
checking host system type... i386-portbld-freebsd4.7
checking how to run the C preprocessor... cc -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... no
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
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 netinet/if_ether.h usability... no
checking netinet/if_ether.h presence... yes
configure: WARNING: netinet/if_ether.h: present but
cannot be compiled
configure: WARNING: netinet/if_ether.h: check for
missing prerequisite headers?
configure: WARNING: netinet/if_ether.h: proceeding
with the preprocessor's result
checking for netinet/if_ether.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for sys/time.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.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 whether time.h and sys/time.h may both be
included... yes
checking for cc option to accept ANSI C... none needed
checking for inline... inline
checking for __attribute__... yes
checking whether byte ordering is bigendian... no
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 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 inet_ntop... yes
checking for inet_pton... yes
checking for inet_aton... yes
checking for getopt_long_only... no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbase_config.h
configure: configuring in nbase
configure: running /bin/sh './configure'
--prefix=/usr/local  '--prefix=/usr/local'
'i386-portbld-freebsd4.7' 'CFLAGS=-O -pipe '
'host_alias=i386-portbld-freebsd4.7'
'build_alias=i386-portbld-freebsd4.7'
'target_alias=i386-portbld-freebsd4.7' 'CC=cc'
--cache-file=/dev/null --srcdir=.
configure: WARNING: you should use --build, --host,
--target
checking for i386-portbld-freebsd4.7-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 i386-portbld-freebsd4.7-ranlib... no
checking for ranlib... ranlib
checking build system type... i386-portbld-freebsd4.7
checking host system type... i386-portbld-freebsd4.7
checking how to run the C preprocessor... cc -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... no
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
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 netinet/if_ether.h usability... no
checking netinet/if_ether.h presence... yes
configure: WARNING: netinet/if_ether.h: present but
cannot be compiled
configure: WARNING: netinet/if_ether.h: check for
missing prerequisite headers?
configure: WARNING: netinet/if_ether.h: proceeding
with the preprocessor's result
checking for netinet/if_ether.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for sys/time.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.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 whether time.h and sys/time.h may both be
included... yes
checking for cc option to accept ANSI C... none needed
checking for inline... inline
checking for __attribute__... yes
checking whether byte ordering is bigendian... no
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 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 inet_ntop... yes
checking for inet_pton... yes
checking for inet_aton... yes
checking for getopt_long_only... no
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbase_config.h
config.status: nbase_config.h is unchanged
===>  Building for nmap-3.00
Compiling libnbase
cd nbase; make
cc -O -pipe  -I/usr/local/include -Wall  -g  
-DHAVE_CONFIG_H -DNCRACK_VERSION=\"\"
-DHAVE_CONFIG_H=1  -c snprintf.c
cc -O -pipe  -I/usr/local/include -Wall  -g  
-DHAVE_CONFIG_H -DNCRACK_VERSION=\"\"
-DHAVE_CONFIG_H=1  -c getopt.c
cc -O -pipe  -I/usr/local/include -Wall  -g  
-DHAVE_CONFIG_H -DNCRACK_VERSION=\"\"
-DHAVE_CONFIG_H=1  -c getopt1.c
cc -O -pipe  -I/usr/local/include -Wall  -g  
-DHAVE_CONFIG_H -DNCRACK_VERSION=\"\"
-DHAVE_CONFIG_H=1  -c nbase_str.c
cc -O -pipe  -I/usr/local/include -Wall  -g  
-DHAVE_CONFIG_H -DNCRACK_VERSION=\"\"
-DHAVE_CONFIG_H=1  -c nbase_misc.c
Compiling libnbase
rm -f libnbase.a
ar cr libnbase.a snprintf.o getopt.o getopt1.o
nbase_str.o nbase_misc.o
ranlib libnbase.a
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c main.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c nmap.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c targets.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c tcpip.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c
nmap_error.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c utils.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c
idle_scan.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c osscan.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c output.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c
scan_engine.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c timing.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c charpool.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c services.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c
protocols.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c nmap_rpc.c
cc -g -O -pipe  -I/usr/local/include -Wall  -Inbase 
-DHAVE_CONFIG_H -DNMAP_VERSION=\"3.00\"
-DNMAP_NAME=\"nmap\"
-DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAP_PLATFORM=\"i386-portbld-freebsd4.7\"
-DNMAPDATADIR=\"/usr/local/share/nmap\"  -c portlist.c
Compiling nmap
rm -f nmap
cc -L/usr/local/lib -Lnbase  -o nmap main.o nmap.o
targets.o tcpip.o nmap_error.o utils.o idle_scan.o
osscan.o output.o scan_engine.o timing.o charpool.o
services.o protocols.o nmap_rpc.o portlist.o -lpcap
-lm  -lnbase -lpcap
cd nmapfe; test -f Makefile && make VERSION=3.00
STATIC=;
*** Error code 1 (ignored)




__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault