Snort mailing list archives
Re: Building problen in x86_64
From: Todd Wease <twease () sourcefire com>
Date: Sat, 10 Oct 2009 13:41:09 -0400
On 10/10/2009 01:20 PM, Luis Daniel Lucio Quiroz wrote:
Le samedi 10 octobre 2009 11:28:12, Todd Wease a écrit :On 10/10/2009 12:25 PM, Todd Wease wrote:On 10/10/2009 12:07 PM, Luis Daniel Lucio Quiroz wrote:Le samedi 10 octobre 2009 10:50:48, Todd Wease a écrit :On 10/10/2009 11:23 AM, Luis Daniel Lucio Quiroz wrote:gcc -DHAVE_CONFIG_H -I. -I../../../src -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/portscan - I../../../src/preprocessors/HttpInspect/include - I../../../src/preprocessors/Stream5 -I../../../src/target-based - DDYNAMIC_PLUGIN -DPREPROCESSOR_AND_DECODER_RULE_EVENTS -DPPM_MGR -DTIMESTATS - DPERF_PROFILING -DLINUX_SMP -DGIDS -DSNORT_RELOAD -I/usr/include/mysql - DENABLE_MYSQL -DENABLE_POSTGRESQL -DENABLE_RESPOND -DENABLE_RESPONSE2 - I/usr/include -fvisibility=hidden -DLIBNET_LIL_ENDIAN - I/usr/include/libprelude -fno-strict-aliasing -Wall -c ../../../src/inline.c ../../../src/inline.c: In function 'RejectLayer2': ../../../src/inline.c:591: error: dereferencing pointer to incomplete type make[3]: *** [inline.o] Error 1 make[3]: Leaving directory `/home/mandrake/rpm/BUILD/snort-2.8.5/building/bloat/src' make[2]: *** [all-recursive] Error 1 Hi snort,s Well i'm getting this error. make[2]: Leaving directory `/home/mandrake/rpm/BUILD/snort-2.8.5/building/bloat/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mandrake/rpm/BUILD/snort-2.8.5/building/bloat' make: *** [all] Error 2 error: Bad exit status from /home/mandrake/rpm/tmp/rpm-tmp.Onf7wM (%build) It seems that only occurs with gcc4.4.1 and x86_64. I've successfully compilled in x86-32bits machine.Can you print out thHAVE_NET_ETHERNET_He output of: $ libnet-config --defines It should include -DHAVE_NET_ETHERNET_Hlibnet-config --defines -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H - DLIBNET_LIL_ENDIANThose should be showing up on the compile line above - I only see -DLIBNET_LIL_ENDIAN. The problem is that Did you run libnet-config on the box you're compiling on? Are there multiple libnet-configs on the system?The problem is that<net/ethernet.h> is not being included in libnet.h because -DHAVE_NET_ETHERNET_H is not on the compile line.OK, I got it then I must include output of libnet-config --defines Thanx
No, this should be done automatically. Snort, when configuring, runs "libnet-config --defines" and adds the results to the compile line. The version of libnet you listed via rpm is not the correct version [dlucio@klodia ~]$ rpm -qa | grep net-devel lib64net-devel-1.1.4-1mdv2010.0 so the libnet-config you're referencing from the command line is most likely referring to this version. Can you make sure you don't have another libnet-config on the system, e.g. in /usr/local/bin. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Building problen in x86_64 Luis Daniel Lucio Quiroz (Oct 10)
- Re: Building problen in x86_64 Todd Wease (Oct 10)
- Re: Building problen in x86_64 Luis Daniel Lucio Quiroz (Oct 10)
- Re: Building problen in x86_64 Todd Wease (Oct 10)
- Re: Building problen in x86_64 Todd Wease (Oct 10)
- Re: Building problen in x86_64 Luis Daniel Lucio Quiroz (Oct 10)
- Re: Building problen in x86_64 Todd Wease (Oct 10)
- Re: Building problen in x86_64 Luis Daniel Lucio Quiroz (Oct 10)
- Re: Building problen in x86_64 Luis Daniel Lucio Quiroz (Oct 10)
- Re: Building problen in x86_64 Todd Wease (Oct 10)