[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Building My Own .so
From: |
Felix |
Subject: |
Re: [Chicken-users] Building My Own .so |
Date: |
Fri, 25 Mar 2011 12:10:01 +0100 (CET) |
From: David N Murray <address@hidden>
Subject: [Chicken-users] Building My Own .so
Date: Thu, 24 Mar 2011 16:55:27 -0400 (EDT)
> Hi,
>
> I'm trying to wrap some utility functions in a module into a .so. I'm
> getting undefined symbol errors, and I'm not quite sure how to resolve
> them:
>
> $ csc -s lib.scm -j lib
> Undefined symbols:
> "_C_regex_toplevel", referenced from:
> _f_1400 in lib.o
> "_C_symbol_2dutils_toplevel", referenced from:
> _f_1412 in lib.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> Error: shell command terminated with non-zero exit status 256: gcc lib.o
> -o lib.so -m64 -bundle -L"/usr/local/lib" -lchicken -lm
> $
>
Do you have old versions of the "regex" or "symbol-utils"
eggs installed? Try re-installing those. There was a change
in the naming of toplevel entry-points for extensions, and
if you have stale eggs installed, these will still use
the old naming convention.
cheers,
felix