[syslog-ng] Make Error messages

Balazs Scheidler bazsi at balabit.hu
Tue Feb 28 19:52:22 CET 2006


On Mon, 2006-02-27 at 16:08 -0500, Stuart Boyle wrote:
> Im getting the following errors when I run make, ./configure runs
> fine, no errors.
> 
> I have bison and flex installed.
> 
> cyblops2a:/usr/local/syslog-ng-1.9.8 # make 
> make  all-recursive 
> make[1]: Entering directory `/usr/local/syslog-ng-1.9.8' 
> Making all in src 
> make[2]: Entering directory `/usr/local/syslog-ng-1.9.8/src' 
> gcc  -g -O2 -Wall -g   -o syslog-ng  main.o libsyslog-ng.a -lnsl
> -Wl,-Bstatic -lfl -L/usr/local/lib -lglib-2.0   -L/usr/local/lib
> -levtlog   -Wl,-Bdynamic
> 
> libsyslog-ng.a(cfg.o)(.text+0x5d6): In function `cfg_new': 
> /usr/local/syslog-ng-1.9.8/src/cfg.c:247: undefined reference to
> `lex_init' 
> libsyslog-ng.a(cfg-grammar.o)(.text+0x17): In function `yyerror': 
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y:829:
> undefined reference to `linenum' 
> libsyslog-ng.a(cfg-grammar.o)(.text+0x18ea): In function `yyparse': 
> /home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.c:1689:
> undefined reference to `yylex' 
> collect2: ld returned 1 exit status 

Now as I look at it again, it is not necessarily the flex version that
is not correct, syslog-ng ships a generated cfg-lex.c file, and
"linenum" variable is not something that -lfl exports but it is defined
by cfg-lex.l (which is used to generate cfg-lex.c), as it seems you
might have regenerated cfg-lex.c for some reason but it might be empty?

Please try to include the make output that generated cfg-lex.c and the
contents of your cfg-lex.c is also interesting.

-- 
Bazsi



More information about the syslog-ng mailing list