Howdy folks,
I'm having trouble compiling libpcap - it configures ok, but when I
run make I
get:
# make
gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap-dlpi.c
pcap-dlpi.c: In function `pcap_read':
pcap-dlpi.c:202: incompatible types in assignment
make: *** [pcap-dlpi.o] Error 1
#
Relevant info:
# uname -a
SunOS ariaprod01 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-60
#
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparcv9-sun-solaris2.7/3.0/specs
Configured with: ../gcc-3.0/configure sparcv9-sun-solaris2.7
Thread model: posix
gcc version 3.0
#
Any clues for me?
make distclean ; ./configure produces:
# make distclean ; ./configure
rm -f pcap-dlpi.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 libpcap.a scanner.c grammar.c version.c tokdefs.h
lex.yy.c Makefile config.cache config.log config.status \
config.h gnuc.h os-proto.h net bpf_filter.c stamp-h stamp-h.in
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... no
checking for u_int16_t using gcc... no
checking for u_int32_t using gcc... no
checking how to run the C preprocessor... gcc -E
checking for sys/ioccom.h... yes
checking for sys/sockio.h... yes
checking for ifaddrs.h... no
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for ether_hostton... no
checking for strerror... yes
checking for freeifaddrs... no
checking for strlcpy... no
checking if --disable-protochain option is specified... enabled
checking packet capture type... dlpi
checking if --enable-ipv6 option is specified... no
checking for sys/bufmod.h... yes
checking for sys/dlpi_ext.h... no
checking for /dev/dlpi device... no
checking for /dev/dlpi directory... no
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... yes
checking for a BSD compatible install... ./install-sh -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
#