Sounds more like a http://www.mono-project.com/DllNotFoundException .
You can try with http://www.mono-project.com/DllMap .
Also http://www.mono-project.com/Interop_with_Native_Libraries
Thanks for your answer. I have another question. On sparc64 systems,
Mono is built as a 32 bits application and all mono DLL and EXE are 32
bits one :
Root gershwin:[/usr/local/lib/simias/bin] > file UserCmd.exe
UserCmd.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
Mono/.Net assembly
libFlaim.so is a 64 bits library because I cannot build libFlaim in
only 32 bits :
Root gershwin:[/usr/local/lib64] > file libflaim.so.4.1
libflaim.so.4.1: ELF 64-bit MSB shared object, SPARC V9, relaxed memory
ordering, version 1 (SYSV), dynamically linked, not stripped
I suppose that real error should be "I found a library but it is ELF
64-bits MSB and I'm looking for a 32-bits one". Indeed, I'm not
understand how mono (32 bits application on sparc64) can handle a 64
bits library. I have seen a sparc target in libflaim Makefile but it
always build a 64 bits library and if I force a 32 bits target, it
does't build anything. Thus, I have modified Makefile to obtain a
sparc32 library.
Quick and dirty hack in main Makefile :
Line 418, replace
host_native_word_size = 64
by
host_native_word_size = 32
Lines 946 to 948 :
compiler = g++ -m32
exe_linker = g++ -m32
shared_linker = g++ -m32
Root gershwin:[/home/bertrand/libflaim-4.9.989] > make
===============================================================================
SVN Revision.................... 989
Host Operating System Family.... linux
Top Directory................... /home/bertrand/libflaim-4.9.989
Target Operating System Family.. linux
Target Processor Family......... sparc
Target Word Size................ 32
Target Build Type............... release
Target Path.....................
/home/bertrand/libflaim-4.9.989/build/linux-sparc-32/release
Toolkit Path.................... /home/bertrand/libflaim-4.9.989/ftk
Install Prefix.................. /usr/local
Compiler........................ g++ -m32
Librarian....................... ar
Defines......................... N_PLAT_UNIX _LARGEFILE64_SOURCE
_FILE_OFFSET_BITS=64 _REENTRANT
===============================================================================
..
<no error>
..
Building
/home/bertrand/libflaim-4.9.989/build/linux-sparc-32/release/lib/static/libflaim.a
..
Building
/home/bertrand/libflaim-4.9.989/build/linux-sparc-32/release/lib/shared/libflaim.so.4.1
..
Root gershwin:[/home/bertrand/libflaim-4.9.989] >
I think you have to modify flaim Makefile.
I have to add
<dllmap dll="FlaimWrapper" target="FlaimWrapper.so" />
in /etc/mono/config too.
Now, I don't see any error about FlaimWrapper, but if I try to connect
to admin page, I only receive this message :
"The username or password you entered is incorrect. Please log in.".
I'm investigate ;-)
Regards,
JKB
_______________________________________________
ifolder-dev mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/ifolder-dev