[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 Binary Compatibility
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 9 Jan 2010 09:03:33 -0200
> >> require 'lfs'
> > error loading module 'lfs' from file '/usr/local/lib/lua/5.1/lfs.so':
> > /usr/local/lib/lua/5.1/lfs.so: undefined symbol: luaL_openlib
>
> I believe that the desired behavior for require is to detect Lua
> version mismatch and skip the module to try to find a next one that
> fits better. I'm not sure if it is doable though...
No, it's not. The error above is raised by dlsym, when it tries but does not
find the luaL_openlib symbol.
If you're suggesting a loader that carries on trying even if it does find
a suitable library but does not find the required symbol, then it's doable.