[syslog-ng]compiling syslog-ng (latest version) on solaris 9 - error

Gabor Szabo [email protected]
Fri, 09 Jan 2004 15:01:55 +0100


Markus Reger wrote:
> 
> hello to everybody
> 
> Made several attempts to compile syslog-ng. Compilation of libol went fine. Whenever I "make" syslog-ng I encounter the error:
> 
> gcc  -g -O2 -Wall -I/usr/local/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 afremctrl.o  nscache.o utils.o syslog-names.o macros.o getopt.o getopt1.o -lpthread -lnsl -lsocket -ldoor -lresolv   /usr/local/lib/libol.a -lsocket -lnsl -lxnet
> Undefined                       first referenced
>  symbol                             in file
> yywrap                              cfg-lex.o
> ld: fatal: Symbol referencing errors. No output written to syslog-ng
> collect2: ld returned 1 exit status

This is the same problem on IRIX. You have to use the flex library like
this:
gcc ... -L(flex directory path) -lfl

Gabor