dlopen fails for libpthread

Mike Perry mikepery at fscked.org
Sat Jan 3 07:36:23 UTC 2004


It seems as if I am unable to dlopen libpthread.so.0.. I'm running 
Fedora Core 1 with glibc-2.3.2-101.1 and gcc-3.3.2-1.

Is this something I'm doing wrong? or is this a real bug?

--- PASTE INTO SHELL ---

cat > tmp.c << EOF
#include <stdio.h>
#include <dlfcn.h>

int main()
{                                                                               
   void* handle = NULL;
   if ((handle = dlopen("/lib/libpthread.so.0", RTLD_LAZY)) == NULL)
           printf("Dlerror: %s\n", dlerror());
   
   return 0;
}
EOF

gcc tmp.c -o tmp -ldl
./tmp

------------

Output is:

Dlerror: /lib/libpthread.so.0: symbol _errno, version GLIBC_2.0 not
defined in file libc.so.6 with link time reference


-- 
Mike Perry
Mad Computer Scientist
fscked.org evil labs





More information about the fedora-devel-list mailing list