[syslog-ng] Can't compile 2.0.8 on Solaris 10

Ralf Weber syslog-ng at fl1ger.de
Tue Mar 11 13:42:12 CET 2008


I am having problems compiling syslog-ng under Solaris 10 both sparc  
and intel. The error is as follows:

/usr/sfw/bin/gcc  -g -O2 -Wall   -o loggen  loggen.o  -lpthread - 
lresolv -lnsl -lrt -lsocket -ldoor  -lfl -lglib-2.0   -L/opt/sfw/lib - 
Undefined                       first referenced
  symbol                             in file
yylex                               /usr/sfw/lib/gcc/sparc-sun- 
ld: fatal: Symbol referencing errors. No output written to loggen

Now I did search the archive and there was one message of relevance:


but the problem there was an empty cfg-lex.c which isn't the case for  

rw at bh2:~/source/syslog-ng-2.0.8$ ls -l src/cfg-lex.*
-rw-r--r--   1 rw       ipeng      55895 Jan 31 12:46 src/cfg-lex.c
-rw-r--r--   1 rw       ipeng       8979 Dec 18 16:25 src/cfg-lex.l
-rw-rw-r--   1 rw       ipeng      51404 Mar 11 13:36 src/cfg-lex.o

There is however one thing strange in an earlier stage of the compile  
which is:

if /usr/sfw/bin/gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/ 
glib-2.0 -I/usr/lib/glib-2.0/include   -I/opt/sfw/include/eventlog    - 
MT cfg-grammar.o -MD -MP -MF ".deps/cfg-grammar.Tpo" \
   -c -o cfg-grammar.o `test -f 'cfg-grammar.c' || echo './'`cfg- 
grammar.c; \
then mv -f ".deps/cfg-grammar.Tpo" ".deps/cfg-grammar.Po"; \
else rm -f ".deps/cfg-grammar.Tpo"; exit 1; \
grammar.y: In function `yyparse':
grammar.y:891: warning: implicit declaration of function `strdup'

However including <string.h> where this is in also didn't help.

Any help on getting this compiled would be appreciated.

So long

More information about the syslog-ng mailing list