[Snort-users] Trouble compiling Snort-2.1.0: snprintf.c

Tomasz Piotr Palarz tpalar1 at ...6828...
Sat Feb 14 14:10:01 EST 2004

Hello all,

I'm having some trouble compiling snort 2.1.0 . I'm trying to set up a
Honeynet. My honeywall is running Red Hat 7.3. I've updated iptables to
1.2.9, patched the kernel and recompiled. I patched Snort 2.1.0 with the
snort_inline-2.1.0a patch. I'm trying to get this to work with mysql and

I run ./configure --enable-inline=yes --with-mysql=/usr/local/mysql
--with-libnet-libraries=/usr/lib --with-lipipq-includes=/usr/local/include

I have Libnet 1.0.2a and whatever version of libipq came with iptables

When I run make, it compiles a good deal of the way, but then I get an
error about snprintf. It looks like this:

make  all-recursive
make[1]: Entering directory `/root/snort-2.1.0'
Making all in src

... ... ...

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/preprocessors -I../src/preprocessors/flow
-I../src/preprocessors/portscan  -I../src/preprocessors/flow/int-snort
-I../src/preprocessors/HttpInspect/include  -I/usr/include/pcre
-I/usr/local/mysql/include -DENABLE_MYSQL -I/usr/local/include
-I/usr/include  -g -O2 -Wall -DGIDS -D_BSD_SOURCE -D__BSD_SOURCE
`test -f snprintf.c || echo './'`snprintf.c
snprintf.c: In function `sm_dopr' :
snprintf.c:153: conflicting types for `sys_errlist'
/usr/include/stdio.h:554: previous declaration of `sys_errlist'
make[3]: *** [snprintf.o] Error 1
make[3]: Leaving directory `/root/snort-2.1.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/snort-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/snort-2.1.0'
make: *** [all] Error 2
[root at ...11211... snort-2.1.0]#

I saw in the archives about a month ago someone was having the same issue
with snort-1.9.0 on FreeBSD, but I didn't see a solution. Any help with
this would be greatly appreciated. Thanks in advance.

Tomek Piotr Palarz
Computer Science Undergraduate
University of Illinois at Chicago

More information about the Snort-users mailing list