lua-users home
lua-l archive

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


Hello everyone I found the answer to the above problem. There was some compatibility issue with version lua 5.1 to 5.3...

In the packlib.c file, include the following define and that should solve all the undefined ref issues

#define LUA_COMPAT_5_1

Thanks

N.B: it would be actually good if elua included the pack module..

On Thu, Mar 12, 2015 at 12:12 PM, biswajit neog <biswajitneog@gmail.com> wrote:
Hello Everyone

I am trying to compile one of my stm32 boards using build_elua.lua and codesourcery as toolchain. I have lua and elua build and running.When I try to compile using the following command

lua build_elua.lua board=******* toolchain=codesourcery boot=standard prog

, it returns an error saying
lua: error loading module 'pack' from file '/usr/local/lib/lua/5.3/pack.so':
 /usr/local/lib/lua/5.3/pack.so: undefined symbol: lua_replace
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        ./utils/mkfs.lua:4: in main chunk
        [C]: in function 'require'
        build_elua.lua:22: in main chunk
        [C]: in ?


I assumed that pack was not build properly.So I looked for any git sources for pack...I found lpack but not pack...i assume lpack does packing and unpacking too...but it does not solve the issue....can any one shed some light as to how to tackle this issue and get rid of the error....thanks !!