[Mono-bugs] [Bug 56255][Cri] New - mint gtk-hello-world.exe --> System.DllNotFoundException: gtksharpglue

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 30 Mar 2004 15:10:58 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by umuff@quark.com.


--- shadow/56255	2004-03-30 15:10:58.000000000 -0500
+++ shadow/56255.tmp.7635	2004-03-30 15:10:58.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 56255
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: Mac OS X 10.3 G5
+Status: NEW   
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: umuff@quark.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: mint gtk-hello-world.exe --> System.DllNotFoundException: gtksharpglue
+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@umuff-g5:~/mono/gtk-sharp/sample> mint gtk-hello-world.exe
+mono_lookup_pinvoke_call: asmName=gtk-sharp, scope=libgtk-x11-2.0.dylib, 
+g_module_open: libgtk-x11-2.0.dylib
+mono_lookup_pinvoke_call: asmName=gtk-sharp, scope=libgtk-x11-2.0.dylib, 
+g_module_open: libgtk-x11-2.0.dylib
+mono_lookup_pinvoke_call: asmName=gtk-sharp, scope=gtksharpglue, 
+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@umuff-g5:~/mono/gtk-sharp/sample> echo 
+$DYLD_LIBRARY_PATH /sw/lib:/usr/local/lib
+umuff@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-
+ll /usr/local/lib/libgtksharpglue.so -rwxr-xr-x  1 umuff  wheel  152160 
+29 Mar 08:32 /usr/local/lib/libgtksharpglue.so
+umuff@umuff-g5:~/mono/gtk-sharp/sample> otool -
+L /usr/local/lib/libgtksharpglue.so
+         /sw/lib/libncurses.5.dylib (compatibility version 6.0.0, current 
+version 6.3.0)
+         /sw/lib/libiconv.2.dylib (compatibility version 5.0.0, current 
+version 5.0.0)
+--> no errors found by otool