lua-users home
lua-l archive

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


* Rob Hoelz:

> I've written perl.c, which currently just allows you to evaluate
> strings of Perl code from Lua.  However, when I load a dynamic module
> from Perl (ex. Scalar::Util), I get errors relating to undefined
> symbols.  This probably stems from the fact that I have a standalone
> Lua interpreter loading a shared object (perl.so) that loads another
> shared object (libperl.so) that uses a dynamic loader (Perl's
> DynaLoader) to load another shared object (in the case of Scalar::Util,
> List/Util/Util.so).  I understand the basics of linking, but this is
> beyond my current knowledge.

It helps if you reload libperl with RTLD_GLOBAL.  You need the full
path to libperl to do this, but perhaps you can find a good way to
obtain it.