[Mono-dev] Compilation error for ARM

FirstName LastName mousse_man at hotmail.com
Fri Sep 5 14:03:17 EDT 2008


Hi,
 
I'm trying to compile the latest code from SVN (rev 112374) because I have some issues with mono 1.9.1 regarding soft float with ARM.
 
I get the following error:
 
CC      pedump.oLD      pedump../utils/.libs/libmonoutils.a(mono-mmap.o): In function `shared_cleanup':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:387: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:409: undefined reference to `shm_open'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:412: undefined reference to `shm_unlink'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:413: undefined reference to `shm_open'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:421: undefined reference to `shm_unlink'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:426: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area_remove':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:447: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area_for_pid':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:464: undefined reference to `shm_open'collect2: ld returned 1 exit statusmake[3]: *** [pedump] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/metadata'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono'make: *** [all] Error 2root at mb-ubuntu:/home/ubuntu/Install/cross-arm-mono-tip/mono# 
 
Basically, it doesn't find shm_open and shm_unlink.  I'm working with uClibc. I noticed that my librt.a doesn't have these methods.  That's why I get this error.
 
However, I didn't have this issue when compiling 1.9.1.  Is there a way to configure MONO to not use shared memory?
 
I tried  --disable-shared-handles but it doesn't work.
 
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080905/38087fae/attachment.html 


More information about the Mono-devel-list mailing list