View Single Post
Old 03-23-2016, 04:14 AM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Did I really post above (in post #1) that lua-filesystem was working?
PHP Code:
lfs = require'lfs'
error loading module 'lfs' from file '/mnt/us/esys/usr/lib/lua5.1/lfs.so':
        /
mnt/us/esys/usr/lib/lua5.1/lfs.soundefined symbolluaL_setfuncs
stack traceback
:
        [
C]: ?
        [
C]: in function 'require'
        
stdin:1in main chunk
        
[C]: ?
os.exit()

core2quad lua-5.3.2 grep -'luaL_setf' *
src/lauxlib.h:LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *lint nup);
src/lauxlib.h:#define luaL_newlib(L,l)  \
src/lauxlib.h:  (luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
src/lauxlib.c:LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *lint nup) {

core2quad lua-5.2.4 grep -'luaL_setf' *
src/lauxlib.h:LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *lint nup);
src/lauxlib.h:#define luaL_newlib(L,l)    (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
src/lauxlib.c:LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *lint nup) {

# and for here, there be dragons:

core2quad lua-5.1.5 grep -'luaL_setf' *
core2quad lua-5.1.5 grep -'luaL_newlib' *
? ? ? 
I can't find anything in the lua-filesystem public repository about supporting lua-5.1.x
(Which is crazy, lfs has been around longer than 5.1.0, even though the public repo. doesn't show it. I just need a really old, lfs build. Its the public repo. that is too new.)

I had to have been looking at a terminal open into my PC rather than into my test Kindle when I checked it before.
Because there is just no way it can work without the code written into the sources.

There are also a lot of hits in doc/manual for those queries, so I guess it is time somebody (me or at Debian) to RTFM.

Last edited by knc1; 03-23-2016 at 04:27 AM.
knc1 is offline   Reply With Quote