Hi. Snort won't build against this new libnet on Cooker (ML9.1) and there's no old libnet to be found in the repository. Ie. libnet-1.0.2b is required.
gcc -DHAVE_CONFIG_H -I. -I../../../../src/detection-plugins -I../.. -I../../../.. -I../../../../src -I/usr/include/pcap -I../../../../src/output-plugins -I../../../../src/detection-plugins -I../../../../src/preprocessors -I/usr/include -g -O2 -g -O2 -Wall -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -c ../../../../src/detection-plugins/sp_react.c cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory ../../../../src/detection-plugins/sp_react.c: In function `ReactInit': ../../../../src/detection-plugins/sp_react.c:146: warning: implicit declaration of function `libnet_open_raw_sock' ../../../../src/detection-plugins/sp_react.c: In function `SendTCP': ../../../../src/detection-plugins/sp_react.c:444: `IP_H' undeclared (first use in this function) ../../../../src/detection-plugins/sp_react.c:444: (Each undeclared identifier is reported only once ../../../../src/detection-plugins/sp_react.c:444: for each function it appears in.) ../../../../src/detection-plugins/sp_react.c:444: `TCP_H' undeclared (first use in this function) ../../../../src/detection-plugins/sp_react.c:456: warning: implicit declaration of function `libnet_build_ip' ../../../../src/detection-plugins/sp_react.c:458: `PRu16' undeclared (first use in this function) ../../../../src/detection-plugins/sp_react.c:478: warning: passing arg 8 of `libnet_build_tcp' makes integer from pointer without a cast ../../../../src/detection-plugins/sp_react.c:478: too few arguments to function `libnet_build_tcp' ../../../../src/detection-plugins/sp_react.c:480: warning: passing arg 1 of `libnet_do_checksum' from incompatible pointer type ../../../../src/detection-plugins/sp_react.c:480: warning: passing arg 2 of `libnet_do_checksum' makes pointer from integer without a cast ../../../../src/detection-plugins/sp_react.c:480: too few arguments to function `libnet_do_checksum' ../../../../src/detection-plugins/sp_react.c:482: warning: implicit declaration of function `libnet_write_ip' ../../../../src/detection-plugins/sp_react.c:484: warning: implicit declaration of function `libnet_error' ../../../../src/detection-plugins/sp_react.c:484: `LIBNET_ERR_CRITICAL' undeclared (first use in this function) ../../../../src/detection-plugins/sp_react.c:488: warning: implicit declaration of function `libnet_destroy_packet' make[3]: *** [sp_react.o] Error 1 make[3]: Leaving directory `/home/oden/RPM/BUILD/snort-1.9.0/building/plain+flexresp/src/detection-plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/oden/RPM/BUILD/snort-1.9.0/building/plain+flexresp/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oden/RPM/BUILD/snort-1.9.0/building/plain+flexresp' make: *** [all-recursive-am] Error 2 error: Bad exit status from /home/oden/RPM/temp/rpm-tmp.54157 (%build) -- Regards // Oden Eriksson, Deserve-IT.com
