[Mono-bugs] [Bug 588143] if LD_LIBRARY_PATH is empty, DllNotFoundException is only thrown if the native library in current directory is specified with a ".so" suffix in the DllImport or in the .config.exe file

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 23 20:43:30 EDT 2010



Andrés G. Aragoneses <knocte at gmail.com> changed:

           What    |Removed                     |Added
 Attachment #348301|0                           |1
        is obsolete|                            |
 Attachment #348302|0                           |1
        is obsolete|                            |
 Attachment #348303|0                           |1
        is obsolete|                            |
 Attachment #348318|0                           |1
        is obsolete|                            |
 Attachment #350140|0                           |1
        is obsolete|                            |

--- Comment #12 from Andrés G. Aragoneses <knocte at gmail.com> 2010-03-24 00:43:29 UTC ---
Created an attachment (id=350145)
 --> (http://bugzilla.novell.com/attachment.cgi?id=350145)
Zip file that contains the sources of the more simplified testcase

The testcase contains 2 projects, 1 unmanaged and 1 managed.

To test, compile the unmanaged and copy its .so in the directory where you will
place the binaries of the managed one.

Compile the managed one, place the config.xml in the same directory where the
binaries are.

Now, place yourself in that directory, and run:

1. "mono DlOpenIssue.exe 1" -> the test that works (without ".so" suffix in the
2. "mono DlOpenIssue.exe 2" -> DllNotFoundException (same case as before, but
the filename for the DllImport clause contains the ".so" suffix).
3. "mono DlOpenIssue.exe 3" -> DllNotFoundException (same case as 1st case, but
a DlOpenIssue.exe.config is present that maps the plain filename of the lib to
a one that contains the ".so" suffix)

Be sure to test all cases with an empty LD_LIBRARY_PATH.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list