-
Notifications
You must be signed in to change notification settings - Fork 70
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
I cannot compile it in fedora 20 #32
Comments
I think this is my bug. I does not check compat flags. #ifndef LUA_COMPAT_MODULE
static void luaL_register ....
#endif
#ifndef LUA_COMPAT_ALL
#define lua_objlen lua_rawlen
#endif Or just remove this defenitions. |
I am success by luarocks . thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT lcrypto.lo -MD -MP -MF .deps/lcrypto.Tpo -c -o lcrypto.lo lcrypto.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT lcrypto.lo -MD -MP -MF .deps/lcrypto.Tpo -c lcrypto.c -fPIC -DPIC -o .libs/lcrypto.o
In file included from lcrypto.c:31:0:
lcrypto.c:38:13: error: expected declaration specifiers or '...' before '(' token
static void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l)
^
lcrypto.c:38:13: error: expected declaration specifiers or '...' before '(' token
static void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l)
^
lcrypto.c:38:13: error: expected declaration specifiers or '...' before numeric constant
static void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l)
^
lcrypto.c:44:0: warning: "lua_objlen" redefined [enabled by default]
#define lua_objlen lua_rawlen
^
In file included from /usr/include/lua.h:16:0,
from lcrypto.c:30:
/usr/include/luaconf.h:301:0: note: this is the location of the previous definition
#define lua_objlen(L,i) lua_rawlen(L, (i))
The text was updated successfully, but these errors were encountered: