Hi Michal, On Sun, 2005-02-13 at 11:48, Michal Moskal wrote: > Ok, this one was stupid :-) glib uses dlopen to open the module and > the message seems to come from dlopen. Maybe you can try to write a > little C program that only dlopens libncurses.so and see if it works.
Ok. I just tried this:
#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle;
char *error;
handle = dlopen ("libncurses.so", RTLD_LAZY);
if (!handle) {
fprintf (stderr, "%s\n", dlerror());
exit(1);
}
else {
fprintf (stdout, "Opened libncurses successfully\n");
}
dlclose(handle);
return 0;
}
built with the following command:
[EMAIL PROTECTED] src $ gcc -rdynamic -o dlopentest dlopentest.c -ldl
And result:
[EMAIL PROTECTED] src $ ./dlopentest
Opened libncurses successfully
Humm.. seems to work. Unfortunately I am getting a bit out of my depth
here. I still have a lot to learn about Linux programming it would seem
;-)
I am following up on another theory as well to do with the version of
gcc used to build mono. I will let you know if that makes any
difference.
Cheers,
James
--
It's 5.50 a.m.... Do you know where your stack pointer is ?
signature.asc
Description: This is a digitally signed message part
