[Snort-users] Compile under Linux kernel 2.4.3

Eric Van den Bossche evdbossche at ...2292...
Mon Jun 18 07:48:50 EDT 2001


Thanks a lot. It did help.

In fact I reinstalled flex 2.5.4 and bison 1.28, then
again libpcap 0.4. After this, the installation of snort went fine.

Effectivelly, the former flex and bison installation took place after
libpcap was installed.


-----Original Message-----
From: Fyodor [mailto:fygrave at ...121...]
Sent: Friday, June 15, 2001 16:34
To: Eric Van den Bossche
Cc: snort-users at lists.sourceforge.net
Subject: Re: [Snort-users] Compile under Linux kernel 2.4.3


On Fri, Jun 15, 2001 at 03:23:19PM -0000, Eric Van den Bossche wrote:
> I've compiled and installed without any problem Snort 1.7 under
> Linux Suse 7.0 with kernel 2.2.16.
> 
> But when I want to install it under Linux suse 7.1 with kernel
> 2.4.3, I get the following error during the "make" :
> 
> --------------------------------------------------------------------
> /usr/local/lib/libpcap.a(gencode.o): In function `pcap_compile':
> gencode.o(.text+0x255): undefined reference to `lex_init'
> /usr/local/lib/libpcap.a(grammar.o): In function `yyparse':
> grammar.o(.text+0x95): undefined reference to `yylex'
> grammar.o(.text+0xa5b): undefined reference to `yylex'
> collect2: ld returned 1 exit status
> make: *** [snort] Error 1
> --------------------------------------------------------------------
> 
> I have already installed libpcap-0.4 and flex-2.5.4.
> 
> Do I still miss somethingelse ? 
> Any idea ?

You didn't seem to have lex/flex installed at the time when libpcap
library was built. Very likely you will have to do so and then rebuild
libpcap again. 




More information about the Snort-users mailing list