[syslog-ng] [Bug 115] New: libsyslog-ng.so is not linked with glib/cap but uses glib/ cap symbols

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Wed Feb 23 09:05:59 CET 2011


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

           Summary: libsyslog-ng.so is not linked with glib/cap but uses
                    glib/cap symbols
           Product: syslog-ng
           Version: 3.2.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi at balabit.hu
        ReportedBy: arekm at maven.pl
Type of the Report: ---
   Estimated Hours: 0.0


[arekm at carme-pld ~/rpm/BUILD/syslog-ng-3.2.2/lib]$ ldd .libs/libsyslog-ng.so
        linux-vdso.so.1 =>  (0x00007fff46f80000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb64c4b8000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003fba800000)

but libsyslog-ng.so uses many glib and cap symbols:

libtool: link: x86_64-pld-linux-gcc -std=gnu99 -I../../../lib -I../../../lib -I../../../modules/dbparser -I.. -Wno-pointer-sign -O2 -fno-strict-aliasing
-fwrapv -march=x86-64 -gdwarf-3 -g2 -Wall .libs/test_patterndbS.o -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z -Wl,relro -Wl,-z -Wl,combreloc -o
.libs/test_patterndb test_patterndb.o ../.libs/patternize.o -Wl,-Bstatic -Wl,--whole-archive -Wl,--export-dynamic -pthread -Wl,--no-whole-archive -Wl,-Bdynamic
 ../../syslogformat/.libs/libsyslogformat.so ../../../lib/.libs/libsyslog-ng.so ../.libs/libsyslog-ng-patterndb.so
/home/users/arekm/rpm/BUILD/syslog-ng-3.2.2/lib/.libs/libsyslog-ng.so -lssl -lcrypto -lresolv /usr/lib64/libgmodule-2.0.so /usr/lib64/libgthread-2.0.so
-lpthread /usr/lib64/libglib-2.0.so /usr/lib64/libevtlog.so /usr/lib64/libpcre.so -lcap -ldl -lrt -pthread -Wl,-rpath -Wl,/lib64/syslog-ng
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_set_proc'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_from_text'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_module_build_path'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_free'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_module_make_resident'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_thread_init'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_module_symbol'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_module_open'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `g_module_error'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_set_flag'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_to_text'
../../../lib/.libs/libsyslog-ng.so: undefined reference to `cap_get_proc'

That's in mixed linking, CORE_DEPS_LIBS is then empty. CORE_DEPS_LIBS should contain static linking to glib and dynamic to cap then.


-- 
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