[dsc] compile issue on linux

Sean Leach sleach at wiggum.com
Tue Jun 12 14:26:03 UTC 2007


Howdy,

Trying to compile the collector (dsc-200705151838) on CentOS 4 (RHEL  
4 rebuild), and I get the following error building pcap.c:

cc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -g -Wall - 
DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include  -c -o pcap.o pcap.c
pcap.c: In function `handle_tcp':
pcap.c:459: error: structure has no member named `th_off'
pcap.c:465: error: structure has no member named `th_sport'
pcap.c:465: error: structure has no member named `th_sport'
pcap.c:466: error: structure has no member named `th_dport'
pcap.c:466: error: structure has no member named `th_dport'
pcap.c:496: error: structure has no member named `th_seq'
pcap.c:496: error: structure has no member named `th_seq'
pcap.c:496: error: structure has no member named `th_seq'
pcap.c:496: error: structure has no member named `th_seq'
pcap.c:509: error: structure has no member named `th_flags'
pcap.c:509: error: `TH_SYN' undeclared (first use in this function)
pcap.c:509: error: (Each undeclared identifier is reported only once
pcap.c:509: error: for each function it appears in.)
pcap.c:518: error: structure has no member named `th_flags'
pcap.c:545: error: structure has no member named `th_flags'
pcap.c:545: error: `TH_FIN' undeclared (first use in this function)
make: *** [pcap.o] Error 1


Suggestions?  I tried adding a #define FAVOR_BSD as well, just in  
case, that didn't help.

Thanks!
Sean



More information about the dsc mailing list