[Mono-devel-list] mint gtk-hello-world.exe --> System.DllNotFoundException: gtksharpglue

Urs C Muff umuff at quark.com
Tue Mar 30 12:28:46 EST 2004


Hi all, [this is a problem on PPC Mac OS X 10.3 (G5)]

I added some debug tracing in loader.c to output what real files get 
opened during a pinvoke that loads a shared library.  As you can see 
libgtk-x11-2.0.dylib is resolved with no problem, but 
libgtksharpglue.so is not.  I even renamed .so into .dylib added a map 
entry in etc/mono/config (which does not allow a full path in the 
target field, since it always adds 'lib' as suffix if not already 
existing).

I don't know too much about g_module_open to dig deeper, but I don't 
know how to resolve the issue.  [I even tried to create a symbolic link 
in /sw/lib to point to /usr/local/lib/libgtksharpglue.so with no luck].

Here is some debug output:  Let me know if I can provided more output!

- Urs

umuff at umuff-g5:~/mono/gtk-sharp/sample> mint gtk-hello-world.exe
mono_lookup_pinvoke_call: asmName=gtk-sharp, 
scope=libgtk-x11-2.0.dylib, importgtk_init
g_module_open: libgtk-x11-2.0.dylib
mono_lookup_pinvoke_call: asmName=gtk-sharp, 
scope=libgtk-x11-2.0.dylib, importgtk_window_new
g_module_open: libgtk-x11-2.0.dylib
mono_lookup_pinvoke_call: asmName=gtk-sharp, scope=gtksharpglue, 
importgtksharp_object_is_floating
g_module_open: libgtksharpglue.so
g_module_open: ./libgtksharpglue.so
g_module_open: ./libgtksharpglue.so

Unhandled Exception: System.DllNotFoundException: gtksharpglue
#0: 0x00011 throw      in Gtk.Object::gtksharp_object_is_floating 
([18380944/0x1187890] )
...

umuff at umuff-g5:~/mono/gtk-sharp/sample> echo $DYLD_LIBRARY_PATH
/sw/lib:/usr/local/lib

umuff at umuff-g5:~/mono/gtk-sharp/sample> ll /sw/lib/libgtk-x11-2.0.dylib
lrwxr-xr-x  1 root  admin  28  9 Mar 10:59 /sw/lib/libgtk-x11-2.0.dylib 
-> libgtk-x11-2.0.0.200.4.dylib

umuff at umuff-g5:~/mono/gtk-sharp/sample> ll 
/usr/local/lib/libgtksharpglue.so
-rwxr-xr-x  1 umuff  wheel  152160 29 Mar 08:32 
/usr/local/lib/libgtksharpglue.so

umuff at umuff-g5:~/mono/gtk-sharp/sample> otool -L 
/usr/local/lib/libgtksharpglue.so
/usr/local/lib/libgtksharpglue.so:
         /sw/lib/libncurses.5.dylib (compatibility version 6.0.0, 
current version 6.3.0)
         /sw/lib/libgailutil.17.dylib (compatibility version 18.0.0, 
current version 18.0.0)
         /sw/lib/libbz2.1.dylib (compatibility version 1.0.1, current 
version 1.0.2)
         /sw/lib/libORBitCosNaming-2.0.dylib (compatibility version 
1.0.0, current version 1.0.0)
         /sw/lib/libaudiofile.0.dylib (compatibility version 1.0.0, 
current version 1.2.0)
         /sw/lib/libesd.0.dylib (compatibility version 3.0.0, current 
version 3.32.0)
         /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, 
current version 6.2.0)
         /usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0, 
current version 6.3.0)
         /usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0, 
current version 6.0.0)
         /sw/lib/libjpeg.62.dylib (compatibility version 63.0.0, current 
version 63.0.0)
         /usr/X11R6/lib/libfreetype.6.dylib (compatibility version 
6.3.0, current version 6.3.0)
         /usr/X11R6/lib/libfontconfig.1.dylib (compatibility version 
1.0.0, current version 1.0.0)
         /sw/lib/libgtksourceview-1.0.0.dylib (compatibility version 
1.0.0, current version 1.0.0)
         /sw/lib/libgdasql.0.dylib (compatibility version 1.0.0, current 
version 1.0.0)
         /sw/lib/libgnomedb-2.3.dylib (compatibility version 4.0.0, 
current version 4.0.0)
         /sw/lib/libgda-2.1.dylib (compatibility version 3.0.0, current 
version 3.0.0)
         /sw/lib/libxslt.1.dylib (compatibility version 3.0.0, current 
version 3.4.0)
         /sw/lib/librsvg-2.2.dylib (compatibility version 7.0.0, current 
version 7.0.0)
         /sw/lib/libgsf-1.1.dylib (compatibility version 10.0.0, current 
version 10.2.0)
         /sw/lib/libcroco.1.dylib (compatibility version 2.0.0, current 
version 2.0.0)
         /sw/lib/libcrseleng.1.dylib (compatibility version 2.0.0, 
current version 2.0.0)
         /sw/lib/libcrlayeng.1.dylib (compatibility version 2.0.0, 
current version 2.0.0)
         /sw/lib/libgtkhtml-3.0.4.dylib (compatibility version 5.0.0, 
current version 5.0.0)
         /sw/lib/libgnomeui-2.0.dylib (compatibility version 401.0.0, 
current version 401.0.0)
         /sw/lib/libgnomeprintui-2-2.0.dylib (compatibility version 
2.0.0, current version 2.0.0)
         /sw/lib/libgal-2.0.6.dylib (compatibility version 7.0.0, 
current version 7.0.0)
         /sw/lib/libgal-a11y-2.0.6.dylib (compatibility version 7.0.0, 
current version 7.0.0)
         /sw/lib/libbonoboui-2.0.dylib (compatibility version 1.0.0, 
current version 1.0.0)
         /sw/lib/libgnome-2.0.dylib (compatibility version 401.0.0, 
current version 401.0.0)
         /sw/lib/libpopt.0.dylib (compatibility version 1.0.0, current 
version 1.0.0)
         /sw/lib/libbonobo-2.0.dylib (compatibility version 1.0.0, 
current version 1.0.0)
         /sw/lib/libgconf-2.4.dylib (compatibility version 6.0.0, 
current version 6.0.0)
         /sw/lib/libgnomevfs-2.0.dylib (compatibility version 401.0.0, 
current version 401.2.0)
         /sw/lib/libbonobo-activation.4.dylib (compatibility version 
5.0.0, current version 5.0.0)
         /sw/lib/libORBit-2.0.dylib (compatibility version 1.0.0, 
current version 1.0.0)
         /sw/lib/libgthread-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.3.0)
         /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, 
current version 324.2.1)
         /sw/lib/libgnomecanvas-2.0.dylib (compatibility version 
401.0.0, current version 401.0.0)
         /sw/lib/libpangoft2-1.0.0.dylib (compatibility version 201.0.0, 
current version 201.5.0)
         /sw/lib/libglade-2.0.0.dylib (compatibility version 1.0.0, 
current version 1.1.0)
         /sw/lib/libgnomeprint-2-2.0.dylib (compatibility version 2.0.0, 
current version 2.0.0)
         /sw/lib/libart_lgpl_2.2.dylib (compatibility version 6.0.0, 
current version 6.16.0)
         /sw/lib/libxml2.2.dylib (compatibility version 9.0.0, current 
version 9.7.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
current version 71.0.0)
         /usr/lib/libz.1.dylib (compatibility version 1.0.0, current 
version 1.0.0)
         /sw/lib/libvte.4.dylib (compatibility version 6.0.0, current 
version 6.1.0)
         /usr/X11R6/lib/libXft.2.dylib (compatibility version 2.1.0, 
current version 2.1.0)
         /usr/X11R6/lib/libXrender.1.dylib (compatibility version 1.2.0, 
current version 1.2.0)
         /sw/lib/libgtk-x11-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.4.0)
         /sw/lib/libgdk-x11-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.4.0)
         /sw/lib/libatk-1.0.0.dylib (compatibility version 401.0.0, 
current version 401.1.0)
         /sw/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 
201.0.0, current version 201.4.0)
         /sw/lib/libpangoxft-1.0.0.dylib (compatibility version 201.0.0, 
current version 201.5.0)
         /sw/lib/libpangox-1.0.0.dylib (compatibility version 201.0.0, 
current version 201.5.0)
         /sw/lib/libpango-1.0.0.dylib (compatibility version 201.0.0, 
current version 201.5.0)
         /sw/lib/libgobject-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.3.0)
         /sw/lib/libgmodule-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.3.0)
         /sw/lib/libglib-2.0.0.dylib (compatibility version 201.0.0, 
current version 201.3.0)
         /sw/lib/libintl.1.dylib (compatibility version 2.0.0, current 
version 2.1.0)
         /sw/lib/libiconv.2.dylib (compatibility version 5.0.0, current 
version 5.0.0)




More information about the Mono-devel-list mailing list