[syslog-ng]ld: cannot find -levtlog

Philipp Snizek syslog-ng@lists.balabit.hu
Fri, 1 Apr 2005 14:35:12 +0200


=20
> > gcc  -g -O2 -Wall -g   -o syslog-ng  main.o misc.o utils.o=20
> messages.o
> > gsockaddr.o syslog-names.o macros.o logmsg.o cfg.o=20
> logpipe.o driver.o=20
> > sgroup.o dgroup.o center.o filter.o logsource.o logreader.o=20
> > logwriter.o affile.o afunix.o afinet.o afsocket.o=20
> afstreams.o afuser.o=20
> > afprog.o afinter.o cfg-lex.o cfg-grammar.o fdwrite.o fdread.o=20
> > memtrace.o templates.o children.o  -lnsl  -Wl,-static -lfl
> > -L/usr/local/lib -lglib-2.0   -levtlog   -Wl,-call_shared
> >=20
>
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware
> > -linux/bin/ld: cannot find -levtlog
> > collect2: ld returned 1 exit status
>=20
>=20
> hmm. for some reason eventlog did not install a static=20
> library which it should. my version certainly installs a=20
> static version, and it is dubbed 0.2.3, upgrading might solve=20
> your problem.

I just have tried 0.2.3. I'm getting this when running 'make' in the
syslog-ng src dir.=20

gcc  -g -O2 -Wall -g   -o syslog-ng  main.o misc.o utils.o messages.o
gsockaddr.o syslog-names.o macros.o logmsg.o cfg.o logpipe.o driver.o
sgroup.o dgroup.o center.o filter.o logsource.o logreader.o
logwriter.o affile.o afunix.o afinet.o afsocket.o afstreams.o afuser.o
afprog.o afinter.o cfg-lex.o cfg-grammar.o fdwrite.o fdread.o
memtrace.o templates.o children.o  -lnsl  -Wl,-static -lfl
-L/usr/local/lib -lglib-2.0   -L/usr/local/lib -levtlog
-Wl,-call_shared
afinter.o(.text+0x16): In function `afinter_source_prepare':
/root/syslog-ng-1.9.3/src/afinter.c:35: undefined reference to
`g_queue_get_length'
afinter.o(.text+0x3e): In function `afinter_source_check':
/root/syslog-ng-1.9.3/src/afinter.c:41: undefined reference to
`g_queue_get_length'
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory `/root/syslog-ng-1.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/syslog-ng-1.9.3'
make: *** [all] Error 2
=20
> ps: be sure to use the latest snapshot as 1.9.3 is known to=20
> be broken in macro expansion

I'm using the latest snapshot.=20

Thank you
Philipp