[Mono-bugs] [Bug 498544] New: Native bindings fail after upgrading to Mono 2.x

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 27 13:54:23 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=498544


           Summary: Native bindings fail after upgrading to Mono 2.x
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: x86-64
        OS/Version: Red Hat 6.2
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: frankhevans at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other


Description of Problem:
Native bindings fail after upgrading to Mono 2.x. SWIG bindings which
consistently work in Mono1.9.1 fail after upgrading to Mono2.2 or 2.4. 

Steps to reproduce the problem:
1. Use SWIG to expose an interface.
2. Compile native library and managed bindings.
3. Attempt to execute.

===========================================================
Actual Results:
===========================================================
Note that the "probing 'EntryPoint'" never occurs. It simply fails to find the
library, even though it is in the LD_LIBRARY_PATH. The exact same environment
works in Mono1.9.1. 

Mono-INFO: DllImport attempting to load: 'libhutil_csharp'.
Mono-INFO: DllImport loading location: 'libhutil_csharp.so'.
Mono-INFO: DllImport error loading library: 'libhutil_csharp.so: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libhutil_csharp.so'.
Mono-INFO: DllImport error loading library './libhutil_csharp.so: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'libhutil_csharp'.
Mono-INFO: DllImport error loading library 'libhutil_csharp: cannot open shared
object file: No such file or directory'.

(<unknown>:10993): Mono-WARNING **: DllImport unable to load library
'libhutil_csharp: cannot open shared object file: No such file or directory'. 

===========================================================
Expected Results:
===========================================================
Mono-INFO: DllImport attempting to load: 'hutil_csharp'.
Mono-INFO: DllImport loading location: 'libhutil_csharp.so'.
Mono-INFO: Searching for 'CSharp_AppInitializer_initializeApp'.
Mono-INFO: Probing 'CSharp_AppInitializer_initializeApp'.

How often does this happen? 
Every time.

Additional Information:
===========================================================
I'm running on RedHat 3.4.6. The Mono1.9.1 which works was deployed using the
debian installer. Since the Mono installer is no longer maintained, I had to
compile mono2.4 from source (the rpm's do not allow relocation, and I do not
have root). Except for the p/Invoke problems everything else seems to work.

The Mono file "metadata/loader.c" seems like a good place to start
investigating.

-- 
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