Last modified: 2013-04-22 16:16:06 UTC
[ Environment ] - FreeBSD 8.1 - Lua 5.1 - LuaJIT 2.0.0 [ Compile log ] /bin/sh /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/libtool --mode=compile cc -I. -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f -DPHP_ATOM_INC -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/include -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/main -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/luajit-2.0 -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c -o luasandbox_lstrlib.lo cc -I. -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f -DPHP_ATOM_INC -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/include -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/main -I/var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/luajit-2.0 -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c -fPIC -DPIC -o .libs/luasandbox_lstrlib.o /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c: In function 'match': /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c:382: error: 'LUAI_MAXCALLS' undeclared (first use in this function) /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c:382: error: (Each undeclared identifier is reported only once /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f/luasandbox_lstrlib.c:382: error: for each function it appears in.) *** Error code 1 Stop in /var/ports/devel/luasandbox/work/wikimedia-mediawiki-php-luasandbox-a8a239f. I let the bug as UNCO, as I'm not sure if the luajit used version is right.
*** This bug has been marked as a duplicate of bug 43819 ***
I'm reopening this bug, as it's not the same issue: Lua 5.1 were installed, as noted in environment in the description. The ./configure script can't guess the path to luaconf.h, which is /usr/local/include/lua51 with the FreeBSD lang/lua port. Furthermore, it doesn't provide an option to specify it, like --with-lua=/usr/local/include/lua51 /usr/local/include/lua51 ] grep -r LUAI_MAXCALLS * luaconf.h:@@ LUAI_MAXCALLS limits the number of nested calls. luaconf.h:#define LUAI_MAXCALLS 20000
Priority raised down to MAJOR as a workaround exists: add -I/path/to/luaOrLua51 in compilation flags.
It seems there were actually two bugs involved here: that the lua library was not being detected on FreeBSD, and that building with luajit didn't actually work. The latter bit was already fixed by Gerrit change #46660 (and additional issues with running under luajit are covered by bug 44223). The former is handled by Gerrit change #52882.
(In reply to comment #4) > (and additional issues with running under luajit are covered by bug 44223) Correction, that's freebsd issues with using normal Lua. Luajit has its own issues.
(In reply to comment #5) > (In reply to comment #4) > > (and additional issues with running under luajit are covered by bug 44223) > > Correction, that's freebsd issues with using normal Lua. Luajit has its own > issues. Correction again, I have no idea what's going on in bug 44223.
Gerrit change #52882 is merged, so this bug should be fixed now.