[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

wacky bpf build failures



Anybody got an idea what's gone wrong here?  This is from the build log for 
divine.

gcc -Wall -D_REENTRANT -o divine divine.c -O2 -pipe -s -lnet -lpcap -lpthread `libnet-config --defines --cflags --libs`
In file included from /usr/include/pcap.h:42,
                 from divine.c:8:
/usr/include/net/bpf.h:49: parse error before `bpf_u_int32'
/usr/include/net/bpf.h:49: warning: data definition has no type or storage class
/usr/include/net/bpf.h:70: parse error before `u_int'
/usr/include/net/bpf.h:70: warning: no semicolon at end of struct or union
/usr/include/net/bpf.h:72: parse error before `}'
/usr/include/net/bpf.h:78: parse error before `u_int'
/usr/include/net/bpf.h:78: warning: no semicolon at end of struct or union
/usr/include/net/bpf.h:79: warning: data definition has no type or storage class
/usr/include/net/bpf.h:94: parse error before `u_short'
/usr/include/net/bpf.h:94: warning: no semicolon at end of struct or union
/usr/include/net/bpf.h:95: warning: data definition has no type or storage class
/usr/include/net/bpf.h:147: parse error before `bpf_u_int32'
/usr/include/net/bpf.h:147: warning: no semicolon at end of struct or union
/usr/include/net/bpf.h:148: warning: data definition has no type or storage class
/usr/include/net/bpf.h:149: parse error before `bh_hdrlen'
/usr/include/net/bpf.h:149: warning: data definition has no type or storage class
/usr/include/net/bpf.h:338: parse error before `u_short'
/usr/include/net/bpf.h:338: warning: no semicolon at end of struct or union
/usr/include/net/bpf.h:339: warning: data definition has no type or storage class
/usr/include/net/bpf.h:340: parse error before `jf'
/usr/include/net/bpf.h:340: warning: data definition has no type or storage class
/usr/include/net/bpf.h:342: parse error before `}'
/usr/include/net/bpf.h:369: parse error before `bpf_filter'
(and on and on and on...)

p.




Reply to: