lua-users home
lua-l archive

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


On Jun 21, 2017 10:20 AM, "Deepak Jois" <deepak.jois@gmail.com> wrote:
$ nm -g target/debug/rlua | grep lua_gettop
000000000000dd63 T lua_gettop
```

On Linux, the error is "undefined symbol: lua_gettop", but as you can
see the grep output seems to clearly show it as being available. So I
am not sure where the problem is exactly.

A long time ago I had a similar issue with Python (was it with Lunatic Python?) and the issue was that the default setting in Python was RTLD_LOCAL (see 'man dlopen'). Fortunately Python allows you to change the defaults [1]. Maybe you need to do something similar for Rust.

[1] https://docs.python.org/2/library/sys.html#sys.setdlopenflags