The project is failing to build on CentOS5 (5.3 to be exact) with an error with pcap:
[root@cerberus ipgrab-0.9.10]# make
make all-recursive
make[1]: Entering directory `/root/apps/ipgrab/ipgrab-0.9.10'
Making all in src
make[2]: Entering directory `/root/apps/ipgrab/ipgrab-0.9.10/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -Wall -Wstrict-prototypes -Wformat -g -O2 -MT datalink.o -MD -MP -MF ".deps/datalink.Tpo" -c -o datalink.o datalink.c; \
then mv -f ".deps/datalink.Tpo" ".deps/datalink.Po"; else rm -f ".deps/datalink.Tpo"; exit 1; fi
In file included from datalink.c:28:
datalink.h:49: warning: ‘struct pcap_pkthdr’ declared inside parameter list
datalink.h:49: warning: its scope is only this definition or declaration, which is probably not what you want
datalink.c:71: warning: ‘struct pcap_pkthdr’ declared inside parameter list
datalink.c:72: error: conflicting types for ‘datalink_pcap’
datalink.h:49: error: previous declaration of ‘datalink_pcap’ was here
datalink.c: In function ‘datalink_pcap’:
datalink.c:81: error: ‘DLT_NULL’ undeclared (first use in this function)
datalink.c:81: error: (Each undeclared identifier is reported only once
datalink.c:81: error: for each function it appears in.)
datalink.c:85: error: ‘DLT_EN10MB’ undeclared (first use in this function)
datalink.c:89: error: ‘DLT_SLIP’ undeclared (first use in this function)
datalink.c:93: error: ‘DLT_PPP’ undeclared (first use in this function)
datalink.c:111: error: dereferencing pointer to incomplete type
datalink.c:112: error: dereferencing pointer to incomplete type
datalink.c:115: error: dereferencing pointer to incomplete type
datalink.c:115: error: dereferencing pointer to incomplete type
datalink.c: In function ‘datalink’:
datalink.c:163: warning: implicit declaration of function ‘ctime’
datalink.c:163: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
datalink.c:163: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
datalink.c:173: warning: pointer targets in passing argument 1 of ‘display_minimal_string’ differ in signedness
datalink.c:178: warning: pointer targets in passing argument 1 of ‘display_minimal_string’ differ in signedness
datalink.c:179: warning: pointer targets in passing argument 1 of ‘display_minimal_string’ differ in signedness
make[2]: *** [datalink.o] Error 1
make[2]: Leaving directory `/root/apps/ipgrab/ipgrab-0.9.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/apps/ipgrab/ipgrab-0.9.10'
make: *** [all] Error 2
You have new mail in /var/spool/mail/root
------------------------------------------------------------------------------------------
Minimum rev calls for 0.3, and CentOS has 0.9. {shrug}
[root@cerberus ipgrab-0.9.10]# rpm -qa |grep -i pcap
libpcap-0.9.4-14.el5