Public bug reported:

An example program:

===
#include <stdio.h>
#include <dlfcn.h>

main()
{
        dlopen("/lib/example.so", RTLD_NOW);

}
===

and its compilation gives:

===
lvd@ubuserv1204:~/tmp/dltest$ gcc -c dltest.c 
lvd@ubuserv1204:~/tmp/dltest$ gcc -ldl -o dltest dltest.o
dltest.o: In function `main':
dltest.c:(.text+0xf): undefined reference to `dlopen'
collect2: ld returned 1 exit status
===

This bug exists in i386, pure amd64 and in multilib (both with -m32
option to gcc and without).

Please ask me for additional info.

** Affects: eglibc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1002672

Title:
  apps can't be linked against libdl in 12.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1002672/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to