[syslog-ng]yywrap

Achim Gsell achim@cybercity.ch
Fri, 14 Feb 2003 08:55:04 +0100


On Friday 14 February 2003 08:21, EDL.Essed@belastingdienst.nl wrote:
> To compile syslog-ng on AIX I need to add "%option noyywrap" to cfg-lex.l,
> otherwise ld complains about "Undefined symbol: .yywrap".
>
> Is there something I'm missing, as this turns up everytime I try to build a
> new source distribution.
> I'm using gcc 2.9 and flex 2.5.4

"yywrap()" should be a function in the flex library "libfl.{a,so}". Check 
whether "LEXLIB" is set to "-lfl" in "src/Makefile" or not. Otherwise check 
the output of the configure script for the following lines:

checking for flex... flex
checking for yywrap in -lfl... yes

Achim