[syslog-ng] smtp output is broken
Peter Czanik
czanik at balabit.hu
Wed May 2 09:49:20 CEST 2012
On 04/06/2012 10:36 AM, Peter Czanik wrote:
> On 04/03/2012 12:55 PM, Peter Czanik wrote:
>> Hello,
>>
>> I tried to compile syslog-ng 3.4 alpha git on FreeBSD 8.1 with smtp
>> support, but it does not start:
>>
>> fb81# /usr/local/etc/rc.d/syslog-ng start
>> Starting syslog_ng.
>> Error opening plugin module; module='afsmtp',
>> error='/usr/local/lib/syslog-ng/libafsmtp.so: Undefined symbol
>> "_smtp_message_str_cb"'
> It seems to me (based on objdump), that it's not linked to libesmtp at
> all. See afsql vs. afsmtp:
>
> fb81# objdump -x libafsql.so | grep NEEDED
> NEEDED libsyslog-ng-3.4.0alpha1.so
> NEEDED librt.so.1
> NEEDED libgmodule-2.0.so.0
> NEEDED libgthread-2.0.so.0
> NEEDED libglib-2.0.so.0
> NEEDED libintl.so.9
> NEEDED libiconv.so.3
> NEEDED libevtlog.so.0
> NEEDED libpcre.so.1
> NEEDED libnet.so.7
> NEEDED libdbi.so.1
> NEEDED libcrypto.so.7
> NEEDED libssl.so.7
> NEEDED libthr.so.3
> NEEDED libc.so.7
> fb81# objdump -x libafsmtp.so | grep NEEDED
> NEEDED libnet.so.7
> NEEDED libthr.so.3
> NEEDED libc.so.7
This problems seems to be still present in 3.4 alpha2 on FreeBSD.
And looking at Linux, the problem seems to be present also there, just
loading of syslog-ng does not fail as long as there are no smtp related
options in syslog-ng.conf:
# ldd /usr/lib/syslog-ng/libafsmtp.so
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb76dd000)
libc.so.6 => /lib/libc.so.6 (0xb7570000)
/lib/ld-linux.so.2 (0xb771c000)
If smtp is configured, syslog-ng gives no error messages, but does not
start.
Bye,
--
Peter Czanik (CzP)<czanik at balabit.hu>
BalaBit IT Security / syslog-ng upstream
http://czanik.blogs.balabit.com/
More information about the syslog-ng
mailing list