[Snort-users] Error make snort with flexresp

Skip Carter skip at ...1552...
Fri Jan 4 14:38:02 EST 2002


> "SANTIAGO HOYOS RESTREPO" <santiago_hoyos at ...3594...> writes:
> 
> > Hi, when i make a snort-1.8.3, i show this problem, but when i fix this 
> > problems i show other problems, i need help please :
> 
> Try running aclocal and automake. Please include platform information
> when reporting errors.
> 
> > ./configure --with-mysql --enable-flexresp 
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap - 
> > I/usr/local/mysql/include/mysql -DENABLE_MYSQL - 
> > 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:49: redefinition of `uint8_t' 
> > /usr/include/sys/types.h:196: `uint8_t' previously declared 
> > here 
> > /usr/include/stdint.h:50: redefinition of `uint16_t' 
> > /usr/include/sys/types.h:197: `uint16_t' previously 
> > declared here 
> > /usr/include/stdint.h:52: redefinition of `uint32_t' 
> > /usr/include/sys/types.h:198: `uint32_t' previously 
> > declared here 
> > make[2]: *** [snort.o] Error 1 
> > make[2]: Leaving directory `/temp/snort-1.8.3' 
> > make[1]: *** [all-recursive] Error 1 
> > make[1]: Leaving directory `/temp/snort-1.8.3' 
> > make: *** [all-recursive-am] Error 2
 

  I looked into this and this is what I found out on Linux 2.2.x and
  2.4.x with libc 2.2.2.  It seems that the config script is incorrect
  in its determination of the existence of u_intXX_t and thinks they
  are not there, when they are (probably because these are created
  by a macro in sys/types.h instead of being created by a simple typedef line).
  As a result snort config.h has #defines for them.  The easy fix
  is to edit out the u_intXX_t defines around line 22 of config.h and
  also the ones at the end of that file.  Snort then compiles with no
  problems.





 
-- 
 Dr. Everett (Skip) Carter      Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.        INTERNET: skip at ...1552...
 1340 Munras Ave., Suite 314    WWW: http://www.taygeta.com
 Monterey, CA. 93940            















More information about the Snort-users mailing list