tcpdump mailing list archives

./pcap-bpf.c:340: storage size of `cfg_bpf' isn't known AIX problem


From: Jaime Fournier <jafour1 () yahoo com>
Date: Thu, 6 Nov 2003 18:46:44 -0800 (PST)

I have upgraded to the latest CVS and I  can not get
it to compile now. It errors out about unknown size of
cfg_bpf. I can see the new code to create /dev/bpf
devices on AIX, as well as load the bpf driver. 
The definition for bpf_config is defined in the
net/bpf.h so I am not sure what I need to fix.

Thanks in advance.
----------------------------------------------------
# ./configure --with-pcap=bpf
loading cache ./config.cache
machecking host system type...
kepowerpc-ibm-aix4.3.3.0
checking target system type... powerpc-ibm-aix4.3.3.0
checking build system type... powerpc-ibm-aix4.3.3.0
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -Wl,-bbigtoc )
works...
yes
checking whether the C compiler (gcc -Wl,-bbigtoc ) is
a 
cross-compiler...
no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking gcc version... (cached) 2
checking for inline... (cached) inline
checking for __attribute__... (cached) yes
checking for u_int8_t using gcc... (cached) yes
checking for u_int16_t using gcc... (cached) yes
checking for u_int32_t using gcc... (cached) yes
checking how to run the C preprocessor... (cached) gcc
-E
checking for sys/ioccom.h... (cached) no
checking for sys/sockio.h... (cached) no
checking for ifaddrs.h... (cached) no
checking for limits.h... (cached) yes
checking for netinet/if_ether.h... (cached) yes
checking for ANSI ioctl definitions... (cached) yes
checking for ether_hostton... (cached) yes
checking for strerror... (cached) yes
checking for strlcpy... (cached) no
checking if --disable-protochain option is
specified... enabled
checking packet capture type... bpf
checking for getifaddrs... (cached) no
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... no
checking for flex... (cached) flex
checking for flex 2.4 or higher... (cached) yes
checking for bison... (cached) bison
checking for ranlib... (cached) ranlib
checking if sockaddr struct has sa_len member...
(cached) yes
checking if sockaddr_storage struct exists... (cached)
no
checking if dl_hp_ppa_info_t struct has dl_module_id_1
member... 
(cached)
no
checking if unaligned accesses fail... (cached) no
checking for a BSD compatible install... (cached) 
/usr/local/bin/install -c
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
[RC = 0]
root@dceperf02:/usr/fsperf/build/libpcap
# make
gcc -O2 -Wl,-bbigtoc -I.  -DHAVE_CONFIG_H  -c
./pcap-bpf.c
In file included from ./pcap-bpf.c:62:
/usr/include/cf.h:275: warning: `struct PdDv' declared
inside parameter
list
/usr/include/cf.h:275: warning: its scope is only this
definition or
declaration, which is probably not what you want.
/usr/include/cf.h:275: warning: `struct CuDv' declared
inside parameter
list
/usr/include/cf.h:276: warning: `struct PdDv' declared
inside parameter
list
/usr/include/cf.h:276: warning: `struct CuDv' declared
inside parameter
list
/usr/include/cf.h:277: warning: `struct PdDv' declared
inside parameter
list
/usr/include/cf.h:277: warning: `struct CuDv' declared
inside parameter
list
./pcap-bpf.c: In function `bpf_load':
./pcap-bpf.c:340: storage size of `cfg_bpf' isn't
known
make: *** [pcap-bpf.o] Error 1
[RC = 2]


=====
Jaime Fournier

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: