[Snort-users] Cannot compile Flex Response on Linux

Martin Roesch roesch at ...421...
Sun Mar 11 23:11:47 EST 2001


Looks like you've got a bad install of libnet (esp. the header files). 
Try making sure gcc can find libnet.h and try again.

     -Marty

Oscar Rau wrote:
> 
> Ok, this how far I got, after I found the Linux version of libnet.
> I am finding the problem in "sp_respond.c", before and after upgrading the
> libnet library.
> 
> ------------------------------------------------
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap -I/usr/local/include  -g -O2 -Wall -DENABLE_RESPONSE -D_BSD_SOURCE - __BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN  -c sp_respond.c
> sp_respond.c: In function `RespondInit':
> sp_respond.c:73: warning: implicit declaration of function `libnet_open_raw_sock'
> sp_respond.c: In function `Respond':
> sp_respond.c:181: `ICMP_UNREACH_NET' undeclared (first use in this function)
> sp_respond.c:181: (Each undeclared identifier is reported only once
> sp_respond.c:181: for each function it appears in.)
> sp_respond.c:185: `ICMP_UNREACH_HOST' undeclared (first use in this function)
> sp_respond.c:189: `ICMP_UNREACH_PORT' undeclared (first use in this function)
> sp_respond.c: In function `SendICMP_UNREACH':
> sp_respond.c:207: `IP_H' undeclared (first use in this function)
> sp_respond.c:207: `ICMP_UNREACH_H' undeclared (first use in this function)
> sp_respond.c:209: warning: implicit declaration of function `libnet_init_packet'
> sp_respond.c:211: warning: implicit declaration of function `libnet_error'
> sp_respond.c:211: `LIBNET_ERR_CRITICAL' undeclared (first use in this function)
> sp_respond.c:216: warning: implicit declaration of function `libnet_build_ip'
> sp_respond.c:217: warning: implicit declaration of function `libnet_get_prand'
> sp_respond.c:217: `PRu16' undeclared (first use in this function)
> sp_respond.c:221: warning: implicit declaration of function `libnet_build_icmp_unreach'
> sp_respond.c:221: `ICMP_UNREACH' undeclared (first use in this function)
> sp_respond.c:228: warning: implicit declaration of function `libnet_do_checksum'
> sp_respond.c:230: warning: implicit declaration of function `libnet_write_ip'
> sp_respond.c:199: warning: `sz' might be used uninitialized in this function
> sp_respond.c: In function `SendTCPRST':
> sp_respond.c:242: `IP_H' undeclared (first use in this function)
> sp_respond.c:242: `TCP_H' undeclared (first use in this function)
> sp_respond.c:253: `PRu16' undeclared (first use in this function)
> sp_respond.c:257: warning: implicit declaration of function `libnet_build_tcp'
> sp_respond.c:264: `LIBNET_ERR_CRITICAL' undeclared (first use in this function)
> sp_respond.c:267: warning: implicit declaration of function `libnet_destroy_packet'
> make: *** [sp_respond.o] Error 1
> ------------------------------------------------
> 
> --
> 
> Oscar Rau
> osca003 at ...261...
> 
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> Go to this URL to change user options or unsubscribe:
> http://lists.sourceforge.net/lists/listinfo/snort-users

--
Martin Roesch
roesch at ...421...
http://www.snort.org




More information about the Snort-users mailing list