apps can't be linked against libdl in 12.04
Bug #1002672 reported by
lvd
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eglibc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
An example program:
===
#include <stdio.h>
#include <dlfcn.h>
main()
{
dlopen(
}
===
and its compilation gives:
===
lvd@ubuserv1204
lvd@ubuserv1204
dltest.o: In function `main':
dltest.
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.
To post a comment you must log in.
my info about eglibc is wrong:
=== 64-linux- gnu/libdl. so.2 x86_64- linux-gnu/ libdl.so x86_64- linux-gnu/ libdl.a 64-linux- gnu/libdl- 2.15.so
lvd@ubuserv1204:~$ dpkg --search libdl
libc6: /lib/x86_
libc6-dev: /usr/lib/
libc6-dev: /usr/lib/
libc6: /lib/x86_
===
so libc6 is probably the cause.
Also, file-name= libdl.so gcc/x86_ 64-linux- gnu/4.6/ ../../. ./x86_64- linux-gnu/ libdl.so
===
lvd@ubuserv1204:~$ gcc --print-
/usr/lib/
===