Nmap Development mailing list archives

Nmap 3.00 on HPUX 10.20


From: "SLATER,RICHARD (HP-Unitedkingdom,ex2)" <slater () hp com>
Date: Tue, 1 Oct 2002 17:14:39 +0100

I am trying to compile Nmap 3.00 on HPUX 10.20, but I get the following
errors when running make:
 
(buffy) risla> make
Compiling libpcap
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./pcap-dlpi.c
cc: "pcap-dlpi.c", line 861: warning 604: Pointers are not
assignment-compatible.
cc: "pcap-dlpi.c", line 861: warning 563: Argument #1 is not the correct
type.
cc: "pcap-dlpi.c", line 862: warning 604: Pointers are not
assignment-compatible.
cc: "pcap-dlpi.c", line 862: warning 563: Argument #1 is not the correct
type.
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./pcap.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./inet.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./gencode.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./optimize.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./nametoaddr.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./etherent.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
./savefile.c
        rm -f bpf_filter.c
        ln -s ./bpf/net/bpf_filter.c bpf_filter.c
        cc -Ae -I.  -I/usr/local/include -Aa -O -DHAVE_CONFIG_H -c
bpf_filter.c
cc: "net/bpf.h", line 49: error 1000: Unexpected symbol: "bpf_u_int32".
cc: "net/bpf.h", line 94: error 1000: Unexpected symbol: "u_short".
cc: "net/bpf.h", line 95: error 1000: Unexpected symbol: "bv_minor".
cc: "net/bpf.h", line 96: error 1000: Unexpected symbol: "}".
cc: "net/bpf.h", line 95: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 147: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 147: error 1000: Unexpected symbol: "bpf_u_int32".
cc: "net/bpf.h", line 148: error 1000: Unexpected symbol: "bh_datalen".
cc: "net/bpf.h", line 148: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 149: error 1000: Unexpected symbol: "bh_hdrlen".
cc: "net/bpf.h", line 151: error 1000: Unexpected symbol: "}".
cc: "net/bpf.h", line 149: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 338: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 338: error 1000: Unexpected symbol: "u_short".
cc: "net/bpf.h", line 339: error 1000: Unexpected symbol: "jt".
cc: "net/bpf.h", line 339: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 340: error 1000: Unexpected symbol: "jf".
cc: "net/bpf.h", line 340: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 342: error 1000: Unexpected symbol: "}".
cc: "net/bpf.h", line 368: warning 557: Missing declaration specifiers,
"int" assumed.
cc: "net/bpf.h", line 369: error 1000: Unexpected symbol: "u_char".
cc: "/usr/include/stdlib.h", line 66: error 1000: Unexpected symbol:
"div".
cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1
 
Stop.
*** Error exit code 1
 
Stop.
 
When running the configure script befor I get the following message part
way through:
 
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

config.log contains the following information:
 
configure:3685: checking netinet/if_ether.h usability
configure:3694: cc -c  -I/usr/local/include -Ilibpcap-possiblymodified
conftest.c >&5
cc: "/usr/include/netinet/if_ether.h", line 88: error 1574: Unknown size
for "ea_hdr".
cc: "/usr/include/netinet/if_ether.h", line 88: error 1578: Size of
struct or union member is unknown.
cc: "/usr/include/netinet/if_ether.h", line 119: error 1574: Unknown
size for "ea_hdr".
cc: "/usr/include/netinet/if_ether.h", line 119: error 1578: Size of
struct or union member is unknown.
cc: "/usr/include/netinet/if_ether.h", line 139: error 1000: Unexpected
symbol: "lock_t".
cc: "/usr/include/netinet/if_ether.h", line 131: error 1574: Unknown
size for "ac_if".
cc: "/usr/include/netinet/if_ether.h", line 131: error 1578: Size of
struct or union member is unknown.
cc: "/usr/include/netinet/if_ether.h", line 133: error 1574: Unknown
size for "ac_ipaddr".
cc: "/usr/include/netinet/if_ether.h", line 133: error 1578: Size of
struct or union member is unknown.
cc: "/usr/include/netinet/if_ether.h", line 210: error 1574: Unknown
size for "at_iaddr".
cc: "/usr/include/netinet/if_ether.h", line 210: error 1578: Size of
struct or union member is unknown.
cc: "/usr/include/netinet/if_ether.h", line 248: error 1000: Unexpected
symbol: "rw_lock_data_t".
cc: "/usr/include/netinet/if_ether.h", line 248: error 1573: Type of
"chain_lock" is undefined due to an illegal declaration.
cc: "/usr/include/netinet/if_ether.h", line 248: error 1578: Size of
struct or union member is unknown.
configure:3697: $? = 1
configure: failed program was:
#line 3687 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <netinet/if_ether.h>
configure:3712: result: no
configure:3716: checking netinet/if_ether.h presence
configure:3723: cc -E  conftest.c
configure:3729: $? = 0
configure:3747: result: yes
configure:3758: WARNING: netinet/if_ether.h: present but cannot be
compiled
configure:3760: WARNING: netinet/if_ether.h: check for missing
prerequisite headers?
configure:3762: WARNING: netinet/if_ether.h: proceeding with the
preprocessor's result
configure:3765: checking for netinet/if_ether.h
configure:3772: result: yes
 
If I can get this working, I can post the binaries for UX10.20 and
hopefully UX11 somewhere on the web, I would appreciate any help.
 
Regards

____________________________________________ 
 <mailto:slater () hp com> Richard Slater 
HP-UX  <mailto:risla () bri hp com> Support
Ext. Tel: +44 0117 312 9260
Telnet: 312-9260


 <http://www.hp.com/> 
Hewlett Packard Ltd.
Filton Road,
Stoke Gifford,
 Bristol 
 

Attachment: smime.p7s
Description:


Current thread: