[syslog-ng]ld: cannot find -levtlog

Balazs Scheidler syslog-ng@lists.balabit.hu
Fri, 01 Apr 2005 14:28:04 +0200


On Fri, 2005-04-01 at 09:56 +0200, Philipp Snizek wrote:
>  When compiling syslog-1.9.3 I get "ld: cannot find -levtlog"
> 
> If evtlog means the eventlog libraries from eventlog-0.2.2, they're
> located in /usr/local/lib (that's what the installation rouine sais).
> /usr/local/lib is in /etc/ld.so.conf and I ran ldconfig. I could
> install eventlog-0.2.2 without problems.
> 
> The exact error message:
> 
> 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   -levtlog   -Wl,-call_shared
> /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware
> -linux/bin/ld: cannot find -levtlog
> collect2: ld returned 1 exit status


hmm. for some reason eventlog did not install a static library which it
should. my version certainly installs a static version, and it is dubbed
0.2.3, upgrading might solve your problem.

ps: be sure to use the latest snapshot as 1.9.3 is known to be broken in
macro expansion

-- 
Bazsi