From: Jason <sec...@br...> - 2005-10-24 14:50:58
|
Sorry. I didn't notice that you installed Libnet 1.1 in my last mail. Install 1.0.2 from fink and it should be fine. libnet1.0 Set of routines to handle network packets Installed: 1.0.2a-13 Unstable: 1.0.2a-13 Stable: None Binary: 1.0.2a-13 Web site: http://www.packetfactory.net/projects/libnet/ Maintainer: Jeremy Higgs <fi...@hi...> James Brown wrote: > When I try it with snort 2.4.3 (typing make) I get the same thing: > > make all-recursive > Making all in src > Making all in sfutil > make[3]: Nothing to be done for `all'. > Making all in win32 > make[3]: Nothing to be done for `all'. > Making all in output-plugins > make[3]: Nothing to be done for `all'. > Making all in detection-plugins > make[3]: Nothing to be done for `all'. > Making all in preprocessors > Making all in flow > Making all in portscan > make[5]: Nothing to be done for `all'. > Making all in int-snort > make[5]: Nothing to be done for `all'. > make[5]: Nothing to be done for `all-am'. > Making all in HttpInspect > Making all in include > make[5]: Nothing to be done for `all'. > Making all in utils > make[5]: Nothing to be done for `all'. > Making all in user_interface > make[5]: Nothing to be done for `all'. > Making all in session_inspection > make[5]: Nothing to be done for `all'. > Making all in mode_inspection > make[5]: Nothing to be done for `all'. > Making all in anomaly_detection > make[5]: Nothing to be done for `all'. > Making all in event_output > make[5]: Nothing to be done for `all'. > Making all in server > make[5]: Nothing to be done for `all'. > Making all in client > make[5]: Nothing to be done for `all'. > Making all in normalization > make[5]: Nothing to be done for `all'. > make[5]: Nothing to be done for `all-am'. > make[4]: Nothing to be done for `all-am'. > Making all in parser > make[3]: Nothing to be done for `all'. > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/sw/ > include -I../src/output-plugins -I../src/detection-plugins -I../src/ > preprocessors -I../src/preprocessors/flow -I../src/preprocessors/ > portscan -I../src/preprocessors/flow/int-snort -I../src/ > preprocessors/HttpInspect/include -I/usr/local/include -I/sw/ include > -g -O2 -Wall -DGIDS -DIPFW -c `test -f 'inline.c' || echo './'`inline.c > inline.c: In function 'InitInlinePostConfig': > inline.c:126: warning: implicit declaration of function > 'libnet_open_raw_sock' > inline.c:132: error: 'IP_H' undeclared (first use in this function) > inline.c:132: error: (Each undeclared identifier is reported only once > inline.c:132: error: for each function it appears in.) > inline.c:132: error: 'TCP_H' undeclared (first use in this function) > inline.c:175: warning: implicit declaration of function 'libnet_build_ip' > inline.c:175: error: 'PRu16' undeclared (first use in this function) > inline.c:179: warning: passing argument 8 of 'libnet_build_tcp' makes > integer from pointer without a cast > inline.c:179: error: too few arguments to function 'libnet_build_tcp' > inline.c:182: error: 'ICMP_UNREACH_H' undeclared (first use in this > function) > inline.c:184: warning: implicit declaration of function > 'libnet_build_icmp_unreach' > inline.c: In function 'InitInline': > inline.c:194: warning: unused variable 'status' > inline.c: In function 'IpfwLoop': > inline.c:354: warning: pointer targets in passing argument 3 of > 'PcapProcessPacket' differ in signedness > inline.c: In function 'RejectSocket': > inline.c:405: error: 'IP_H' undeclared (first use in this function) > inline.c:405: error: 'TCP_H' undeclared (first use in this function) > inline.c:420: warning: passing argument 1 of 'libnet_do_checksum' from > incompatible pointer type > inline.c:420: warning: passing argument 2 of 'libnet_do_checksum' makes > pointer from integer without a cast > inline.c:420: error: too few arguments to function 'libnet_do_checksum' > inline.c:422: warning: implicit declaration of function 'libnet_error' > inline.c:422: error: 'LIBNET_ERR_CRITICAL' undeclared (first use in > this function) > inline.c:427: warning: implicit declaration of function 'libnet_write_ip' > inline.c:451: error: 'ICMP_UNREACH_H' undeclared (first use in this > function) > inline.c:460: warning: passing argument 1 of 'libnet_do_checksum' from > incompatible pointer type > inline.c:460: warning: passing argument 2 of 'libnet_do_checksum' makes > pointer from integer without a cast > inline.c:460: error: too few arguments to function 'libnet_do_checksum' > inline.c: In function 'HandlePacket': > inline.c:699: warning: unused variable 'status' > make[3]: *** [inline.o] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > James. > > On 25/10/2005, at 12:41 AM, Jason wrote: > >> try 2.4.3 from snort.org. lots of pointer warnings but I had no issues >> with it at all beyond that. >> >> James Brown wrote: >> >>> >>> On 25/10/2005, at 12:09 AM, Jason wrote: >>> >>> >>>> I did not use the 2.3.0-RC1 inline port. I used snort proper from >>>> snort.org with it's native inline capabilities. You will need to >>>> provide >>>> a config.guess for the OS X box or just use fink to install the >>>> libnet. >>>> >>> >>> >>> Have just installed Fink and used it to install libnet 1.1.0-3 and now >>> I have got the ./configure line to work. Running make now! Lots of >>> warnings about pointers differing in signness. >>> >>> Actually, it has now failed: >>> >>> inline.c:420: warning: passing argument 1 of 'libnet_do_checksum' from >>> incompatible pointer type >>> inline.c:420: warning: passing argument 2 of 'libnet_do_checksum' >>> makes >>> pointer from integer without a cast >>> inline.c:420: error: too few arguments to function 'libnet_do_checksum' >>> inline.c:422: warning: implicit declaration of function 'libnet_error' >>> inline.c:422: error: 'LIBNET_ERR_CRITICAL' undeclared (first use in >>> this function) >>> inline.c:427: warning: implicit declaration of function >>> 'libnet_write_ip' >>> inline.c:451: error: 'ICMP_UNREACH_H' undeclared (first use in this >>> function) >>> inline.c:460: warning: passing argument 1 of 'libnet_do_checksum' from >>> incompatible pointer type >>> inline.c:460: warning: passing argument 2 of 'libnet_do_checksum' >>> makes >>> pointer from integer without a cast >>> inline.c:460: error: too few arguments to function 'libnet_do_checksum' >>> inline.c: In function 'HandlePacket': >>> inline.c:699: warning: unused variable 'status' >>> make[3]: *** [inline.o] Error 1 >>> make[2]: *** [all-recursive] Error 1 >>> make[1]: *** [all-recursive] Error 1 >>> make: *** [all] Error 2 >>> >>> Any suggestions? >>> >>> Thanks, >>> >>> James. >>> >>> >>>> >>>> James Brown wrote: >>>> >>>> >>>>> Have just tried to install snort_inline-2.3.0-RC1 as per Nick's >>>>> instructions. Unfortunately, after typing ./configure -- enable-- >>>>> inline >>>>> --enable-ipfw I get: >>>>> >>>>> checking for pcre_compile in -lpcre... yes >>>>> checking "for libnet.h version 1.0.x"... >>>>> >>>>> ********************************************** >>>>> ERROR: unable to find libnet 1.0.x (libnet.h) >>>>> checked in the following places >>>>> ********************************************** >>>>> >>> >>> >>> >> >> > |