[syslog-ng] syslog-ng and OS library path?

Matt Zagrabelny mzagrabe at d.umn.edu
Fri Jan 24 21:56:05 CET 2014


Hello syslog-ng users!

I might be getting a little out of the scope of syslog-ng usage here,
but I thought I'd start here and work my way elsewhere.

I've got a Debian unstable workstation that I do some syslog-ng
testing on. I recently started using the sql destination driver and am
hitting an issue on my unstable workstation, but not on a Debian
"old-stable" squeeze system.

# syslog-ng -F -e
Log pattern database reloaded;
file='/var/lib/syslog-ng/patterndb.xml', version='3',
pub_date='2013-06-27'
Unable to initialize database access (DBI); rc='-1', error='No such
file or directory (2)'
Error initializing message pipeline;

Which I run under strace and get:

openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/dbd",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)

The location looks okay for a Debian multiarch system, but according
to dpkg the library isn't under the multiarch library path:

$ dpkg -L libdbd-pgsql | grep x86_64
$ dpkg -L libdbd-pgsql | grep '^/usr/lib'
/usr/lib
/usr/lib/dbd
/usr/lib/dbd/libdbdpgsql.la
/usr/lib/dbd/libdbdpgsql.so

I am under the impression that /usr/lib is still searched by the
system loader. Why is syslog-ng not able to find the library file.

What am I missing?

Thanks for any suggestions or hints.

-mz


More information about the syslog-ng mailing list