[Mono-bugs] [Bug 70070][Nor] Changed - File not found exception lists incorrect native library

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 1 Dec 2004 15:39:01 -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 tao@taoframework.com.


--- shadow/70070	2004-12-01 14:11:38.000000000 -0500
+++ shadow/70070.tmp.17329	2004-12-01 15:39:01.000000000 -0500
@@ -41,6 +41,32 @@
 ------- Additional Comments From vargaz@gmail.com  2004-12-01 10:16 -------
 Fixed in SVN.
 ------- Additional Comments From gonzalo@ximian.com  2004-12-01 14:11 -------
 Any reason to not fix this in 1-0 too?
+------- Additional Comments From tao@taoframework.com  2004-12-01 15:39 -------
+While this is itself a bug, the bigger issue to me is the single
+dllmap.  I mentioned to miguel what might be nice is to be able to
+provide a number of dllmap entries delineated by platform, to be
+chosen by the runtime host platform, for instance:
+<dllmap dll="foo.dll" platform="windows" target="foo.dll" />
+<dllmap dll="foo.dll" platform="linux" target="libfoo.so" />
+<dllmap dll="foo.dll" platform="osx" target="libFooApple.so" />
+Or, perhaps, at least try the default native library before throwing
+an exception, for instance with Tao.OpenGl.dll I'd like to always
+supply the Tao.OpenGl.dll.config, which may look like:
+<dllmap dll="opengl32.dll" target="libgl.so" />
+With ms's runtime this is obviously ignored and opengl32.dll is used,
+on linux the libgl.so target would be used, however, on mono on
+windows, the override target will be attempted, it will not find
+libgl.so and throw an exception, leading to this bug report.  The
+solution is either to delete the config file, to implement something
+like above, or to try the override target, catch the file not found
+exception, then try the original dll, if that's not found, throw...