[syslog-ng] [Bug 114] New: configure strips -ldl -lrt for static linking but doesn' t add back with dynamic linking

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Wed Feb 23 08:58:58 CET 2011


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

           Summary: configure strips -ldl -lrt for static linking but
                    doesn't add back with dynamic linking
           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


configure.in when detecting glib strips -ldl and -lrt to prevent static linking with these libraries.

        # strip out -ldl & -lrt as it cannot be linked statically
        GLIB_LIBS=`echo $GLIB_LIBS | tr ' ' '\n' | egrep -v "^(-ldld?)|(-lrt)$" | tr '\n' ' '`

This is fine. Unfortunately it doesn't add -ldl and -lrt back with dynamic linking and that causes newer glib detection to fail:

configure:14223: checking for g_hash_table_new
configure:14223: x86_64-pld-linux-gcc -std=gnu99 -o conftest -O2 -fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2  -Wall -D_FORTIFY_SOURCE=2 
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc  conftest.c -Wl,-Bstatic -Wl,--export-dynamic -pthread -lgmodule-2.0
-lgthread-2.0 -lglib-2.0  -Wl,-Bdynamic >&5
/usr/lib64/gcc/x86_64-pld-linux/4.5.2/../../../../lib64/libglib-2.0.a(gmain.o): In function `g_get_monotonic_time':
(.text+0x2e12): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status


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