[syslog-ng] load failures in afsocket and afsql

Matthew Hall mhall at mhcomputing.net
Tue Dec 14 03:12:10 CET 2010


I am getting the following on load:

Error opening plugin module; module='afsocket', error='/home/y/lib64/syslog-ng/libafsocket.so: undefined symbol: libnet_build_ipv4'
Error opening plugin module; module='afsql', error='/home/y/lib64/syslog-ng/libafsql.so: undefined symbol: dbi_result_free'
Error opening plugin module; module='afsocket', error='/home/y/lib64/syslog-ng/libafsocket.so: undefined symbol: libnet_build_ipv4'

The rpath looks OK:

megahall at logproxy2:~$ readelf -a /home/y/lib64/syslog-ng/libafsocket.so | fgrep -i rpath
 0x000000000000000f (RPATH)              Library rpath: [/home/y/lib64]
megahall at logproxy2:~$ readelf -a /home/y/lib64/syslog-ng/libafsql.so | fgrep -i rpath
 0x000000000000000f (RPATH)              Library rpath: [/home/y/lib64]
megahall at logproxy2:~$ 

megahall at logproxy2:~$ ldd /home/y/lib64/syslog-ng/libafs* | fgrep -i '(dbi|net)'
megahall at logproxy2:~$ 

The libraries are in a reasonable location:

/home/y/lib64/libdbi.so.1.0.0
/home/y/lib64/libnet.so.1.5.0
/home/y/lib64/dbd/libdbdsqlite3.so
/home/y/lib64/dbd/libdbdmysql.so
/home/y/lib64/libnet.so.1
/home/y/lib64/libdbi.so.1
/home/y/lib64/libdbi.so

Reading through the glib docs for glib modules, it seems like the .la 
files are maybe not containing the right library dependencies, or 
something like this. However adding the library directories using 
LD_LIBRARY_PATH as a temporary test does not help.

Because this step fails, it's not possible to use tcp, udp, or any of 
the other important drivers you need to collect logs.

I could really use some advice on this one!

Matthew.


More information about the syslog-ng mailing list