Problem build haserl with lua support
Hi,
I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X with lua support. I select the lua intrepreter and have not selected lua library modules.
The relevant config section is:
# Interpreter languages and scripting
#
BR2_PACKAGE_HASERL=y
BR2_PACKAGE_HASERL_WITH_LUA=y
# BR2_PACKAGE_HASERL_VERSION_0_8_X is not set
BR2_PACKAGE_HASERL_VERSION_0_9_X=y
BR2_PACKAGE_HASERL_VERSION="0.9.29"
BR2_PACKAGE_LUA=y
# BR2_PACKAGE_LUA_COMPILER is not set
BR2_PACKAGE_LUA_INTERPRETER=y
# BR2_PACKAGE_LUA_INTERPRETER_READLINE is not set
BR2_PACKAGE_LUA_SHARED_LIBRARY=y
#
# LUA libraries/modules
#
# BR2_PACKAGE_CGILUA is not set
# BR2_PACKAGE_COPAS is not set
# BR2_PACKAGE_COXPCALL is not set
# BR2_PACKAGE_LUAFILESYSTEM is not set
# BR2_PACKAGE_LUASOCKET is not set
# BR2_PACKAGE_RINGS is not set
# BR2_PACKAGE_WSAPI is not set
# BR2_PACKAGE_XAVANTE is not set
# BR2_PACKAGE_MICROPERL is not set
# BR2_PACKAGE_PHP is not set
# BR2_PACKAGE_PYTHON is not set
# BR2_PACKAGE_RUBY is not set
# BR2_PACKAGE_TCL is not set
I am getting the following error when I try and build:
Quoted 1 line
Quoted 1 line
Quoted 1 line
host-lua 5.1.4 Building
sed -i -e
's/-O2//' /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src/Makefile sed -i -e 's/\/usr
\/local/\/usr/' /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/etc/lua.pc /usr/bin/make -j2 MYCFLAGS="-fPIC -DLUA_USE_DLOPEN -DLUA_USE_POSIX"
MYLIBS="-ldl" PKG_VERSION=5.1.4
-C /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src all make[1]: Entering directory `/home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src'
gcc -o liblua.so.5.1.4 -shared -Wl,-soname="liblua.so.5.1.4" lapi.o
lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o
lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o
lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o
ltablib.o lstrlib.o loadlib.o linit.o -nostdlib -lgcc
ldo.o: In function `luaD_callhook':
ldo.c:(.text+0x825): undefined reference to `__stack_chk_fail_local'
ldump.o: In function `DumpHeader':
ldump.c:(.text+0x54a): undefined reference to `__stack_chk_fail_local'
llex.o: In function `luaX_lexerror':
llex.c:(.text+0x31b): undefined reference to `__stack_chk_fail_local'
lobject.o: In function `luaO_pushvfstring':
lobject.c:(.text+0x632): undefined reference to __stack_chk_fail_local' lundump.o: In function LoadHeader':
lundump.c:(.text+0x9a9): undefined reference to `__stack_chk_fail_local' lvm.o:lvm.c:(.text+0x11c): more undefined references to
`__stack_chk_fail_local' follow
collect2: ld returned 1 exit status
make[1]: *** [liblua.so] Error 1
If I select v0.8.X of haserl and separately select the lua option it builds okay, of course then I don't get lua support integrated into haserl. Any suggestions on how I can fix this?
regards
Dear john,
Quoted 5 lines · john
Hi,
I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X with lua support. I select the lua intrepreter and have not selected lua library modules.
You may want to update your Buildroot version, because I think the problem have been fixed:
https://bugs.busybox.net/show_bug.cgi?id=5354
See commit 684f208ec 'lua: don't be fancy when creating shared library'.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Thanks Thomas,
I was just wondering what would be involved in updating the package directory in Buildroot 2012.05 with the latest versions of haserl and lua. Is it simply a matter of lets say copying the relevant package directories for these appsa from buildroot-2012.11.1 into Buildroot 2012.05?
If possible I would like to stay with Buildroot 2012.05 for the immediate future.
regards
Quoted 19 lines · Thomas Petazzoni
Dear john,
Quoted 5 lines · john
Hi,
I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X with lua support. I select the lua intrepreter and have not selected lua library modules.
You may want to update your Buildroot version, because I think the problem have been fixed:
https://bugs.busybox.net/show_bug.cgi?id=5354
See commit
684f208ec'lua: don't be fancy when creating shared library'.Best regards,
Thomas
Dear john,
Quoted 5 lines · john
I was just wondering what would be involved in updating the package directory in Buildroot 2012.05 with the latest versions of haserl and lua. Is it simply a matter of lets say copying the relevant package directories for these appsa from buildroot-2012.11.1 into Buildroot 2012.05?
I think haserl and lua don't have many dependencies, so what you suggest might work. Of course, if there are issues related to some dependencies, you'd have to figure them out and fix them.
That said, instead of moving to new versions of those packages, you can also just as well backport the patch I pointed to (but it may depend on many other patches, since the Lua package has seen quite a number of changes lately).
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com