[Snort-users] snort-2.2.1-RC1 compile error

Ken Bergquist kbergquist at ...11196...
Wed Feb 11 14:54:07 EST 2004


I hope someone can shed some light on this. While making on OS X 10.1 
(Darwin) the following error occurs first in the output:

> Making all in int-snort
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. 
> -I../../../../src -I../../../../src/sfutil -I/sw/include 
> -I../../../../src/output-plugins -I../../../../src/detectc <snip>
> rm -f libintsnort.a
> ar cru libintsnort.a flow_packet.o
> ranlib libintsnort.a
> ranlib: warning for library: libintsnort.a the table of contents is 
> empty (no object file members in the library define global symbols)

this is followed some time later by

> Making all in user_interface
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. 
> -I../../../../src -I../../../../src/sfutil -I/sw/include 
> -I../../../../src/output-plugins -I../../../../src/detectc
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. 
> -I../../../../src -I../../../../src/sfutil -I/sw/include 
> -I../../../../src/output-plugins -I../../../../src/detectc
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. 
> -I../../../../src -I../../../../src/sfutil -I/sw/include 
> -I../../../../src/output-plugins -I../../../../src/detectc
> hi_ui_iis_unicode_map.c: In function `FindCodePage':
> hi_ui_iis_unicode_map.c:64: warning: implicit declaration of function 
> `strtok_r'
> hi_ui_iis_unicode_map.c:64: warning: assignment makes pointer from 
> integer without a cast
> hi_ui_iis_unicode_map.c: In function `MapCodePoints':
> hi_ui_iis_unicode_map.c:134: warning: assignment makes pointer from 
> integer without a cast
> hi_ui_iis_unicode_map.c:140: warning: assignment makes pointer from 
> integer without a cast
> hi_ui_iis_unicode_map.c:144: warning: assignment makes pointer from 
> integer without a cast

then

> ranlib libparser.a
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil 
> -I/sw/include -I../src/output-plugins -I../src/detection-plugins 
> -I../src/preprocessors -I../src/preprocessc
>
> <snip>
>
> snort.c: In function `InterfaceThread':
> snort.c:1596: warning: long unsigned int format, unsigned int arg (arg 
> 2)
> snort.c:1596: warning: long unsigned int format, unsigned int arg (arg 
> 3)

and

> gcc  -g -O2 -Wall  -L/sw/lib -L/usr/local/lib -lpcre 
> -L/usr/local/mysql//lib -o snort  codes.o debug.o decode.o log.o 
> mstring.o parser.o plugbase.o snort.o snprintf.o strt
> /usr/bin/ld: warning empty table of contents: 
> preprocessors/flow/int-snort/libintsnort.a (can't load from it)
> /usr/bin/ld: Undefined symbols:
> _strtok_r
> make[3]: *** [snort] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Thanks in advance for any assistance offered.
--
Ken Bergquist
Director Internet Systems
Walt Klein & Associates

advertising fueled by creative minds





More information about the Snort-users mailing list