Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Compile error nmap-4.22SOC7 on OpenBSD
From: Vijay Sankar <vsankar () foretell ca>
Date: Thu, 11 Oct 2007 08:30:15 -0500

Unfortunately, I am not able to compile this on OpenBSD 4.1 or 4.2 (release) 
or 4.2-current. gmake dies at tcpip.o. 

Earlier on (while I was having errors with SOC6 code), I did get a message 
from Eddie Bell who was planning to look at his portreasons.h., so that may 
resolve this but I am wondering if I am making some other mistake or if there 
is something else that is wrong. If you have any thoughts on how I could 
compile this properly, please let me know ASAP!!!

Thanks very much,

Vijay

./configure --with-libpcap=/usr --with-openssl=/usr --with-libpcre=/usr/local --with-libdnet=/usr/local 
--prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info

checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... AVAILABLE
checking whether the compiler is gcc 4 or greater... yes
checking for __func__... yes
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
checking for inline... inline
checking how to run the C preprocessor... gcc -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 pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for library containing setsockopt... 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 lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lua/lua.h usability... no
checking lua/lua.h presence... no
checking for lua/lua.h... no
checking for lua version >= 501... no
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 strerror... yes
checking for type of 6th argument to recvfrom()... socklen_t
checking for pkg-config... /usr/bin/pkg-config
checking If you have GTK+ installed... 2.8.20
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in nselib
configure: 
running /bin/sh './configure' --prefix=/usr/local  '--with-libpcap=/usr' '--with-openssl=/usr' 
'--with-libpcre=/usr/local' '--with-libdnet=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... 
match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... openbsd4.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... openbsd4.1 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... no
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... openbsd4.1 ld.so
checking how to hardcode library paths into programs... immediate
checking host system type... (cached) i386-unknown-openbsd4.1
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
configure: using lua-includefiles provided with nmap
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in nbase
configure: 
running /bin/sh './configure' --prefix=/usr/local  '--with-libpcap=/usr' '--with-openssl=/usr' 
'--with-libpcre=/usr/local' '--with-libdnet=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
checking for inline... inline
checking how to run the C preprocessor... gcc -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 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 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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/stat.h... (cached) yes
checking net/if.h usability... no
checking net/if.h presence... yes
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h:     check for missing prerequisite headers?
configure: WARNING: net/if.h: see the Autoconf documentation
configure: WARNING: net/if.h:     section "Present But Cannot Be Compiled"
configure: WARNING: net/if.h: proceeding with the preprocessor's result
configure: WARNING: net/if.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for net/if.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking whether time.h and sys/time.h may both be included... yes
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 snprintf... yes
checking for vsnprintf... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for strcasecmp... yes
checking for strncasecmp... 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... yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) 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
configure: 
running /bin/sh './configure' --prefix=/usr/local  '--with-libpcap=/usr' '--with-openssl=/usr' 
'--with-libpcre=/usr/local' '--with-libdnet=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info' --cache-file=/dev/null --srcdir=.
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
checking target system type... i386-unknown-openbsd4.1
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for netinet/if_ether.h... no
configure: Rechecking with some additional includes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... no
checking for ether_hostton... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... bpf
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
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 whether we have DAG API headers... no (/usr/local/include)
checking whether we have Septel API... no
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... yes
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking whether the compiler is gcc 4 or greater... no - 3 ; gcc ; yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h
configure: configuring in nsock/src
configure: 
running /bin/sh './configure' --prefix=/usr/local  '--with-libpcap=/usr' '--with-openssl=/usr' 
'--with-libpcre=/usr/local' '--with-libdnet=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info' --cache-file=/dev/null --srcdir=.
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for gethostent... yes
checking for setsockopt... yes
checking for nanosleep... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
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 nmapfe
configure: 
running /bin/sh './configure' --prefix=/usr/local  '--with-libpcap=/usr' '--with-openssl=/usr' 
'--with-libpcre=/usr/local' '--with-libdnet=/usr/local' '--prefix=/usr/local' '--sysconfdir=/etc' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.8.20)
checking build system type... i386-unknown-openbsd4.1
checking host system type... i386-unknown-openbsd4.1
configure: creating ./config.status
config.status: creating Makefile
  (  )   /\   _                 (
    \ |  (  \ ( \.(               )                      _____
  \  \ \  `  `   ) \             (  ___                 / _   \
 (_`    \+   . x  ( .\            \/   \____-----------/ (o)   \_
- .-               \+  ;          (  O                           \____
                          )        \_____________  `              \  /
(__                +- .( -'.- <. - _  VVVVVVV VV V\                 \/
(_____            ._._: <_ - <- _  (--  _AAAAAAA__A_/                |
  .    /./.+-  . .- /  +--  - .     \______________//_              \_______
  (__ ' /x  / x _/ (                                  \___'          \     /
 , x / ( '  . / .  /                                      |           \   /
    /  /  _/ /    +                                      /              \/
   '  (__/                                             /                  \
             NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY
Configuration complete.  Type make (or gmake on some *BSD machines) to 
compile.


vijay$ gmake

Makefile:265: makefile.dep: No such file or directory
g++ -MM -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\"  
main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc 
osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc 
services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc 
Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc 
MACLookup.cc nmap_tty.cc nmap_dns.cc traceroute.cc portreasons.cc nse_main.cc 
nse_auxiliar.cc nse_nsock.cc nse_init.cc nse_nmaplib.cc nse_debug.cc 
nse_string.cc   > makefile.dep
Compiling liblua
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/liblua'
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldo.o ldo.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldump.o ldump.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN   -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o 
lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o 
lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o 
loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/liblua'
Compiling libpcap
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcap'
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-bpf.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./fad-getad.c
sed -e 's/.*/static const char pcap_version_string[] = "libpcap version 
&";/' ./VERSION > version.h
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./inet.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./gencode.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./optimize.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./nametoaddr.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./etherent.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./savefile.c
rm -f bpf_filter.c
ln -s ./bpf/net/bpf_filter.c bpf_filter.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c 
bpf_filter.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./bpf_image.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./bpf_dump.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c scanner.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -Dyylval=pcap_lval -c 
grammar.c
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
gcc -g -O2 -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c version.c
ar rc libpcap.a pcap-bpf.o fad-getad.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
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcap'
Compiling libnbase
cd nbase && gmake
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1    -c -o 
snprintf.o snprintf.c
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1    -c -o 
nbase_str.o nbase_str.c
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1    -c -o 
nbase_misc.o nbase_misc.c
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1    -c -o 
nbase_memalloc.o nbase_memalloc.c
gcc -g -O2 -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1    -c -o 
nbase_rnd.o nbase_rnd.c
rm -f libnbase.a
ar cr libnbase.a snprintf.o nbase_str.o nbase_misc.o nbase_memalloc.o 
nbase_rnd.o
ranlib libnbase.a
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
Compiling libnsock
cd nsock/src && gmake
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nsock/src'
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
error.c -o error.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
filespace.c -o filespace.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
gh_list.c -o gh_list.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_connect.c -o nsock_connect.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_core.c -o nsock_core.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_iod.c -o nsock_iod.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_read.c -o nsock_read.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_timers.c -o nsock_timers.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_write.c -o nsock_write.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_ssl.c -o nsock_ssl.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_utils.c -o nsock_utils.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_event.c -o nsock_event.o
nsock_event.c: In function `msevent_cancel':
nsock_event.c:244: warning: unsigned int format, pointer arg (arg 4)
nsock_event.c:244: warning: unsigned int format, pointer arg (arg 5)
nsock_event.c:244: warning: unsigned int format, pointer arg (arg 6)
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_pool.c -o nsock_pool.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
netutils.c -o netutils.o
gcc -c  -I/usr/include -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\"  -I../include 
-I../../libpcap 
nsock_pcap.c -o nsock_pcap.o
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 
nsock_utils.o nsock_event.o nsock_pool.o netutils.o nsock_pcap.o
ranlib libnsock.a
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nsock/src'
Compiling nse-standard-library
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nselib'
./libtool --tag=CC --silent --mode=compile 
gcc -I../liblua/ -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" -c 
bit.c
./libtool --tag=CC --silent --mode=link 
gcc -avoid-version -module -rpath /usr/local/lib -o bit.la bit.lo
mv .libs/bit.so bit.so
./libtool --tag=CC --silent --mode=compile 
gcc -I/usr/local/include -I../liblua/ -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  
-fno-strict-aliasing -I/usr/include -I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" 
-DNMAP_URL=\"http://insecure.org\"; -DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" -c 
pcre.c
./libtool --tag=CC --silent --mode=link 
gcc -L/usr/local/lib -lpcre -avoid-version -module -rpath /usr/local/lib -o 
pcre.la pcre.lo
mv .libs/pcre.so pcre.so
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nselib'
g++ -c  -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" 
main.cc -o main.o
g++ -c  -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" 
nmap.cc -o nmap.o
g++ -c  -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" 
targets.cc -o targets.o
g++ -c  -Iliblua -I/usr/local/include -I/usr/local/include -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" 
tcpip.cc -o tcpip.o
In file included from portreasons.h:108,
                 from tcpip.cc:105:
/usr/include/netinet/in.h:136: error: 'in_addr_t' is used as a type, but is 
not
   defined as a type.
/usr/include/netinet/in.h:213: error: 'u_int8_t' is used as a type, but is not
   defined as a type.
/usr/include/netinet/in.h:214: error: 'sa_family_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet/in.h:215: error: 'in_port_t' is used as a type, but is 
not
   defined as a type.
/usr/include/netinet/in.h:217: error: syntax error before `[' token
/usr/include/netinet/in.h:230: error: syntax error before `[' token
In file included from /usr/include/netinet/in.h:554,
                 from portreasons.h:108,
                 from tcpip.cc:105:
/usr/include/netinet6/in6.h:118: error: syntax error before `[' token
/usr/include/netinet6/in6.h:119: error: syntax error before `[' token
/usr/include/netinet6/in6.h:120: error: syntax error before `[' token
/usr/include/netinet6/in6.h:140: error: 'u_int8_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet6/in6.h:141: error: 'sa_family_t' is used as a type, but 
is
   not defined as a type.
/usr/include/netinet6/in6.h:142: error: 'in_port_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet6/in6.h:143: error: 'u_int32_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet6/in6.h:145: error: 'u_int32_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet6/in6.h:514: error: 'u_int32_t' is used as a type, but is
   not defined as a type.
/usr/include/netinet6/in6.h:735: error: syntax error before `;' token
/usr/include/netinet6/in6.h:739: error: syntax error before `*' token
/usr/include/netinet6/in6.h:741: error: syntax error before `*' token
/usr/include/netinet6/in6.h:742: error: syntax error before `*' token
/usr/include/netinet6/in6.h:743: error: syntax error before `*' token
/usr/include/netinet6/in6.h:745: error: syntax error before `(' token
/usr/include/netinet6/in6.h:757: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:758: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:758: error: type specifier omitted for parameter `
   u_int8_t'
/usr/include/netinet6/in6.h:759: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:759: error: type specifier omitted for parameter `
   u_int8_t'
/usr/include/netinet6/in6.h:760: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:761: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:763: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:763: error: syntax error before `*' token
/usr/include/netinet6/in6.h:765: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:765: error: type specifier omitted for parameter `
   u_int8_t'
/usr/include/netinet6/in6.h:766: error: syntax error before `*' token
/usr/include/netinet6/in6.h:767: error: type specifier omitted for parameter `
   socklen_t'
/usr/include/netinet6/in6.h:769: error: syntax error before `(' token
/usr/include/netinet6/in6.h:770: error: type specifier omitted for parameter `
   socklen_t'
In file included from portreasons.h:108,
                 from tcpip.cc:105:
/usr/include/netinet/in.h:561: error: syntax error before string constant
/usr/include/netinet/in.h:565: error: syntax error before `}' token
In file included from portreasons.h:108,
                 from tcpip.cc:105:
/usr/include/netinet/in.h:557:1: unterminated #ifndef
/usr/include/netinet/in.h:40:1: unterminated #ifndef
In file included from tcpip.cc:105:
portreasons.h:105:1: unterminated #else
portreasons.h:102:1: unterminated #ifndef
gmake: *** [tcpip.o] Error 1

Thanks again,

Vijay

-- 
Vijay Sankar, M.Eng., P.Eng.
President & CEO
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6
Phone: +1 204 885 9535, E-Mail: vsankar () foretell ca

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


  By Date           By Thread  

Current thread:
  • Compile error nmap-4.22SOC7 on OpenBSD Vijay Sankar (Oct 11)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]