Le 02/03/2011 18:23, Eliot Miranda a écrit :
Run under gdb. Things to check: there could be an unresolved reference which causes it to fail to load. See "Testing an external plugin has completely linked" in http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild/HowToBuild. If it loads, put a breakpoint in initialiseModule and step through it. Building a debug VM can help in debugging (again see HowToBuild)
Not sure I got it right, but I have unreferenced symbols warning following the step above: bash-3.2# /bin/sh /home/olpc/COG/unixbuild/bld/libtool --mode=link gcc -Wl,--warn-unresolved-symbols -Wl,--no-allow-shlib-undefined -g -O2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 -msse -DLSB_FIRST=1 -avoid-version -module -rpath /usr/local/lib/squeak/3.9-7 -o LocalePlugin.la LocalePlugin.lo sqUnixLocale.lo rm -fr .libs/LocalePlugin.la .libs/LocalePlugin.* .libs/LocalePlugin.* gcc -shared LocalePlugin.lo sqUnixLocale.lo -Wl,--warn-unresolved-symbols -Wl,--no-allow-shlib-undefined -Wl,-soname -Wl,LocalePlugin -o .libs/LocalePlugin /lib/libc.so.6: warning: undefined reference to `__libc_stack_end@GLIBC_2.1' /lib/libc.so.6: warning: undefined reference to `_dl_argv@GLIBC_PRIVATE' /lib/libc.so.6: warning: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' /lib/libc.so.6: warning: undefined reference to `___tls_get_addr@GLIBC_2.3' /lib/libc.so.6: warning: undefined reference to `_rtld_global@GLIBC_PRIVATE' /lib/libc.so.6: warning: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' creating LocalePlugin.la (cd .libs && rm -f LocalePlugin.la && ln -s ../LocalePlugin.la LocalePlugin.la)