Thanks for the replies guys they have been very helpful! @Bazsi Here is the ldd /usr/local/lib/syslog-ng/libafsql.so libsyslog-ng.so.0 => /usr/local/lib/libsyslog-ng.so.0 (0xb7f3c000) libdbi.so.1 => /usr/local/lib/libdbi.so.1 (0xb7f30000) libpthread.so.0 => /lib/libpthread.so.0 (0xb7f0e000) libc.so.6 => /lib/libc.so.6 (0xb7db5000) librt.so.1 => /lib/librt.so.1 (0xb7dac000) libnsl.so.1 => /lib/libnsl.so.1 (0xb7d93000) libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0xb7d8f000) libdl.so.2 => /lib/libdl.so.2 (0xb7d8a000) libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0xb7d85000) libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xb7ce7000) libevtlog.so.0 => /usr/local/lib/libevtlog.so.0 (0xb7ce3000) libm.so.6 => /lib/libm.so.6 (0xb7cb9000) /lib/ld-linux.so.2 (0xb7fa1000) I have upgraded the libdbi to the latest, compiled from source and the message seems to have gone away. Now syslog-ng loads up fine but doesn't seem to be writing anything to the database! I will run strace and post up the results shortly, but in the meantime if there are any ideas on what could be happening I would love to hear. On 10 March 2011 20:59, Hendrik Visage <hvjunk@gmail.com> wrote:
On Wed, Mar 9, 2011 at 9:04 AM, Gergely Nagy <algernon@balabit.hu> wrote:
Eshan Bhide <ebhide@globalgossip.net> writes:
So far so good, but when I try to run syslog-ng it gives me an error:
syslog-ng Error opening plugin module; module='afsql',
error='/usr/local/lib/syslog-
ng/libafsql.so: undefined symbol: dbi_result_free' Error opening plugin module; module='afsql', error='/usr/local/lib/syslog- ng/libafsql.so: undefined symbol: dbi_result_free' ^^^^^^^^^^^^^^^
The problem lies here: while the module has been compiled, the DBI version is probably not fresh enough. I'd suggest compiling libdbi from CVS.
Perhaps not necessarily from CVS, but do make sure you also compiled the dbi-drivers.
I suspect there might be problems with the afsql not linking/loading libdbi (or it's mysql driver from dbi-drivers)
I'm a low level debugger, so running strace on syslog-ng and posting that would be interesting to confirm/deny my hypothesis.
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
------------------------------------------------- IMPORTANT NOTICE : The information in this email is confidential and may also be privileged. If you are not the intended recipient, any use or dissemination of the information and any disclosure or copying of this email is unauthorised and strictly prohibited. If you have received this email in error, please promptly inform us by reply email or telephone. You should also delete this email and destroy any hard copies produced.