guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dynamic linking


From: Tomas By
Subject: dynamic linking
Date: Fri, 5 Feb 2010 13:57:54 +0100
User-agent: SquirrelMail/1.4.18

Hi all,

I'm trying to create a Guile module, using code written in Mercury.
(http://www.cs.mu.oz.au/research/mercury/)
I have managed to produce a library file (.so), but when I try to open
it in Guile (with dynamic-link), I get "file not found". It's clear from
the strace output that it does find my library, but then it checks some
other Mercury libraries, and presumably finds something it doesn't like.
The log from strace ends with this:

open("/usr/local/mercury-rotd-2009-12-28/lib/mercury/lib/libgc.so",
O_RDONLY) = 9
read(9,
"address@hidden"..., 512)
= 512
fstat64(9, {st_mode=S_IFREG|0755, st_size=121223, ...}) = 0
mmap2(NULL, 464944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 9, 0)
= 0x9a4000
mmap2(0x9bb000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 9, 0x17) = 0x9bb000
mmap2(0x9bd000, 362544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x9bd000
close(9)                                = 0
mprotect(0x9bb000, 4096, PROT_READ)     = 0
mprotect(0x298000, 4096, PROT_READ)     = 0
mprotect(0x11b2000, 126976, PROT_READ)  = 0
mprotect(0x422000, 20480, PROT_READ|PROT_WRITE) = 0
munmap(0x422000, 24684)                 = 0
munmap(0xdec000, 6385312)               = 0
munmap(0x255000, 287840)                = 0
munmap(0x9a4000, 464944)                = 0

I guess that "libgc.so" is the Mercury garbage collector. Is there some
problem with having another GC in a Guile module?

Entire strace output attached. Any help appreciated.

/Tomas

Attachment: log.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]