[syslog-ng] [Bug 188] New: Syslog-ng 3.3.5.90-20120810 problems: undefined symbol and ld.so library path

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Sat Aug 18 00:24:05 CEST 2012


https://bugzilla.balabit.com/show_bug.cgi?id=188

           Summary: Syslog-ng 3.3.5.90-20120810 problems: undefined symbol
                    and ld.so library path
           Product: syslog-ng
           Version: 3.3.x
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi at balabit.hu
        ReportedBy: jpo at di.uminho.pt
Type of the Report: ---
   Estimated Hours: 0.0


Linux distro:
Fedora 17 x86_64

Syslog-ng source tarball:
syslog-ng-3.3.5.90-20120810-v3.3.5-43-g19f6c.tar.gz


we have encountered a couple of problems when running syslog-ng-3.3.5.90-20120810 under Fedora 17 x86_64:

 1) ld.so library path
 2) undefined symbol: tls_context_setup_session


Steps to reproduce the problem:

 1) just run "/usr/sbin/syslog-ng --version"

----------
# /usr/sbin/syslog-ng --version
syslog-ng 3.3.5.90
Installer-Version: 3.3.5.90
Revision: 
Compile-Date: Aug 17 2012 22:09:52
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat,afsql
Error opening plugin module; module='afsocket', error='libsyslog-ng-crypto.so: cannot open shared object file: No such file or directory'
Error opening plugin module; module='afsocket-notls', error='//usr/lib64/syslog-ng/libafsocket-notls.so: undefined symbol: tls_context_setup_session'
Error opening plugin module; module='afsocket-tls', error='libsyslog-ng-crypto.so: cannot open shared object file: No such file or directory'
Available-Modules: dummy,afsql,tfjson,dbparser,csvparser,convertfuncs,afuser,basicfuncs,afmongodb,confgen,syslogformat,affile,afprog
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: on
----------


The library path problem can be solved by creating the file "/etc/ld.so.conf.d/syslog-ng.conf" containing
the syslog-ng module directory ( /usr/lib64/syslog-ng in this particular case ).

Running syslog-ng under strace without touching the ld.so library paths produces:
----------
# # strace -e trace=file /usr/sbin/syslog-ng --version
...
access("//usr/lib64/syslog-ng/libafsocket.so", F_OK) = 0
stat("//usr/lib64/syslog-ng/libafsocket.so", {st_mode=S_IFREG|0755, st_size=103560, ...}) = 0
open("//usr/lib64/syslog-ng/libafsocket.so", O_RDONLY|O_CLOEXEC) = 4
open("/lib64/tls/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/x86_64/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fff0f81fcb0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/usr/lib64/x86_64/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/x86_64", 0x7fff0f81fcb0) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libsyslog-ng-crypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64", {st_mode=S_IFDIR|0555, st_size=49152, ...}) = 0
Error opening plugin module; module='afsocket', error='libsyslog-ng-crypto.so: cannot open shared object file: No such file or directory'
...
-----------

Note that all syslog-ng modules with the exception of libsyslog-ng-crypto.so are loaded
from the syslog-ng modules directory.



Output of "syslog-ng --version" after creating the file "/etc/ld.so.conf.d/syslog-ng.conf"
----------
#  /usr/sbin/syslog-ng --version
syslog-ng 3.3.5.90
Installer-Version: 3.3.5.90
Revision: 
Compile-Date: Aug 17 2012 22:09:52
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat,afsql
Error opening plugin module; module='afsocket-notls', error='//usr/lib64/syslog-ng/libafsocket-notls.so: undefined symbol: tls_context_setup_session'
Available-Modules: dummy,afsocket,afsql,tfjson,dbparser,csvparser,convertfuncs,afuser,basicfuncs,afmongodb,afsocket-tls,confgen,syslogformat,affile,afprog
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: on
----------


/jpo


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list