Package: libcppunit-1.10-2c2
Version: 1.10.2-4
Severity: important
Tags: patch

Hi,

As it could be seen below, libcppunit-1.10-2c2 is using dlopen(),
dlclose() and dlsym(), but is not linked to libld.so:

[bode:~]$ cat test.c
int main() {}
[bode:~]$ gcc -o test test.c -lcppunit
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../libcppunit.so: undefined reference 
to `dlclose'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../libcppunit.so: undefined reference 
to `dlopen'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../libcppunit.so: undefined reference 
to `dlsym'
collect2: ld returned 1 exit status
make: *** [interactive_set_test] Error 1
[bode:~] ldd /usr/lib/libcppunit.so
        linux-gate.so.1 =>  (0xffffe000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x555c9000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x556a3000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x556c8000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x557ff000)
        /lib/ld-linux.so.2 (0x56555000)
[bode:~]

Please find attached a patch to fix that.

Bye,
Aurelien

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)

Versions of packages libcppunit-1.10-2c2 depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-3  GCC support library
ii  libstdc++6                    4.0.2-3    The GNU Standard C++ Library v3

libcppunit-1.10-2c2 recommends no packages.

-- no debconf information
--- cppunit-1.10.2.orig/src/cppunit/Makefile.am
+++ cppunit-1.10.2/src/cppunit/Makefile.am
@@ -63,5 +63,6 @@
 
 libcppunit_la_LDFLAGS= \
  -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -release $(LT_RELEASE)
+ -release $(LT_RELEASE) \
+ @LIBADD_DL@
 

Reply via email to