[syslog-ng]link error

Wim-Jan Hilgenbos wimjan@xs4all.nl
Tue, 6 Nov 2001 23:07:23 +0100


On Tue, Nov 06, 2001 at 06:31:34PM +0100, Holger.Woehle@arcor.net wrote:
> Hello,
> i want to compile syslog-ng under linux kernel 2.4.13 glibc 2.2.4 .
> 
> After ./configure, i get following error running make:
> 
> make[3]: Entering directory `/usr/src/syslog-ng-1.4.14/src'
> gcc  -O2 -Wall -I/usr/include/libol -D_GNU_SOURCE  -o syslog-ng  main.o
> sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o
> cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o
> afprogram.o utils.o syslog-names.o  /usr/lib/libol.a -lnsl
> cfg-lex.o: In function `yylex':
> cfg-lex.o(.text+0x4ae): undefined reference to `yywrap'
> cfg-lex.o: In function `input':
> cfg-lex.o(.text+0xa28): undefined reference to `yywrap'
> collect2: ld returned 1 exit status
> make[3]: *** [syslog-ng] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive-am] Error 2
> make: *** [all-recursive] Error 1
> 
> anonybody a idea where the bug sits ?
flex comes with a library. add 
	-lfl
to the library line in the makefile

Wim-Jan
> 
> with regards
> cu
> Holgi
> 
> 
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng