Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on ArchLinux #143

Closed
VOID001 opened this issue Jun 20, 2016 · 4 comments
Closed

Cannot compile on ArchLinux #143

VOID001 opened this issue Jun 20, 2016 · 4 comments

Comments

@VOID001
Copy link

VOID001 commented Jun 20, 2016

Linux 4.6.2-1-ARCH
gcc (GCC) 6.1.1 20160602

Compile failed

/tmp/lua_sandbox/src/luasandbox_modules.c:64:30: error: array type has incomplete element type ‘struct luaL_reg’
 static const struct luaL_reg hashlib_f[] =
                              ^~~~~~~~~
/tmp/lua_sandbox/src/luasandbox_modules.c: In function ‘luaopen_lsb_hash’:
/tmp/lua_sandbox/src/luasandbox_modules.c:75:3: error: implicit declaration of function ‘luaL_register’ [-Werror=implicit-
function-declaration]
@trink
Copy link
Contributor

trink commented Jun 20, 2016

Thanks, fixed the include path. Please try this branch https://github.com/mozilla-services/lua_sandbox/tree/issue_143

@VOID001
Copy link
Author

VOID001 commented Jun 20, 2016

Hi, I tried the patch, it can skip the previous error but still cannot pass the compile, And I found I have lua5.3 lua5.2 lua5.1 together in my OS, is this ther reason of the Compilation Failed? Detailed log is pasted in gist: https://gist.github.com/VOID001/a0302011c8ca3340c13a19f895f0f79e

@trink
Copy link
Contributor

trink commented Jun 20, 2016

No, it has to do with the new luasec external packages being pulled in. Looks like it will need to be patched (or reverted).

@trink
Copy link
Contributor

trink commented Jul 12, 2016

The external packages have been moved out to https://github.com/mozilla-services/lua_sandbox_extensions

@trink trink closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants