[Mono-dev] undefined symbol: g_module_open IKVM Native Library Loading

Jim Redman jredman at ergotech.com
Sat May 17 12:59:17 EDT 2008


For IKVM changing the build process so that the final shared library has 
a dependency on gmodule resolve the undefined symbol problem.

Thanks for the ldd hint that was the key to discovering the solution.

Jim

Andreas Färber wrote:
> 
> Am 17.05.2008 um 18:10 schrieb Jim Redman:
> 
>> Digging, there also seem to be dependencies on gmodule in mono.  Yet I
>> don't think that either the mono executable, or the shared libraries
>> reference the gmodule shared library.
>>
>> Can this possibly be correct.  Is there some other shared library that
>> should be expected to pull in gmodule?
> 
> If they don't link to shared glib libraries and since you mentioned 
> XScale, it could be that Mono is being linked against its embedded glib 
> (eglib) static library.
> 
> Andreas
> 
>> Robert Jordan wrote:
>>> Jim Redman wrote:
>>>> Running the application gets this error about the time in the
>>>> application when I would expect the native library to be loaded.
>>>>
>>>> mono: symbol lookup error: /home/MIX_CMIX/libikvm-native.so: undefined
>>>> symbol: g_module_open
>>>>
>>>> Library loading seems to work on FC8 Mono 1.2.6 with the same IKVM
>>>> version - but, obviously, an X86 .so.
>>>>
>>>> Any thoughts? Ideas?
>>>
>>> Your system is probably missing gmodule-2.0, which is usually
>>> part of glib.
>>>
>>> Check the output of `ldd /home/MIX_CMIX/libikvm-native.so'.
>>>
>>> Robert
>>>
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>> -- 
>> Jim Redman
>> (505) 662 5156 x85
>> http://www.ergotech.com
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-- 
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com


More information about the Mono-devel-list mailing list