On Thu, 21 Mar 2013 11:50:42 +0200, Luís Oliveira luismbo@gmail.com wrote:
A Google search for that error string turns up this: https://savannah.gnu.org/bugs/index.php?34195#comment0. Perhaps your library is being marked as RTLD_NODELETE by glibc as described in that bug report. I suppose a good way to check that this is something glibc-related would be to write a small C program that opens and reloads your library. Can you try that?
Attached code loads and unloads using flags based on the example on the man page: http://pubs.opengroup.org/onlinepubs/007904975/functions/dlsym.html
In addition to that, since sbcl calls dlopen with RTLD_GLOBAL|RDLD_NOW flags, i tried that too, all works as expected.