This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/275] New: Cannot use RTLD_GLOBAL in dlopen
- From: "qf0421 at hotmail dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Jul 2004 03:11:07 -0000
- Subject: [Bug libc/275] New: Cannot use RTLD_GLOBAL in dlopen
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
I'll try the following simple code from help dlopen, but failed and got
following information:
: invalid mode for dlopen(): Invalid argument
And the code:
#include <string>
#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle;
double (*cosine)(double);
char *error;
handle = dlopen (argv[1], RTLD_GLOBAL);
if (!handle) {
fprintf (stderr, "%s\n", dlerror());
exit(1);
}
printf("Got 0x%x from %s.\n", handle, argv[1]);
dlclose(handle);
return 0;
}
Could you help me to check it?
--
Summary: Cannot use RTLD_GLOBAL in dlopen
Product: glibc
Version: 2.3.2
Status: NEW
Severity: critical
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: qf0421 at hotmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=275
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.