[Snort-devel] flexible response [compile problem]

Nathan W. Labadie ab0781 at ...839...
Mon Oct 1 05:40:14 EDT 2001


This is on a linux box with Mandrake 8.0 and the latest cvs of snort. 
About two weeks ago I started getting errors when compiling snort. 
Libnet is installed and is in the standard path.

If I do not pass "--enable-flexresp", it will compile without any 
errors. However, when I do not pass "--enable-flexresp" I also see this 
(which is correct):

checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes

"--enable-flexresp" causes this (see below also):

checking for u_int8_t... no
checking for u_int16_t... no
checking for u_int32_t... no

[root at ...840... snort]# ./configure --prefix=/usr --bindir=/usr/sbin 
--sysconfdir=/etc/snort --enable-flexresp --with-mysql

--snip--
checking "for mysql"... yes
checking for compress in -lz... yes
checking "for odbc"... yes
checking "for postgresql"... yes
checking "for oracle"... no
checking "for openssl"... yes
checking "for libnet.h"... /usr/local/include
checking for u_int8_t... no
checking for u_int16_t... no
checking for u_int32_t... no
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
--snip---

[root at ...840... snort]# make
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap  
-I/usr/include/mysql 
-DENABLE_MYSQL -DENABLE_ODBC -I/usr/include/pgsql -DENABLE_POSTGRESQL 
-DENABLE_SSL -I/usr/include  -g -O2 -Wall -DENABLE_RESPONSE 
-D_BSD_SOURCE 
-D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN 
-c 
snort.c
In file included from /usr/include/netinet/in.h:23,
                 from snort.h:43,
                 from snort.c:45:
/usr/include/stdint.h:51: redefinition of `uint8_t'
/usr/include/sys/types.h:190: `uint8_t' previously declared here
/usr/include/stdint.h:52: redefinition of `uint16_t'
/usr/include/sys/types.h:191: `uint16_t' previously declared here
/usr/include/stdint.h:54: redefinition of `uint32_t'
/usr/include/sys/types.h:192: `uint32_t' previously declared here
make: *** [snort.o] Error 1

---snip---

Any ideas?

Thanks,
Nate

-- 
Nathan W. Labadie       | ab0781 at ...839...	
Sr. Security Specialist | 313/577.2126
Wayne State University  | 313/577.5626 fax
C&IT Security Office: http://security.wayne.edu





More information about the Snort-devel mailing list