lua-users home
lua-l archive

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


Hi,

Julio José Mora Salido wrote:
> I think the symbols are exported correctly. However, when I check the
> symbols in the shared library socket.so.2.0.2, lua_insert is declared as
> "Undefined". Now I'm completely lost. Any help would be appreciate.

This is not a Lua problem. Static linking is incompatible with
the use of dlopen() and the dynamic symbol pool. Either link
_everything_ statically or _everything_ dynamically.

Umm, and ... assuming for a moment that mixed linkage would work:
which libc is the socket.so supposed to use? The static fragments
of libc you've linked to the main executable? The dynamic libc.so
in parallel to the static one? Another copy of the static libc?
This just cannot work ...

Bye,
     Mike