This is a discussion on Re: [Snort-users] Problems compiling with --enable-inline on CentOS within the Snort forums, part of the System Security and Security Related category; --===============0341756366== Content-Type: multipart/alternative; boundary="----=_Part_2061_1470314.1203621546933" ------=_Part_2061_1470314.1203621546933 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0341756366==
Content-Type: multipart/alternative; boundary="----=_Part_2061_1470314.1203621546933" ------=_Part_2061_1470314.1203621546933 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline OK, so I set my libnet-headers.h back the way they were before Todd's previously suggested edit, then I tried option 1 below, and it compiled. I will give it a spin and post to the group after verifying that inline works properly. I anticipate that it will since it compiled properly. Thanks, Todd! Dave On 2/21/08, Todd Wease <twease@sourcefire.com> wrote: > > Two other things to try: > > 1) Under your Snort source directory in src/inline.c, try adding the > following line just under #include <libnet.h>: > > #include <net/ethernet.h> > > If this does not work, try: > > 2) In src/inline.h, just under #include "snort.h", try adding the > following: > > struct ether_addr > { > u_char ether_addr_octet[6]; > }; > > and see if that works. Let us know. > > > Thanks, > Todd > > David Thibault wrote: > > > Nope, same (or similar) error: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil > > -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins > > -I../src/dynamic-plugins -I../src/preprocessors > > -I../src/preprocessors/flow -I../src/preprocessors/portscan > > -I../src/preprocessors/flow/int-snort > > -I../src/preprocessors/HttpInspect/include > > -I../src/preprocessors/Stream5 -I../src/target-based > > -I/usr/local/snort/include -I/usr/local/snort/include > > -I/usr/local/snort/include -I/usr/local/snort/include > > -I/usr/local/snort/include -fno-strict-aliasing -g -O2 -Wall > > -DDYNAMIC_PLUGIN -DGIDS -DLIBNET_LIL_ENDIAN -fno-strict-aliasing -c > inline.c > > inline.c: In function 'InitInlinePostConfig': > > inline.c:183: warning: pointer targets in passing argument 11 of > > 'libnet_build_ip' differ in signedness > > inline.c:186: warning: pointer targets in passing argument 10 of > > 'libnet_build_tcp' differ in signedness > > inline.c:190: warning: pointer targets in passing argument 11 of > > 'libnet_build_ip' differ in signedness > > inline.c:192: warning: pointer targets in passing argument 13 of > > 'libnet_build_icmp_unreach' differ in signedness > > inline.c:201: warning: pointer targets in passing argument 11 of > > 'libnet_build_ip' differ in signedness > > inline.c:204: warning: pointer targets in passing argument 10 of > > 'libnet_build_tcp' differ in signedness > > inline.c:208: warning: pointer targets in passing argument 11 of > > 'libnet_build_ip' differ in signedness > > inline.c:210: warning: pointer targets in passing argument 13 of > > 'libnet_build_icmp_unreach' differ in signedness > > inline.c: In function 'IpqLoop': > > inline.c:282: warning: implicit declaration of function 'sig_check' > > inline.c: In function 'RejectSocket': > > inline.c:454: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:461: warning: pointer targets in passing argument 2 of > > 'libnet_write_ip' differ in signedness > > inline.c:494: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:502: warning: pointer targets in passing argument 2 of > > 'libnet_write_ip' differ in signedness > > inline.c: In function 'RejectLayer2': > > inline.c:594: error: dereferencing pointer to incomplete type > > inline.c:629: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:635: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:642: warning: pointer targets in passing argument 6 of > > 'libnet_build_ethernet' differ in signedness > > inline.c:649: warning: pointer targets in passing argument 3 of > > 'libnet_write_link_layer' differ in signedness > > inline.c:683: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:689: warning: pointer targets in passing argument 1 of > > 'libnet_do_checksum' differ in signedness > > inline.c:697: warning: pointer targets in passing argument 6 of > > 'libnet_build_ethernet' differ in signedness > > inline.c:707: warning: pointer targets in passing argument 3 of > > 'libnet_write_link_layer' differ in signedness > > make[3]: *** [inline.o] Error 1 > > make[3]: Leaving directory `/home/davidt/snort/snort-2.8.0.1/src > > > <http://2.8.0.1/src>' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory `/home/davidt/snort/snort-2.8.0.1/src > > <http://2.8.0.1/src>' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/davidt/snort/snort-2.8.0.1 > > <http://2.8.0.1>' > > > make: *** [all] Error 2 > > > > This time I left off the other --enable-* statements and just went with > > the following configure command (still pointing to all my libs and incs > > just in case): > > ./configure --enable-inline > > --with-libpcap-includes=/usr/local/snort/include > > --with-libpcap-libraries=/usr/local/snort/lib > > --with-libpcre-includes=/usr/local/snort/include > > --with-libpcre-libraries=/usr/local/snort/lib > > --with-libnet-includes=/usr/local/snort/include > > --with-libnet-libraries=/usr/local/snort/lib > > --with-dnet-includes=/usr/local/snort/include > > --with-dnet-libraries=/usr/local/snort/lib > > > > Best, > > Dave > > > > On 2/21/08, *David Thibault* <dave@itstrategypartners.com > > > <mailto:dave@itstrategypartners.com>> wrote: > > > > Thanks, Todd. I will try that and post the results. > > > > > > Best, > > Dave > > > > > > On 2/21/08, *Todd Wease* <twease@sourcefire.com > > > <mailto:twease@sourcefire.com>> wrote: > > > > David, > > > > My only guess is that "struct ether_addr" is not getting defined > > on your > > system. Try editing libnet-headers.h (most likely in > > /usr/include/libnet). At or around line 391, remove the #if > > (!__GLIBC__) / #endif lines and see if that solves the > > problem. If not, > > please repost results. > > > > Thanks, > > Todd > > > > > > David Thibault wrote: > > > Hello all, > > > > > > I have been banging my head against the keyboard for 2 days > > now...=) I > > > > > am trying to install Snort 2.8.0.1 <http://2.8.0.1> > > <http://2.8.0.1> on Centos 5.1. I > > > > > have tried using RPMs for the library and include > > dependencies, and > > > tried with compiling everything from source. Every time I > > > --enable-inline I get the following errors: > > > > > > make[3]: Entering directory > > `/home/davidt/snort/snort-2.8.0.1/src <http://2.8.0.1/src> > > > > > <http://2.8.0.1/src>' > > > > > gcc -m64 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src > > -I../src/sfutil > > > -I/usr/include/pcap -I../src/output-plugins > > -I../src/detection-plugins > > > -I../src/dynamic-plugins -I../src/preprocessors > > > -I../src/preprocessors/flow -I../src/preprocessors/portscan > > > -I../src/preprocessors/flow/int-snort > > > -I../src/preprocessors/HttpInspect/include > > > -I../src/preprocessors/Stream5 -I../src/target-based > > > -I/usr/local/snort/include -I/usr/local/snort/include > > > -I/usr/local/snort/include -I/usr/local/snort/include > > > -I/usr/include/mysql -DENABLE_MYSQL > -I/usr/local/snort/include > > > -fno-strict-aliasing -O0 -g -Wall -pthread > -I/usr/local/include > > > -DDYNAMIC_PLUGIN -DGIDS -DLIBNET_LIL_ENDIAN > > -fno-strict-aliasing -c inline.c > > > inline.c: In function 'InitInlinePostConfig': > > > inline.c:183: warning: pointer targets in passing argument 11 > of > > > 'libnet_build_ip' differ in signedness > > > inline.c:186: warning: pointer targets in passing argument 10 > of > > > 'libnet_build_tcp' differ in signedness > > > inline.c:190: warning: pointer targets in passing argument 11 > of > > > 'libnet_build_ip' differ in signedness > > > inline.c:192: warning: pointer targets in passing argument 13 > of > > > 'libnet_build_icmp_unreach' differ in signedness > > > inline.c:201: warning: pointer targets in passing argument 11 > of > > > 'libnet_build_ip' differ in signedness > > > inline.c:204: warning: pointer targets in passing argument 10 > of > > > 'libnet_build_tcp' differ in signedness > > > inline.c:208: warning: pointer targets in passing argument 11 > of > > > 'libnet_build_ip' differ in signedness > > > inline.c:210: warning: pointer targets in passing argument 13 > of > > > 'libnet_build_icmp_unreach' differ in signedness > > > inline.c: In function 'IpqLoop': > > > inline.c:282: warning: implicit declaration of function > > 'sig_check' > > > inline.c: In function 'RejectSocket': > > > inline.c:454: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:461: warning: pointer targets in passing argument 2 > of > > > 'libnet_write_ip' differ in signedness > > > inline.c:494: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:502: warning: pointer targets in passing argument 2 > of > > > 'libnet_write_ip' differ in signedness > > > inline.c: In function 'RejectLayer2': > > > inline.c:594: error: dereferencing pointer to incomplete type > > > inline.c:629: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:635: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:642: warning: pointer targets in passing argument 6 > of > > > 'libnet_build_ethernet' differ in signedness > > > inline.c:649: warning: pointer targets in passing argument 3 > of > > > 'libnet_write_link_layer' differ in signedness > > > inline.c:683: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:689: warning: pointer targets in passing argument 1 > of > > > 'libnet_do_checksum' differ in signedness > > > inline.c:697: warning: pointer targets in passing argument 6 > of > > > 'libnet_build_ethernet' differ in signedness > > > inline.c:707: warning: pointer targets in passing argument 3 > of > > > 'libnet_write_link_layer' differ in signedness > > > make[3]: *** [inline.o] Error 1 > > > make[3]: Leaving directory > > `/home/davidt/snort/snort-2.8.0.1/src <http://2.8.0.1/src> > > > > > <http://2.8.0.1/src>' > > > > > make[2]: *** [all-recursive] Error 1 > > > make[2]: Leaving directory > > `/home/davidt/snort/snort-2.8.0.1/src <http://2.8.0.1/src> > > > > > <http://2.8.0.1/src>' > > > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/home/davidt/snort/snort-2.8.0.1 > > <http://2.8.0.1> > > > > > <http://2.8.0.1>' > > > > > > > > Note that I am on x86_64 architecture, if that makes a > > difference. For > > > this attempt, I used the following library versions to > fulfill > > dependencies: > > > 1) libpcap-0.9.8 compiled from source. > > > 2) pcre-7.6 compiled from source. > > > 3) libnet-1.0.2a compiled from source (I have seen the > > problems people > > > have had with the 1.1.2 version coming from RPMs). > > > 4) libdnet-1.11 compiled from source. > > > 5) mysql-5.0.22-2.2.el5_1.1 from RPM. > > > 6) libprelude-0.9.16.2 compiled from source. > > > 7) iptables-devel-1.3.5-1.2.1 from RPM > > > > > > Here's the configure directive I'm using: > > > ./configure --prefix=/usr/local/snort --enable-64bit-gcc > > > --enable-prelude --enable-inline > > > --with-libpcap-includes=/usr/local/snort/include > > > --with-libpcap-libraries=/usr/local/snort/lib > > > --with-libpcre-includes=/usr/local/snort/include > > > --with-libpcre-libraries=/usr/local/snort/lib > > > --with-libnet-includes=/usr/local/snort/include > > > --with-libnet-libraries=/usr/local/snort/lib > > > --with-dnet-includes=/usr/local/snort/include > > > --with-dnet-libraries=/usr/local/snort/lib > --with-mysql=/usr/bin > > > --with-mysql-includes=/usr/include > > --with-mysql-libraries=/usr/lib64 > > > --with-libprelude-prefix=/usr/local > > --with-libipq-includes=/usr/include > > > --with-libipq-libraries=/usr/lib64 > > > > > > I am happy to provide more info if necessary. > > > > > > As an aside, I'm also having problems with flexresp2 > > compilation, but > > > that's a separate issue. At this point I'd like to try inline > > first and > > > see how it works before falling back on flexresp2. > > > > > > TIA, > > > Dave > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Snort-users mailing list > > > Snort-users@lists.sourceforge.net > > > <mailto:Snort-users@lists.sourceforge.net> > > > > Go to this URL to change user options or unsubscribe: > > > https://lists.sourceforge.net/lists/...fo/snort-users > > > Snort-users list archive: > > > http://www.geocrawler.com/redir-sf.p...st=snort-users > > > > > > > > > > > > > > ------=_Part_2061_1470314.1203621546933 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline OK, so I set my libnet-headers.h back the way they were before Todd's previously suggested edit, then I tried option 1 below, and it compiled. I will give it a spin and post to the group after verifying that inline works properly. I anticipate that it will since it compiled properly.<div> <br class="webkit-block-placeholder"></div><div>Thanks, Todd!</div><div>Dave<br><br><div><span class="gmail_quote">On 2/21/08, <b class="gmail_sendername">Todd Wease</b> <<a href="mailto:twease@sourcefire.com">twease@sourcef ire.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"> Two other things to try:<br> <br> 1) Under your Snort source directory in src/inline.c, try adding the<br> following line just under #include <libnet.h>:<br> <br> #include <net/ethernet.h><br> <br> If this does not work, try:<br> <br> 2) In src/inline.h, just under #include "snort.h", try adding the following:<br> <br> struct ether_addr<br> {<br> u_char ether_addr_octet[6];<br> };<br> <br> and see if that works. Let us know.<br> <br> <br> Thanks,<br> Todd<br> <br> David Thibault wrote:<br> <br>> Nope, same (or similar) error:<br> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil<br> > -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins<br> > -I../src/dynamic-plugins -I../src/preprocessors<br> > -I../src/preprocessors/flow -I../src/preprocessors/portscan<br> > -I../src/preprocessors/flow/int-snort<br> > -I../src/preprocessors/HttpInspect/include<br> > -I../src/preprocessors/Stream5 -I../src/target-based<br> > -I/usr/local/snort/include -I/usr/local/snort/include<br> > -I/usr/local/snort/include -I/usr/local/snort/include<br> > -I/usr/local/snort/include -fno-strict-aliasing -g -O2 -Wall<br> > -DDYNAMIC_PLUGIN -DGIDS -DLIBNET_LIL_ENDIAN -fno-strict-aliasing -c inline.c<br> > inline.c: In function 'InitInlinePostConfig':<br> > inline.c:183: warning: pointer targets in passing argument 11 of<br> > 'libnet_build_ip' differ in signedness<br> > inline.c:186: warning: pointer targets in passing argument 10 of<br> > 'libnet_build_tcp' differ in signedness<br> > inline.c:190: warning: pointer targets in passing argument 11 of<br> > 'libnet_build_ip' differ in signedness<br> > inline.c:192: warning: pointer targets in passing argument 13 of<br> > 'libnet_build_icmp_unreach' differ in signedness<br> > inline.c:201: warning: pointer targets in passing argument 11 of<br> > 'libnet_build_ip' differ in signedness<br> > inline.c:204: warning: pointer targets in passing argument 10 of<br> > 'libnet_build_tcp' differ in signedness<br> > inline.c:208: warning: pointer targets in passing argument 11 of<br> > 'libnet_build_ip' differ in signedness<br> > inline.c:210: warning: pointer targets in passing argument 13 of<br> > 'libnet_build_icmp_unreach' differ in signedness<br> > inline.c: In function 'IpqLoop':<br> > inline.c:282: warning: implicit declaration of function 'sig_check'<br> > inline.c: In function 'RejectSocket':<br> > inline.c:454: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:461: warning: pointer targets in passing argument 2 of<br> > 'libnet_write_ip' differ in signedness<br> > inline.c:494: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:502: warning: pointer targets in passing argument 2 of<br> > 'libnet_write_ip' differ in signedness<br> > inline.c: In function 'RejectLayer2':<br> > inline.c:594: error: dereferencing pointer to incomplete type<br> > inline.c:629: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:635: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:642: warning: pointer targets in passing argument 6 of<br> > 'libnet_build_ethernet' differ in signedness<br> > inline.c:649: warning: pointer targets in passing argument 3 of<br> > 'libnet_write_link_layer' differ in signedness<br> > inline.c:683: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:689: warning: pointer targets in passing argument 1 of<br> > 'libnet_do_checksum' differ in signedness<br> > inline.c:697: warning: pointer targets in passing argument 6 of<br> > 'libnet_build_ethernet' differ in signedness<br> > inline.c:707: warning: pointer targets in passing argument 3 of<br> > 'libnet_write_link_layer' differ in signedness<br> > make[3]: *** [inline.o] Error 1<br> > make[3]: Leaving directory `/home/davidt/snort/snort-<a href="http://2.8.0.1/src">2.8.0.1/src</a><br> <br>> <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>>'<br> > make[2]: *** [all-recursive] Error 1<br> > make[2]: Leaving directory `/home/davidt/snort/snort-<a href="http://2.8.0.1/src">2.8.0.1/src</a><br> > <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>>'<br> > make[1]: *** [all-recursive] Error 1<br> > make[1]: Leaving directory `/home/davidt/snort/snort-<a href="http://2.8.0.1">2.8.0.1</a><br> > <<a href="http://2.8.0.1">http://2.8.0.1</a>>'<br> <br>> make: *** [all] Error 2<br> ><br> > This time I left off the other --enable-* statements and just went with<br> > the following configure command (still pointing to all my libs and incs<br> > just in case):<br> > ./configure --enable-inline<br> > --with-libpcap-includes=/usr/local/snort/include<br> > --with-libpcap-libraries=/usr/local/snort/lib<br> > --with-libpcre-includes=/usr/local/snort/include<br> > --with-libpcre-libraries=/usr/local/snort/lib<br> > --with-libnet-includes=/usr/local/snort/include<br> > --with-libnet-libraries=/usr/local/snort/lib<br> > --with-dnet-includes=/usr/local/snort/include<br> > --with-dnet-libraries=/usr/local/snort/lib<br> ><br> > Best,<br> > Dave<br> ><br> > On 2/21/08, *David Thibault* <<a href="mailto:dave@itstrategypartners.com">dave@its trategypartners.com</a><br> <br>> <mailto:<a href="mailto:dave@itstrategypartners.com">dave@its trategypartners.com</a>>> wrote:<br> ><br> > Thanks, Todd. I will try that and post the results.<br> ><br> ><br> > Best,<br> > Dave<br> ><br> ><br> > On 2/21/08, *Todd Wease* <<a href="mailto:twease@sourcefire.com">twease@sourcef ire.com</a><br> <br>> <mailto:<a href="mailto:twease@sourcefire.com">twease@sourcef ire.com</a>>> wrote:<br> ><br> > &nbs p; David,<br> ><br> > &nbs p; My only guess is that "struct ether_addr" is not getting defined<br> > &nbs p; on your<br> > &nbs p; system. Try editing libnet-headers.h (most likely in<br> > &nbs p; /usr/include/libnet). At or around line 391, remove the #if<br> > &nbs p; (!__GLIBC__) / #endif lines and see if that solves the<br> > &nbs p; problem. If not,<br> > &nbs p; please repost results.<br> ><br> > &nbs p; Thanks,<br> > &nbs p; Todd<br> ><br> ><br> > &nbs p; David Thibault wrote:<br> > &nbs p; > Hello all,<br> > &nbs p; ><br> > &nbs p; > I have been banging my head against the keyboard for 2 days<br> > &nbs p; now...=) I<br> ><br> > &nbs p; > am trying to install Snort <a href="http://2.8.0.1">2.8.0.1</a> <<a href="http://2.8.0.1">http://2.8.0.1</a>><br> > &nbs p; <<a href="http://2.8.0.1">http://2.8.0.1</a>> on Centos 5.1. I<br> ><br> > &nbs p; > have tried using RPMs for the library and include<br> > &nbs p; dependencies, and<br> > &nbs p; > tried with compiling everything from source. Every time I<br> > &nbs p; > --enable-inline I get the following errors:<br> > &nbs p; ><br> > &nbs p; > make[3]: Entering directory<br> > &nbs p; `/home/davidt/snort/snort-<a href="http://2.8.0.1/src">2.8.0.1/src</a> <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>><br> ><br> > &nbs p; > <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>>'<br> ><br> > &nbs p; > gcc -m64 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src<br> > &nbs p; -I../src/sfutil<br> > &nbs p; > -I/usr/include/pcap -I../src/output-plugins<br> > &nbs p; -I../src/detection-plugins<br> > &nbs p; > -I../src/dynamic-plugins -I../src/preprocessors<br> > &nbs p; > -I../src/preprocessors/flow -I../src/preprocessors/portscan<br> > &nbs p; > -I../src/preprocessors/flow/int-snort<br> > &nbs p; > -I../src/preprocessors/HttpInspect/include<br> > &nbs p; > -I../src/preprocessors/Stream5 -I../src/target-based<br> > &nbs p; > -I/usr/local/snort/include -I/usr/local/snort/include<br> > &nbs p; > -I/usr/local/snort/include -I/usr/local/snort/include<br> > &nbs p; > -I/usr/include/mysql -DENABLE_MYSQL -I/usr/local/snort/include<br> > &nbs p; > -fno-strict-aliasing -O0 -g -Wall -pthread -I/usr/local/include<br> > &nbs p; > -DDYNAMIC_PLUGIN -DGIDS -DLIBNET_LIL_ENDIAN<br> > &nbs p; -fno-strict-aliasing -c inline.c<br> > &nbs p; > inline.c: In function 'InitInlinePostConfig':<br> > &nbs p; > inline.c:183: warning: pointer targets in passing argument 11 of<br> > &nbs p; > 'libnet_build_ip' differ in signedness<br> > &nbs p; > inline.c:186: warning: pointer targets in passing argument 10 of<br> > &nbs p; > 'libnet_build_tcp' differ in signedness<br> > &nbs p; > inline.c:190: warning: pointer targets in passing argument 11 of<br> > &nbs p; > 'libnet_build_ip' differ in signedness<br> > &nbs p; > inline.c:192: warning: pointer targets in passing argument 13 of<br> > &nbs p; > 'libnet_build_icmp_unreach' differ in signedness<br> > &nbs p; > inline.c:201: warning: pointer targets in passing argument 11 of<br> > &nbs p; > 'libnet_build_ip' differ in signedness<br> > &nbs p; > inline.c:204: warning: pointer targets in passing argument 10 of<br> > &nbs p; > 'libnet_build_tcp' differ in signedness<br> > &nbs p; > inline.c:208: warning: pointer targets in passing argument 11 of<br> > &nbs p; > 'libnet_build_ip' differ in signedness<br> > &nbs p; > inline.c:210: warning: pointer targets in passing argument 13 of<br> > &nbs p; > 'libnet_build_icmp_unreach' differ in signedness<br> > &nbs p; > inline.c: In function 'IpqLoop':<br> > &nbs p; > inline.c:282: warning: implicit declaration of function<br> > &nbs p; 'sig_check'<br> > &nbs p; > inline.c: In function 'RejectSocket':<br> > &nbs p; > inline.c:454: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:461: warning: pointer targets in passing argument 2 of<br> > &nbs p; > 'libnet_write_ip' differ in signedness<br> > &nbs p; > inline.c:494: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:502: warning: pointer targets in passing argument 2 of<br> > &nbs p; > 'libnet_write_ip' differ in signedness<br> > &nbs p; > inline.c: In function 'RejectLayer2':<br> > &nbs p; > inline.c:594: error: dereferencing pointer to incomplete type<br> > &nbs p; > inline.c:629: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:635: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:642: warning: pointer targets in passing argument 6 of<br> > &nbs p; > 'libnet_build_ethernet' differ in signedness<br> > &nbs p; > inline.c:649: warning: pointer targets in passing argument 3 of<br> > &nbs p; > 'libnet_write_link_layer' differ in signedness<br> > &nbs p; > inline.c:683: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:689: warning: pointer targets in passing argument 1 of<br> > &nbs p; > 'libnet_do_checksum' differ in signedness<br> > &nbs p; > inline.c:697: warning: pointer targets in passing argument 6 of<br> > &nbs p; > 'libnet_build_ethernet' differ in signedness<br> > &nbs p; > inline.c:707: warning: pointer targets in passing argument 3 of<br> > &nbs p; > 'libnet_write_link_layer' differ in signedness<br> > &nbs p; > make[3]: *** [inline.o] Error 1<br> > &nbs p; > make[3]: Leaving directory<br> > &nbs p; `/home/davidt/snort/snort-<a href="http://2.8.0.1/src">2.8.0.1/src</a> <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>><br> ><br> > &nbs p; > <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>>'<br> ><br> > &nbs p; > make[2]: *** [all-recursive] Error 1<br> > &nbs p; > make[2]: Leaving directory<br> > &nbs p; `/home/davidt/snort/snort-<a href="http://2.8.0.1/src">2.8.0.1/src</a> <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>><br> ><br> > &nbs p; > <<a href="http://2.8.0.1/src">http://2.8.0.1/src</a>>'<br> ><br> > &nbs p; > make[1]: *** [all-recursive] Error 1<br> > &nbs p; > make[1]: Leaving directory `/home/davidt/snort/snort-<a href="http://2.8.0.1">2.8.0.1</a><br> > &nbs p; <<a href="http://2.8.0.1">http://2.8.0.1</a>><br> ><br> > &nbs p; > <<a href="http://2.8.0.1">http://2.8.0.1</a>>'<br> ><br> > &nbs p; ><br> > &nbs p; > Note that I am on x86_64 architecture, if that makes a<br> > &nbs p; difference. For<br> > &nbs p; > this attempt, I used the following library versions to fulfill<br> > &nbs p; dependencies:<br> > &nbs p; > 1) libpcap-0.9.8 compiled from source.<br> > &nbs p; > 2) pcre-7.6 compiled from source.<br> > &nbs p; > 3) libnet-1.0.2a compiled from source (I have seen the<br> > &nbs p; problems people<br> > &nbs p; > have had with the 1.1.2 version coming from RPMs).<br> > &nbs p; > 4) libdnet-1.11 compiled from source.<br> > &nbs p; > 5) mysql-5.0.22-2.2.el5_1.1 from RPM.<br> > &nbs p; > 6) libprelude-0.9.16.2 compiled from source.<br> > &nbs p; > 7) iptables-devel-1.3.5-1.2.1 from RPM<br> > &nbs p; ><br> > &nbs p; > Here's the configure directive I'm using:<br> > &nbs p; > ./configure --prefix=/usr/local/snort --enable-64bit-gcc<br> > &nbs p; > --enable-prelude --enable-inline<br> > &nbs p; > --with-libpcap-includes=/usr/local/snort/include<br> > &nbs p; > --with-libpcap-libraries=/usr/local/snort/lib<br> > &nbs p; > --with-libpcre-includes=/usr/local/snort/include<br> > &nbs p; > --with-libpcre-libraries=/usr/local/snort/lib<br> > &nbs p; > --with-libnet-includes=/usr/local/snort/include<br> > &nbs p; > --with-libnet-libraries=/usr/local/snort/lib<br> > &nbs p; > --with-dnet-includes=/usr/local/snort/include<br> > &nbs p; > --with-dnet-libraries=/usr/local/snort/lib --with-mysql=/usr/bin<br> > &nbs p; > --with-mysql-includes=/usr/include<br> > &nbs p; --with-mysql-libraries=/usr/lib64<br> > &nbs p; > --with-libprelude-prefix=/usr/local<br> > &nbs p; --with-libipq-includes=/usr/include<br> > &nbs p; > --with-libipq-libraries=/usr/lib64<br> > &nbs p; ><br> > &nbs p; > I am happy to provide more info if necessary.<br> > &nbs p; ><br> > &nbs p; > As an aside, I'm also having problems with flexresp2<br> > &nbs p; compilation, but<br> > &nbs p; > that's a separate issue. At this point I'd like to try inline<br> > &nbs p; first and<br> > &nbs p; > see how it works before falling back on flexresp2.<br> > &nbs p; ><br> > &nbs p; > TIA,<br> > &nbs p; > Dave<br> > &nbs p; ><br> > &nbs p; ><br> ><br> > &nbs p; ><br> > &nbs p; ------------------------------------------------------------------------<br> > &nbs p; ><br> > &nbs p; ><br> > &nbs p; -------------------------------------------------------------------------<br> > &nbs p; > This SF.net email is sponsored by: Microsoft<br> > &nbs p; > Defy all challenges. Microsoft(R) Visual Studio 2008.<br> > &nbs p; > <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br> > &nbs p; ><br> > &nbs p; ><br> > &nbs p; ><br> > &nbs p; ------------------------------------------------------------------------<br> > &nbs p; ><br> > &nbs p; > __________________________________ _____________<br> > &nbs p; > Snort-users mailing list<br> > &nbs p; > <a href="mailto:Snort-users@lists.sourceforge.net">Snort-users@lists.sourceforge.net</a><br> <br>> <mailto:<a href="mailto:Snort-users@lists.sourceforge.net">Snort-users@lists.sourceforge.net</a>><br> <br>> > Go to this URL to change user options or unsubscribe:<br> > &nbs p; > <a href="https://lists.sourceforge.net/lists/listinfo/snort-users">https://lists.sourceforge.net/lists/listinfo/snort-users</a><br> > &nbs p; > Snort-users list archive:<br> > &nbs p; > <a href="http://www.geocrawler.com/redir-sf.php3?list=snort-users">http://www.geocrawler.com/redir-sf.php3?list=snort-users</a><br> ><br> ><br> ><br> ><br> ><br> ><br> <br> </blockquote></div><br> </div> ------=_Part_2061_1470314.1203621546933-- --===============0341756366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0341756366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Snort-users mailing list Snort-users@lists.sourceforge.net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/...fo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.p...st=snort-users --===============0341756366==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|