It would be nice if this could be fixed, since it makes it hard
to debug if you want to use dlopen on the main executable.
The problem (with at least the version at cvs.qnx.com, and from the behavior,
it’s probably the same in 6.1) is that right at the start of dlopen(),
if(getenv(“DL_DEBUG”)) {
fprintf(stderr, “dlopen(”%s",%d)\n", name, mode);
}
It should be something like:
if(getenv(“DL_DEBUG”)) {
fprintf(stderr, “dlopen(”%s",%d)\n", name?name:“MAIN”, mode);
}
(I submitted it through the problem reporting also, but thought it wouldn’t
hurt to report it here as well.)
It would be nice if this could be fixed, since it makes it hard
to debug if you want to use dlopen on the main executable.
The problem (with at least the version at cvs.qnx.com, and from the behavior,
it’s probably the same in 6.1) is that right at the start of dlopen(),
if(getenv(“DL_DEBUG”)) {
fprintf(stderr, “dlopen(”%s",%d)\n", name, mode);
}
It should be something like:
if(getenv(“DL_DEBUG”)) {
fprintf(stderr, “dlopen(”%s",%d)\n", name?name:“MAIN”, mode);
}
(I submitted it through the problem reporting also, but thought it wouldn’t
hurt to report it here as well.)
You will be happy to know that this has already been fixed in the
head branch and should be in the next release.