[syslog-ng]ld: cannot find -levtlog

Philipp Snizek syslog-ng@lists.balabit.hu
Fri, 1 Apr 2005 10:22:52 +0200


=20

> When compiling syslog-1.9.3 I get "ld: cannot find -levtlog"
>=20
> If evtlog means the eventlog libraries from eventlog-0.2.2,=20
> they're located in /usr/local/lib (that's what the=20
> installation rouine sais).
> /usr/local/lib is in /etc/ld.so.conf and I ran ldconfig. I=20
> could install eventlog-0.2.2 without problems.
>=20
> The exact error message:
>=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=20
> driver.o sgroup.o dgroup.o center.o filter.o logsource.o=20
> logreader.o logwriter.o affile.o afunix.o afinet.o afsocket.o=20
> afstreams.o afuser.o afprog.o afinter.o cfg-lex.o=20
> cfg-grammar.o fdwrite.o fdread.o memtrace.o templates.o=20
> 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

in /usr/local/lib	I have:
-rwxr-xr-x  1 root root   807 2005-04-01 09:18 libevtlog.la*
lrwxrwxrwx  1 root root    18 2005-04-01 09:18 libevtlog.so ->
libevtlog.so.0.0.0*
lrwxrwxrwx  1 root root    18 2005-04-01 09:18 libevtlog.so.0 ->
libevtlog.so.0.0.0*
-rwxr-xr-x  1 root root 93600 2005-04-01 09:18 libevtlog.so.0.0.0*

When running ./configure in the syslog-ng source dir I get for evtlog
checking EVTLOG_CFLAGS... -I/usr/local/include/eventlog
checking EVTLOG_LIBS... -levtlog

the libs are in /usr/local/lib

is this the problem? If yes, how can I change this?=20

Thanks=20
PHilipp