[EMAIL PROTECTED] wrote: > Well, if I do link with -export-dynamic, I can not even make the first > call to anything in the plugin, it segfaults immediately on some > g_vsprintf_XXX function (that seems to come from glib). > > What is going on ? I link the program with glib and all necessary libs. > > If anybody has some insight on this, please let me know...
Nothing a tiny bit of instrumentation and a change in the way you open it couldn't fix. Set RTLD_NOW rather than RTLD_LAZY for testing. When the dlopen() fails, call dlerror() to retrieve the error message; it will tell you exactly what is failing. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message