[syslog-ng] Missing libraries when trying to compile 3.0

Balazs Scheidler bazsi at balabit.hu
Sun Feb 15 09:29:31 CET 2009


On Wed, 2009-02-11 at 21:26 -0500, Tim Boyer wrote:
> I'm trying to get 3.0 going - I'm running 2.2.6 currently. configure says
> I'm missing some libraries:
> 
> ./configure
> ...
> checking for static OpenSSL libraries... no
> configure: error: static OpenSSL libraries not found (libssl.a and
> libcrypto.a), either link OpenSSL statically using the
> --enable-dynamic-linking, or install a static OpenSSL
> [root at princeton syslog-ng-3.0.1]# 
> 
> ...but the libraries are there:
> 
> [root at princeton syslog-ng-3.0.1]# locate libssl.a libcrypto.a    
> /usr/lib/libcrypto.a
> /usr/lib/libssl.a
> /usr/lib64/libcrypto.a
> /usr/lib64/libssl.a

openssl has further external dependencies which must be available in
case you want to link to it statically.

Your config.log should contain more information. Without seeing that, I
guess that you are lacking the static version of libz.a the gzip
compression library.

I've added a patch to clarify the error message.

> 
> However, I used the --enable-dynamic-linking for the configure.  It
> configured and compiled just fine.
> 
> When I went to run, I got this:
> 
> [root at princeton syslog-ng-3.0.1]# service syslog-ng start
> Starting system logger: /usr/local/sbin/syslog-ng: error while loading
> shared libraries: libevtlog.so.0: cannot open shared object file: No such
> file or directory
>                                                            [FAILED]
> 
> even though _those_ libraries are there:
> 
> [root at princeton syslog-ng-3.0.1]# ls -la /usr/local/lib/libevtlog.*
> -rw-r--r-- 1 root root 65048 Feb 11 11:50 /usr/local/lib/libevtlog.a
> -rwxr-xr-x 1 root root   822 Feb 11 11:50 /usr/local/lib/libevtlog.la
> lrwxrwxrwx 1 root root    18 Feb 11 11:50 /usr/local/lib/libevtlog.so ->
> libevtlog.so.0.0.0
> lrwxrwxrwx 1 root root    18 Feb 11 11:50 /usr/local/lib/libevtlog.so.0 ->
> libevtlog.so.0.0.0
> -rwxr-xr-x 1 root root 45369 Feb 11 11:50 /usr/local/lib/libevtlog.so.0.0.0
> 
> I'm not sure where to go from here - pointers in the right direction greatly
> appreciated.
> 

Just as Liam has already answered, LD_LIBRARY_PATH or /etc/ld.so.conf
should be of help here.

earlier /usr/local/lib was listed in the dynamic library search path by
default, recent distributions seem to have removed that.

-- 
Bazsi




More information about the syslog-ng mailing list