[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C module problem
From: |
dsmich |
Subject: |
Re: C module problem |
Date: |
Mon, 28 Feb 2011 12:30:31 -0500 |
---- Mike Gran <address@hidden> wrote:
> On Linux (the kernel), to see if this is the case (and I'm going
> from memory here, so forgive me if this isn't perfect) you can
> run guile as
>
> "LD_DEBUG=all LD_DEBUG_OUTPUT=tmp.txt guile"
>
> and then try to load your extension.
>
> Then after your run, it should have made a handful of tmp.txt files, one
> per thread. Search through these files for strings like "error" or "fatal"
> with reference to your binding. It may be that you've misspelled a function
> name or are trying to link to a function that doesn't exist.
It is also instructive to run the command under strace -efile. You get a clear
idea of what file guile *is* trying to open and *where*.
I've solved more "can't open the file" type problems with strace than I can
remember. A wonderful tool.
-Dale