Last modified: 2013-04-22 16:16:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46221, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44221 - mediawiki-php-luasandbox can't find luaconf.h in headers
mediawiki-php-luasandbox can't find luaconf.h in headers
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
master
All All
: High major (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 20:47 UTC by Dereckson
Modified: 2013-04-22 16:16 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dereckson 2013-01-21 20:47:54 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.
Comment 1 Dereckson 2013-01-21 20:50:15 UTC

*** This bug has been marked as a duplicate of bug 43819 ***
Comment 2 Dereckson 2013-01-21 21:02:43 UTC
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
Comment 3 Dereckson 2013-01-21 21:04:31 UTC
Priority raised down to MAJOR as a workaround exists: add -I/path/to/luaOrLua51 in compilation flags.
Comment 4 Brad Jorsch 2013-03-08 18:58:48 UTC
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.
Comment 5 Brad Jorsch 2013-03-08 19:36:58 UTC
(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.
Comment 6 Brad Jorsch 2013-03-08 20:01:08 UTC
(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.
Comment 7 Brad Jorsch 2013-03-12 23:55:46 UTC
Gerrit change #52882 is merged, so this bug should be fixed now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links