[Snort-users] Snort Build issue

Sergio Caltagirone scaltagi at ...12056...
Thu Jul 8 12:17:05 EDT 2004

Hello, I'm building Snort 2.1.3 on a RH9 box.  Just finished installing
gcc, bison, flex, libpcap 0.8.3, and pcre 4.5.  However, after I
./configure snort, and I make it, I get an undefined reference to
'pcap_lex' in 'pcap_parse'. (See entire error)

Thanks for any help,

gcc  -g -O2 -Wall  -L/usr/local/lib -lpcre -o snort  codes.o debug.o
decode.o log.o mstring.o parser.o plugbase.o snort.o snprintf.o
strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o
detect.o signature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o
byte_extract.o sfthreshold.o packet_time.o event_wrapper.o event_queue.o
output-plugins/libspo.a detection-plugins/libspd.a
preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a
preprocessors/flow/libflow.a parser/libparser.a
preprocessors/HttpInspect/libhttp_inspect.a sfutil/libsfutil.a -lpcre
-lpcap -lm -lnsl
/usr/local/lib/libpcap.a(grammar.o)(.text+0xf61): In function
: undefined reference to `pcap_lex'
collect2: ld returned 1 exit status
make[3]: *** [snort] Error 1
make[3]: Leaving directory `/home/scaltagi/snort-2.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/scaltagi/snort-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scaltagi/snort-2.1.3'
make: *** [all] Error 2

More information about the Snort-users mailing list