On 18 August 2015 at 06:13, John Kitzmiller <k...@inradius.net> wrote: > When installing lbc using luarocks, > > Johns-MacBook-Air:~ johnkitzmiller$ luarocks install lbc > > I get this complaint: > > Installing https://rocks.moonscript.org/lbc-20120430-1.src.rock... > Using https://rocks.moonscript.org/lbc-20120430-1.src.rock... switching to > 'build' mode > export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC > -I/usr/local/opt/lua/include -c lbc.c -o lbc.o -I. > lbc.c:312:2: warning: implicit declaration of function 'luaL_register' is > invalid in C99 [-Wimplicit-function-declaration] > luaL_register(L,MYNAME,R); > ^ > 1 warning generated. > export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC > -I/usr/local/opt/lua/include -c number.c -o number.o -I. > export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup > -all_load -o bc.so -L/usr/local/opt/lua/lib lbc.o number.o > Updating manifest for /usr/local/lib/luarocks/rocks > lbc 20120430-1 is now built and installed in /usr/local (license: GNU > General Public License version 2 or later) > > And then when running the test file: > > Johns-MacBook-Air:bc johnkitzmiller$ lua test.lua > > I get this failure: > > lua: error loading module 'bc' from file '/usr/local/lib/lua/5.2/bc.so': > dlopen(/usr/local/lib/lua/5.2/bc.so, 6): Symbol not found: _luaL_register > Referenced from: /usr/local/lib/lua/5.2/bc.so > Expected in: dynamic lookup > > stack traceback: > [C]: in ? > [C]: in function 'require' > test.lua:3: in main chunk > [C]: in ? > > (I am out of my depth and do not understand either problem :-) > > Downloading from http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc , > make, and copy bc.so to usr/local/lib/lua/5.2 works as expected. > > Thanks, > John
Indeed, I get the same errors when using the lbc rock for lua 5.2 or 5.3. It appears that the rockspec has been marked as working with 5.1 or newer, when it only works with lua 5.1. As the package is owned by the 'luarocks' user, hopefully Hisham can fix it? ------------------------------------------------------------------------------ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers