[Mono-list] [mono-list]DLL Import errors

Eric Morgan ehmorgan at gmail.com
Wed Apr 18 12:28:41 EDT 2007


>Frequently the problem is that the library is improperly linked; mono
>(effectively) loads libraries using dlopen(3) with RTLD_NOW set, so if
>your library depends on a symbol from another library but wasn't linked
>against that library, you will get errors loading it.
>
>You can also use http://www.jprl.com/dltest.c to test this scenario (see
>the comments for compile commands).
>
>If that still fails, you can reply to the mailing list with the Mono
>output attached.
>
> - Jon
>

Still fails, and the output is generally the same from when I was using
MONO_LOG_LEVEL=debug.  Here's the output from dltest:

[rengeo at localhost dltest]$ ll
/home/rengeo/RenegadeGeophysics/SeismicStudioLinux64/lib/
total 992
-r-xr-xr-x  1 rengeo rengeo 339956 Apr 17 10:14 libSentinelKeys32.a
-r-xr-xr-x  1 rengeo rengeo 315468 Feb  8 14:42 libSentinelKeys32.so
-r-xr-xr-x  1 rengeo rengeo 328388 Apr 17 12:26 libSentinelKeysJDK.so
[rengeo at localhost dltest]$ ./dltest
/home/rengeo/RenegadeGeophysics/SeismicStudioLinux64/lib/libSentinelKeys32.so
error loading library
`/home/rengeo/RenegadeGeophysics/SeismicStudioLinux64/lib/libSentinelKeys32.so':
/home/rengeo/RenegadeGeophysics/SeismicStudioLinux64/lib/libSentinelKeys32.so:
cannot open shared object file: No such file or directory
[rengeo at localhost dltest]$


The library is clearly there, but both mono and this dltest is saying that
it doesn't exist.  I've tried copying the library directly into the folder
with dltest, and it still can't find it, even though is literally right
there.


Here's a link to the MONO_LOG_LEVEL=info  output. I uploaded to our website
to cut down the size of this mailing list email.
http://www.rengeo.com/linux/yaay.txt


Thanks for your help.

Eric Morgan
Renegade Geophysics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070418/329db5f6/attachment.html 


More information about the Mono-list mailing list