The build took 00h 00m 40s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
| SLOC | Language |
|---|---|
14,632 |
ansic |
207 |
makefile |
14,839 |
total |
The process tree of the build process is here.
Several sub-process invocations were improper; see the process tree for details. Summary:
To avoid scrolling, you may jump to the last line of the
invocation of makepkg that was used to build this
package.
Removed vanilla repositories from pacman.conf and added:
Copied permanent toolchain into container-local sysroot
/toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi/toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB/toolchain_root/sysroot --> /sysroot/sysroot/toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME/toolchain_root/lib --> /sysroot/lib/toolchain_root/SOURCES --> /sysroot/SOURCES/toolchain_root/lib64 --> /sysroot/lib64/toolchain_root/share --> /sysroot/share/toolchain_root/bin --> /sysroot/bin/toolchain_root/COPYING --> /sysroot/COPYING/toolchain_root/COPYING3 --> /sysroot/COPYING3/toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB/toolchain_root/include --> /sysroot/include/toolchain_root/libexec --> /sysroot/libexecCMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
==> Making package: lua52 5.2.4-1 (Tue Apr 4 22:03:13 UTC 2017)==> Checking runtime dependencies...==> Checking buildtime dependencies...==> WARNING: Using existing $srcdir/ tree==> Starting build()...cd src && make linuxmake[1]: Entering directory '/tmp/lua52/src/lua-5.2.4/src'make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"make[2]: Entering directory '/tmp/lua52/src/lua-5.2.4/src'gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -fPIC -c -o lapi.o lapi.cgcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -fPIC -c -o lcode.o lcode.cgcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -fPIC -c -o lctype.o lctype.cgcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -fPIC -c -o ldebug.o ldebug.ccc1: error: no include path in which to search for stdc-predef.hlcode.c:8:20: error: no include path in which to search for stdlib.h #include ^In file included from lcode.c:13:0:lua.h:12:20: error: no include path in which to search for stdarg.h #include ^lua.h:13:20: error: no include path in which to search for stddef.h #include ^In file included from lua.h:16:0, from lcode.c:13:luaconf.h:11:20: error: no include path in which to search for limits.h #include ^luaconf.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from lcode.c:13:0:lua.h:62:61: error: unknown type name 'size_t' typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); ^lua.h:64:57: error: unknown type name 'size_t' typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); ^lua.h:70:51: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:70:65: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:107:1: error: unknown type name 'ptrdiff_t' typedef LUA_INTEGER lua_Integer; ^lua.h:131:36: error: unknown type name 'lua_Alloc' LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); ^lua.h:172:65: error: unknown type name 'size_t' LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); ^lua.h:173:9: warning: type defaults to 'int' in declaration of 'size_t' [-Wimplicit-int] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:173:9: error: 'size_t' declared as function returning a functionlua.h:173:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:209:69: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); ^lua.h:212:55: error: unknown type name 'va_list' va_list argp); ^lua.h:230:48: error: expected declaration specifiers or '...' before 'size_t' LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); ^lua.h:261:41: error: unknown type name 'lua_Reader' LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, ^lua.h:265:39: error: unknown type name 'lua_Writer' LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); ^lua.h:308:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [-Wimplicit-int] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:308:9: error: 'lua_Alloc' declared as function returning a functionlua.h:308:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:309:50: error: expected declaration specifiers or '...' before 'lua_Alloc' LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); ^In file included from llex.h:10:0, from lcode.h:10, from lcode.c:15:lobject.h:12:20: error: no include path in which to search for stdarg.h #include ^In file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:llimits.h:11:20: error: no include path in which to search for limits.h #include ^llimits.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from llex.h:10:0, from lcode.h:10, from lcode.c:15:lobject.h:416:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of characters in string */ ^lobject.h:437:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of bytes */ ^lobject.h:598:42: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); ^lobject.h:601:56: error: unknown type name 'va_list' va_list argp); ^lobject.h:603:61: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); ^In file included from lzio.h:13:0, from llex.h:11, from lcode.h:10, from lcode.c:15:lmem.h:11:20: error: no include path in which to search for stddef.h #include ^lmem.h:50:59: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, ^lmem.h:51:59: error: expected declaration specifiers or '...' before 'size_t' size_t size); ^lmem.h:53:32: error: expected declaration specifiers or '...' before 'size_t' size_t size_elem, int limit, ^In file included from llex.h:11:0, from lcode.h:10, from lcode.c:15:lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t' size_t n; ^lzio.h:45:62: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); ^lzio.h:46:49: error: unknown type name 'lua_Reader' LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, ^lzio.h:48:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaZ_read' LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ ^lzio.h:55:3: error: expected specifier-qualifier-list before 'size_t' size_t n; /* bytes still unread */ ^In file included from lcode.h:10:0, from lcode.c:15:llex.h:71:67: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l); ^In file included from ldebug.h:11:0, from lcode.c:16:lstate.h:75:3: error: unknown type name 'ptrdiff_t' ptrdiff_t extra; ^lstate.h:84:7: error: unknown type name 'ptrdiff_t' ptrdiff_t old_errfunc; ^lstate.h:113:3: error: expected specifier-qualifier-list before 'lua_Alloc' lua_Alloc frealloc; /* function to reallocate memory */ ^lstate.h:174:3: error: unknown type name 'ptrdiff_t' ptrdiff_t errfunc; /* current error handling function (stack index) */ ^In file included from lcode.c:17:0:ldo.h:36:41: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^ldo.h:36:59: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^cc1: error: no include path in which to search for stdc-predef.hIn file included from lcode.c:18:0:lgc.h:148:56: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, ^In file included from lcode.c:24:0:lstring.h:37:52: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); ^lstring.h:41:47: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); ^lapi.c:8:20: error: no include path in which to search for stdarg.h #include ^lstring.h:42:65: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); ^lapi.c:9:20: error: no include path in which to search for string.h #include ^In file included from lapi.c:14:0:lua.h:12:20: error: no include path in which to search for stdarg.h #include ^lua.h:13:20: error: no include path in which to search for stddef.h #include ^In file included from lua.h:16:0, from lapi.c:14:luaconf.h:11:20: error: no include path in which to search for limits.h #include ^luaconf.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from lapi.c:14:0:lua.h:62:61: error: unknown type name 'size_t' typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); ^lua.h:64:57: error: unknown type name 'size_t' typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); ^lua.h:70:51: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:70:65: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:107:1: error: unknown type name 'ptrdiff_t' typedef LUA_INTEGER lua_Integer; ^lua.h:131:36: error: unknown type name 'lua_Alloc' LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); ^In file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:lcode.c: In function 'luaK_jump':llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:64:27: note: in expansion of macro 'MAX_INT' #define MAXARG_sBx MAX_INT ^lcode.h:41:61: note: in expansion of macro 'MAXARG_sBx' #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) ^lcode.c:63:7: note: in expansion of macro 'luaK_codeAsBx' j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); ^llimits.h:37:18: note: each undeclared identifier is reported only once for each function it appears in #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:64:27: note: in expansion of macro 'MAX_INT' #define MAXARG_sBx MAX_INT ^lcode.h:41:61: note: in expansion of macro 'MAXARG_sBx' #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) ^lcode.c:63:7: note: in expansion of macro 'luaK_codeAsBx' j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); ^lua.h:172:65: error: unknown type name 'size_t' LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); ^lcode.c: In function 'fixjump':lcode.c:84:3: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] if (abs(offset) > MAXARG_sBx) ^lua.h:173:9: warning: type defaults to 'int' in declaration of 'size_t' [-Wimplicit-int] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:173:9: error: 'size_t' declared as function returning a functionIn file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:64:27: note: in expansion of macro 'MAX_INT' #define MAXARG_sBx MAX_INT ^lcode.c:84:21: note: in expansion of macro 'MAXARG_sBx' if (abs(offset) > MAXARG_sBx) ^lua.h:173:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:209:69: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); ^lcode.c: In function 'getjump':lua.h:212:55: error: unknown type name 'va_list' va_list argp); ^llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:64:27: note: in expansion of macro 'MAX_INT' #define MAXARG_sBx MAX_INT ^lopcodes.h:112:37: note: in expansion of macro 'MAXARG_sBx' #define GETARG_sBx(i) (GETARG_Bx(i)-MAXARG_sBx) ^lcode.c:101:16: note: in expansion of macro 'GETARG_sBx' int offset = GETARG_sBx(fs->f->code[pc]); ^lua.h:230:48: error: expected declaration specifiers or '...' before 'size_t' LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); ^lua.h:261:41: error: unknown type name 'lua_Reader' LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, ^lua.h:265:39: error: unknown type name 'lua_Writer' LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); ^lua.h:308:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [-Wimplicit-int] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:308:9: error: 'lua_Alloc' declared as function returning a functionlua.h:308:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:309:50: error: expected declaration specifiers or '...' before 'lua_Alloc' LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); ^lcode.c: In function 'luaK_code':lcode.c:216:3: warning: implicit declaration of function 'luaM_growaux_' [-Wimplicit-function-declaration] luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, ^In file included from lapi.h:11:0, from lapi.c:16:llimits.h:11:20: error: no include path in which to search for limits.h #include ^llimits.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lcode.c:216:3: note: in expansion of macro 'luaM_growvector' luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, ^lcode.c:217:19: note: in expansion of macro 'MAX_INT' MAX_INT, "opcodes"); ^In file included from lstate.h:12:0, from lapi.h:12, from lapi.c:16:lobject.h:12:20: error: no include path in which to search for stdarg.h #include ^lcode.c: In function 'luaK_codek':llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:63:26: note: in expansion of macro 'MAX_INT' #define MAXARG_Bx MAX_INT ^lcode.c:251:12: note: in expansion of macro 'MAXARG_Bx' if (k <= MAXARG_Bx) ^In file included from lcode.c:26:0:lcode.c: In function 'addk':lobject.h:416:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of characters in string */ ^lvm.h:22:43: error: 'NULL' undeclared (first use in this function) #define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2) ^lvm.h:20:65: note: in definition of macro 'equalobj' #define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2)) ^lcode.c:299:9: note: in expansion of macro 'luaV_rawequalobj' if (luaV_rawequalobj(&f->k[k], v)) ^lobject.h:437:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of bytes */ ^In file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lcode.c:310:3: note: in expansion of macro 'luaM_growvector' luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants"); ^lopcodes.h:70:19: note: in expansion of macro 'MAX_INT' #define MAXARG_Ax MAX_INT ^lcode.c:310:49: note: in expansion of macro 'MAXARG_Ax' luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants"); ^cc1: error: no include path in which to search for stdc-predef.hlobject.h:598:42: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); ^In file included from lctype.h:10:0, from lctype.c:10:lua.h:12:20: error: no include path in which to search for stdarg.h #include ^lua.h:13:20: error: no include path in which to search for stddef.h #include ^lcode.c: In function 'luaK_numberK':In file included from lua.h:16:0, from lctype.h:10, from lctype.c:10:luaconf.h:11:20: error: no include path in which to search for limits.h #include ^lobject.h:601:56: error: unknown type name 'va_list' va_list argp); ^lcode.c:333:5: warning: implicit declaration of function 'luaS_newlstr' [-Wimplicit-function-declaration] setsvalue(L, L->top++, luaS_newlstr(L, (char *)&r, sizeof(r))); ^luaconf.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from llex.h:10:0, from lcode.h:10, from lcode.c:15:lobject.h:207:19: warning: initialization makes pointer from integer without a cast [enabled by default] TString *x_ = (x); \ ^lcode.c:333:5: note: in expansion of macro 'setsvalue' setsvalue(L, L->top++, luaS_newlstr(L, (char *)&r, sizeof(r))); ^lobject.h:603:61: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); ^In file included from lzio.h:13:0, from lstate.h:14, from lapi.h:12, from lapi.c:16:lmem.h:11:20: error: no include path in which to search for stddef.h #include ^In file included from lctype.h:10:0, from lctype.c:10:lua.h:62:61: error: unknown type name 'size_t' typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); ^lua.h:64:57: error: unknown type name 'size_t' typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); ^lmem.h:50:59: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, ^lua.h:70:51: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:70:65: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lmem.h:51:59: error: expected declaration specifiers or '...' before 'size_t' size_t size); ^lmem.h:53:32: error: expected declaration specifiers or '...' before 'size_t' size_t size_elem, int limit, ^lua.h:107:1: error: unknown type name 'ptrdiff_t' typedef LUA_INTEGER lua_Integer; ^In file included from lstate.h:14:0, from lapi.h:12, from lapi.c:16:lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t' size_t n; ^lua.h:131:36: error: unknown type name 'lua_Alloc' LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); ^lzio.h:45:62: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); ^lzio.h:46:49: error: unknown type name 'lua_Reader' LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, ^lzio.h:48:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaZ_read' LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ ^lzio.h:55:3: error: expected specifier-qualifier-list before 'size_t' size_t n; /* bytes still unread */ ^lua.h:172:65: error: unknown type name 'size_t' LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); ^In file included from lapi.h:12:0, from lapi.c:16:lstate.h:75:3: error: unknown type name 'ptrdiff_t' ptrdiff_t extra; ^lua.h:173:9: warning: type defaults to 'int' in declaration of 'size_t' [-Wimplicit-int] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:173:9: error: 'size_t' declared as function returning a functionlstate.h:84:7: error: unknown type name 'ptrdiff_t' ptrdiff_t old_errfunc; ^lua.h:173:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lstate.h:113:3: error: expected specifier-qualifier-list before 'lua_Alloc' lua_Alloc frealloc; /* function to reallocate memory */ ^lua.h:209:69: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); ^lstate.h:174:3: error: unknown type name 'ptrdiff_t' ptrdiff_t errfunc; /* current error handling function (stack index) */ ^lua.h:212:55: error: unknown type name 'va_list' va_list argp); ^lua.h:230:48: error: expected declaration specifiers or '...' before 'size_t' LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); ^lua.h:261:41: error: unknown type name 'lua_Reader' LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, ^lua.h:265:39: error: unknown type name 'lua_Writer' LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); ^lua.h:308:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [-Wimplicit-int] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:308:9: error: 'lua_Alloc' declared as function returning a functionlua.h:308:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:309:50: error: expected declaration specifiers or '...' before 'lua_Alloc' LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); ^In file included from lctype.c:10:0:lctype.h:34:20: error: no include path in which to search for limits.h #include ^In file included from lctype.h:36:0, from lctype.c:10:llimits.h:11:20: error: no include path in which to search for limits.h #include ^llimits.h:12:20: error: no include path in which to search for stddef.h #include ^In file included from lctype.c:10:0:lctype.h:71:37: error: 'UCHAR_MAX' undeclared here (not in a function) LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2]; ^lctype.c:14:20: error: no include path in which to search for limits.h #include ^In file included from lobject.h:15:0, from llex.h:10, from lcode.h:10, from lcode.c:15:lcode.c: In function 'luaK_setlist':llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:70:19: note: in expansion of macro 'MAX_INT' #define MAXARG_Ax MAX_INT ^lcode.c:873:17: note: in expansion of macro 'MAXARG_Ax' else if (c <= MAXARG_Ax) { ^In file included from lapi.c:18:0:ldo.h:36:41: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^ldo.h:36:59: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^make[2]: *** [: lctype.o] Error 1 make[2]: *** Waiting for unfinished jobs....lcode.c: In function 'luaK_codek':In file included from lapi.c:20:0:lgc.h:148:56: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, ^In file included from lapi.c:24:0:lstring.h:37:52: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); ^lcode.c:258:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lstring.h:41:47: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); ^lstring.h:42:65: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); ^In file included from lapi.c:27:0:lundump.h:20:56: error: unknown type name 'lua_Writer' LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); ^lapi.c: In function 'index2addr':lapi.c:68:17: error: 'global_State' has no member named 'l_registry' return &G(L)->l_registry; ^lapi.c: In function 'lua_atpanic':lapi.c:130:13: error: 'global_State' has no member named 'panic' old = G(L)->panic; ^lapi.c:131:7: error: 'global_State' has no member named 'panic' G(L)->panic = panicf; ^lapi.c: In function 'lua_version':lapi.c:139:12: error: 'NULL' undeclared (first use in this function) if (L == NULL) return &version; ^lapi.c:139:12: note: each undeclared identifier is reported only once for each function it appears inlapi.c:140:19: error: 'global_State' has no member named 'version' else return G(L)->version; ^In file included from lapi.c:28:0:lapi.c: In function 'lua_isnumber':lvm.h:18:72: error: 'NULL' undeclared (first use in this function) #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) ^lapi.c:270:10: note: in expansion of macro 'tonumber' return tonumber(o, &n); ^lapi.c: In function 'lua_rawequal':lvm.h:22:43: error: 'NULL' undeclared (first use in this function) #define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2) ^lvm.h:20:65: note: in definition of macro 'equalobj' #define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2)) ^lapi.c:289:41: note: in expansion of macro 'luaV_rawequalobj' return (isvalid(o1) && isvalid(o2)) ? luaV_rawequalobj(o1, o2) : 0; ^lapi.c: In function 'lua_tonumberx':lvm.h:18:72: error: 'NULL' undeclared (first use in this function) #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) ^lapi.c:338:7: note: in expansion of macro 'tonumber' if (tonumber(o, &n)) { ^lapi.c: In function 'lua_tointegerx':lvm.h:18:72: error: 'NULL' undeclared (first use in this function) #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) ^lapi.c:352:7: note: in expansion of macro 'tonumber' if (tonumber(o, &n)) { ^lapi.c: In function 'lua_tounsignedx':lvm.h:18:72: error: 'NULL' undeclared (first use in this function) #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) ^lapi.c:369:7: note: in expansion of macro 'tonumber' if (tonumber(o, &n)) { ^lapi.c: At top level:lapi.c:389:59: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { ^lapi.c:407:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_rawlen' LUA_API size_t lua_rawlen (lua_State *L, int idx) { ^lapi.c: In function 'lua_tocfunction':lapi.c:423:15: error: 'NULL' undeclared (first use in this function) else return NULL; /* not a C function */ ^lapi.c: In function 'lua_touserdata':lapi.c:432:21: error: 'NULL' undeclared (first use in this function) default: return NULL; ^lapi.c: In function 'lua_tothread':lapi.c:439:29: error: 'NULL' undeclared (first use in this function) return (!ttisthread(o)) ? NULL : thvalue(o); ^lapi.c: In function 'lua_topointer':lapi.c:454:21: error: 'NULL' undeclared (first use in this function) default: return NULL; ^In file included from lapi.h:11:0, from lapi.c:16:lapi.c: In function 'lua_pushunsigned':llimits.h:274:28: error: 'INT_MAX' undeclared (first use in this function) (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u)) ^lapi.c:494:7: note: in expansion of macro 'lua_unsigned2number' n = lua_unsigned2number(u); ^make[2]: *** [: lcode.o] Error 1 lapi.c: At top level:lapi.c:501:67: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) { ^lapi.c: In function 'lua_pushstring':lapi.c:514:12: error: 'NULL' undeclared (first use in this function) if (s == NULL) { ^In file included from lapi.c:20:0:lgc.h:123:11: error: 'global_State' has no member named 'GCdebt' {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} ^lgc.h:124:26: note: in expansion of macro 'luaC_condGC' #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) ^lapi.c:521:5: note: in expansion of macro 'luaC_checkGC' luaC_checkGC(L); ^lapi.c: At top level:lapi.c:532:39: error: unknown type name 'va_list' va_list argp) { ^lapi.c: In function 'lua_pushfstring':lapi.c:544:3: error: unknown type name 'va_list' va_list argp; ^In file included from lapi.c:20:0:lgc.h:123:11: error: 'global_State' has no member named 'GCdebt' {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} ^lgc.h:124:26: note: in expansion of macro 'luaC_condGC' #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) ^lapi.c:546:3: note: in expansion of macro 'luaC_checkGC' luaC_checkGC(L); ^lapi.c:547:3: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration] va_start(argp, fmt); ^lapi.c:548:3: warning: implicit declaration of function 'luaO_pushvfstring' [-Wimplicit-function-declaration] ret = luaO_pushvfstring(L, fmt, argp); ^lapi.c:548:7: warning: assignment makes pointer from integer without a cast [enabled by default] ret = luaO_pushvfstring(L, fmt, argp); ^lapi.c:549:3: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration] va_end(argp); ^In file included from lapi.c:20:0:lapi.c: In function 'lua_pushcclosure':lgc.h:123:11: error: 'global_State' has no member named 'GCdebt' {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} ^lgc.h:124:26: note: in expansion of macro 'luaC_condGC' #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) ^lapi.c:564:5: note: in expansion of macro 'luaC_checkGC' luaC_checkGC(L); ^lapi.c: In function 'lua_pushthread':lapi.c:598:15: error: 'global_State' has no member named 'mainthread' return (G(L)->mainthread == L); ^In file included from lapi.h:11:0, from lapi.c:16:lapi.c: In function 'lua_getglobal':lapi.c:609:28: error: 'global_State' has no member named 'l_registry' Table *reg = hvalue(&G(L)->l_registry); ^llimits.h:67:26: note: in definition of macro 'check_exp' #define check_exp(c,e) (e) ^lobject.h:164:44: note: in expansion of macro 'val_' #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h) ^lapi.c:609:16: note: in expansion of macro 'hvalue' Table *reg = hvalue(&G(L)->l_registry); ^In file included from lapi.c:20:0:lapi.c: In function 'lua_createtable':lgc.h:123:11: error: 'global_State' has no member named 'GCdebt' {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} ^lgc.h:124:26: note: in expansion of macro 'luaC_condGC' #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) ^lapi.c:676:3: note: in expansion of macro 'luaC_checkGC' luaC_checkGC(L); ^lapi.c: In function 'lua_getmetatable':lapi.c:688:15: error: 'NULL' undeclared (first use in this function) Table *mt = NULL; ^lapi.c:700:16: error: 'global_State' has no member named 'mt' mt = G(L)->mt[ttypenv(obj)]; ^In file included from lapi.h:11:0, from lapi.c:16:lapi.c: In function 'lua_setglobal':lapi.c:735:28: error: 'global_State' has no member named 'l_registry' Table *reg = hvalue(&G(L)->l_registry); ^llimits.h:67:26: note: in definition of macro 'check_exp' #define check_exp(c,e) (e) ^lobject.h:164:44: note: in expansion of macro 'val_' #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h) ^lapi.c:735:16: note: in expansion of macro 'hvalue' Table *reg = hvalue(&G(L)->l_registry); ^lapi.c: In function 'lua_setmetatable':lapi.c:819:10: error: 'NULL' undeclared (first use in this function) mt = NULL; ^lapi.c:842:11: error: 'global_State' has no member named 'mt' G(L)->mt[ttypenv(obj)] = mt; ^lapi.c: In function 'lua_setuservalue':lapi.c:859:22: error: 'NULL' undeclared (first use in this function) uvalue(o)->env = NULL; ^cc1: error: no include path in which to search for stdc-predef.hldebug.c:8:20: error: no include path in which to search for stdarg.h #include ^ldebug.c:9:20: error: no include path in which to search for stddef.h #include ^ldebug.c:10:20: error: no include path in which to search for string.h #include ^In file included from ldebug.c:16:0:lua.h:12:20: error: no include path in which to search for stdarg.h #include ^lua.h:13:20: error: no include path in which to search for stddef.h #include ^lapi.c: In function 'lua_callk':In file included from lua.h:16:0, from ldebug.c:16:luaconf.h:11:20: error: no include path in which to search for limits.h #include ^luaconf.h:12:20: error: no include path in which to search for stddef.h #include ^lapi.c:899:12: error: 'NULL' undeclared (first use in this function) if (k != NULL && L->nny == 0) { /* need to prepare continuation? */ ^lapi.c: In function 'lua_pcallk':lapi.c:932:3: error: unknown type name 'ptrdiff_t' ptrdiff_t func; ^In file included from ldebug.c:16:0:lua.h:62:61: error: unknown type name 'size_t' typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); ^lua.h:64:57: error: unknown type name 'size_t' typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); ^lua.h:70:51: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lapi.c:947:12: error: 'NULL' undeclared (first use in this function) if (k == NULL || L->nny > 0) { /* no continuation or no yieldable? */ ^lua.h:70:65: error: unknown type name 'size_t' typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); ^lua.h:107:1: error: unknown type name 'ptrdiff_t' typedef LUA_INTEGER lua_Integer; ^lapi.c:949:5: warning: implicit declaration of function 'luaD_pcall' [-Wimplicit-function-declaration] status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func); ^lua.h:131:36: error: unknown type name 'lua_Alloc' LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); ^lapi.c: At top level:lapi.c:973:37: error: unknown type name 'lua_Reader' LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, ^lua.h:172:65: error: unknown type name 'size_t' LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); ^lua.h:173:9: warning: type defaults to 'int' in declaration of 'size_t' [-Wimplicit-int] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lua.h:173:9: error: 'size_t' declared as function returning a functionlua.h:173:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API size_t (lua_rawlen) (lua_State *L, int idx); ^lapi.c:997:37: error: unknown type name 'lua_Writer' LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { ^lua.h:209:69: error: expected declaration specifiers or '...' before 'size_t' LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); ^lapi.c: In function 'lua_gc':lua.h:212:55: error: unknown type name 'va_list' va_list argp); ^lapi.c:1028:8: error: 'global_State' has no member named 'gcrunning' g->gcrunning = 0; ^lapi.c:1033:8: error: 'global_State' has no member named 'gcrunning' g->gcrunning = 1; ^lua.h:230:48: error: expected declaration specifiers or '...' before 'size_t' LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); ^In file included from lapi.h:11:0, from lapi.c:16:lstate.h:219:30: error: 'global_State' has no member named 'totalbytes' #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lapi.c:1042:13: note: in expansion of macro 'cast_int' res = cast_int(gettotalbytes(g) >> 10); ^lapi.c:1042:22: note: in expansion of macro 'gettotalbytes' res = cast_int(gettotalbytes(g) >> 10); ^lua.h:261:41: error: unknown type name 'lua_Reader' LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, ^lua.h:265:39: error: unknown type name 'lua_Writer' LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); ^lstate.h:219:48: error: 'global_State' has no member named 'GCdebt' #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lapi.c:1042:13: note: in expansion of macro 'cast_int' res = cast_int(gettotalbytes(g) >> 10); ^lapi.c:1042:22: note: in expansion of macro 'gettotalbytes' res = cast_int(gettotalbytes(g) >> 10); ^lua.h:308:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [-Wimplicit-int] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:308:9: error: 'lua_Alloc' declared as function returning a functionlua.h:308:1: warning: parameter names (without types) in function declaration [enabled by default] LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); ^lua.h:309:50: error: expected declaration specifiers or '...' before 'lua_Alloc' LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); ^lstate.h:219:30: error: 'global_State' has no member named 'totalbytes' #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lapi.c:1046:13: note: in expansion of macro 'cast_int' res = cast_int(gettotalbytes(g) & 0x3ff); ^lapi.c:1046:22: note: in expansion of macro 'gettotalbytes' res = cast_int(gettotalbytes(g) & 0x3ff); ^lstate.h:219:48: error: 'global_State' has no member named 'GCdebt' #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^lapi.c:1046:13: note: in expansion of macro 'cast_int' res = cast_int(gettotalbytes(g) & 0x3ff); ^lapi.c:1046:22: note: in expansion of macro 'gettotalbytes' res = cast_int(gettotalbytes(g) & 0x3ff); ^In file included from lapi.h:11:0, from ldebug.c:18:llimits.h:11:20: error: no include path in which to search for limits.h #include ^lapi.c:1050:12: error: 'global_State' has no member named 'gckind' if (g->gckind == KGC_GEN) { /* generational mode? */ ^llimits.h:12:20: error: no include path in which to search for stddef.h #include ^lapi.c:1051:17: error: 'global_State' has no member named 'GCestimate' res = (g->GCestimate == 0); /* true if it will do major collection */ ^In file included from lstate.h:12:0, from lapi.h:12, from ldebug.c:18:lobject.h:12:20: error: no include path in which to search for stdarg.h #include ^lapi.c:1056:13: error: 'global_State' has no member named 'gcrunning' if (g->gcrunning) ^lapi.c:1057:19: error: 'global_State' has no member named 'GCdebt' debt += g->GCdebt; /* include current debt */ ^lapi.c:1060:13: error: 'global_State' has no member named 'gcstate' if (g->gcstate == GCSpause) /* end of cycle? */ ^lapi.c:1066:14: error: 'global_State' has no member named 'gcpause' res = g->gcpause; ^lobject.h:416:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of characters in string */ ^lapi.c:1067:8: error: 'global_State' has no member named 'gcpause' g->gcpause = data; ^lapi.c:1071:14: error: 'global_State' has no member named 'gcmajorinc' res = g->gcmajorinc; ^lobject.h:437:5: error: expected specifier-qualifier-list before 'size_t' size_t len; /* number of bytes */ ^lapi.c:1072:8: error: 'global_State' has no member named 'gcmajorinc' g->gcmajorinc = data; ^lapi.c:1076:14: error: 'global_State' has no member named 'gcstepmul' res = g->gcstepmul; ^lapi.c:1077:8: error: 'global_State' has no member named 'gcstepmul' g->gcstepmul = data; ^lapi.c:1081:14: error: 'global_State' has no member named 'gcrunning' res = g->gcrunning; ^lobject.h:598:42: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); ^lobject.h:601:56: error: unknown type name 'va_list' va_list argp); ^In file included from lapi.c:20:0:lapi.c: In function 'lua_concat':lobject.h:603:61: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); ^lgc.h:123:11: error: 'global_State' has no member named 'GCdebt' {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} ^lgc.h:124:26: note: in expansion of macro 'luaC_condGC' #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) ^lapi.c:1135:5: note: in expansion of macro 'luaC_checkGC' luaC_checkGC(L); ^lapi.c:1139:5: warning: implicit declaration of function 'luaS_newlstr' [-Wimplicit-function-declaration] setsvalue2s(L, L->top, luaS_newlstr(L, "", 0)); ^In file included from lzio.h:13:0, from lstate.h:14, from lapi.h:12, from ldebug.c:18:lmem.h:11:20: error: no include path in which to search for stddef.h #include ^In file included from lstate.h:12:0, from lapi.h:12, from lapi.c:16:lobject.h:207:19: warning: initialization makes pointer from integer without a cast [enabled by default] TString *x_ = (x); \ ^lobject.h:254:21: note: in expansion of macro 'setsvalue' #define setsvalue2s setsvalue ^lapi.c:1139:5: note: in expansion of macro 'setsvalue2s' setsvalue2s(L, L->top, luaS_newlstr(L, "", 0)); ^lmem.h:50:59: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, ^lmem.h:51:59: error: expected declaration specifiers or '...' before 'size_t' size_t size); ^lmem.h:53:32: error: expected declaration specifiers or '...' before 'size_t' size_t size_elem, int limit, ^lapi.c: At top level:In file included from lstate.h:14:0, from lapi.h:12, from ldebug.c:18:lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t' size_t n; ^lzio.h:45:62: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); ^lzio.h:46:49: error: unknown type name 'lua_Reader' LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, ^lapi.c:1157:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_getallocf' LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) { ^lzio.h:48:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaZ_read' LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ ^lzio.h:55:3: error: expected specifier-qualifier-list before 'size_t' size_t n; /* bytes still unread */ ^lapi.c:1167:43: error: expected declaration specifiers or '...' before 'lua_Alloc' LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) { ^In file included from lapi.h:12:0, from ldebug.c:18:lstate.h:75:3: error: unknown type name 'ptrdiff_t' ptrdiff_t extra; ^lstate.h:84:7: error: unknown type name 'ptrdiff_t' ptrdiff_t old_errfunc; ^lstate.h:113:3: error: expected specifier-qualifier-list before 'lua_Alloc' lua_Alloc frealloc; /* function to reallocate memory */ ^lapi.c:1175:46: error: expected declaration specifiers or '...' before 'size_t' LUA_API void *lua_newuserdata (lua_State *L, size_t size) { ^lstate.h:174:3: error: unknown type name 'ptrdiff_t' ptrdiff_t errfunc; /* current error handling function (stack index) */ ^lapi.c: In function 'aux_upvalue':lapi.c:1193:50: error: 'NULL' undeclared (first use in this function) if (!(1 <= n && n <= f->nupvalues)) return NULL; ^In file included from lcode.h:10:0, from ldebug.c:19:llex.h:71:67: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l); ^lapi.c: In function 'lua_getupvalue':lapi.c:1215:17: error: 'NULL' undeclared (first use in this function) TValue *val = NULL; /* to avoid warnings */ ^lapi.c: In function 'lua_setupvalue':lapi.c:1229:17: error: 'NULL' undeclared (first use in this function) TValue *val = NULL; /* to avoid warnings */ ^lapi.c: In function 'lua_upvalueid':In file included from ldebug.c:21:0:ldo.h:36:41: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^ldo.h:36:59: error: unknown type name 'ptrdiff_t' ptrdiff_t oldtop, ptrdiff_t ef); ^lapi.c:1261:39: error: 'NULL' undeclared (first use in this function) return *getupvalref(L, fidx, n, NULL); ^lapi.c: In function 'lua_upvaluejoin':lapi.c:1280:43: error: 'NULL' undeclared (first use in this function) UpVal **up2 = getupvalref(L, fidx2, n2, NULL); ^In file included from lstring.h:10:0, from ldebug.c:26:lgc.h:148:56: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, ^In file included from ldebug.c:26:0:lstring.h:37:52: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); ^lstring.h:41:47: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); ^lstring.h:42:65: error: expected declaration specifiers or '...' before 'size_t' LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); ^lapi.c: In function 'lua_version':lapi.c:141:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'lua_sethook':ldebug.c:64:15: error: 'NULL' undeclared (first use in this function) if (func == NULL || mask == 0) { /* turn off hooks? */ ^ldebug.c:64:15: note: each undeclared identifier is reported only once for each function it appears inlapi.c: In function 'index2addr':lapi.c:79:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'upvalname':ldebug.c:112:12: error: 'NULL' undeclared (first use in this function) if (s == NULL) return "?"; ^ldebug.c: In function 'findvararg':ldebug.c:120:12: error: 'NULL' undeclared (first use in this function) return NULL; /* no such vararg */ ^ldebug.c: In function 'findlocal':ldebug.c:130:22: error: 'NULL' undeclared (first use in this function) const char *name = NULL; ^lapi.c: In function 'lua_isnumber':lapi.c:271:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_rawequal':ldebug.c: In function 'lua_getlocal':lapi.c:290:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c:158:13: error: 'NULL' undeclared (first use in this function) if (ar == NULL) { /* information about non-active function? */ ^lapi.c: In function 'lua_tonumberx':lapi.c:346:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_tointegerx':ldebug.c: In function 'funcinfo':lapi.c:363:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_tounsignedx':ldebug.c:33:34: error: 'NULL' undeclared (first use in this function) #define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) ^ldebug.c:194:7: note: in expansion of macro 'noLuaClosure' if (noLuaClosure(cl)) { ^lapi.c:380:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_tocfunction':ldebug.c:207:3: warning: implicit declaration of function 'luaO_chunkid' [-Wimplicit-function-declaration] luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); ^lapi.c:424:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'collectvalidlines':lapi.c: In function 'lua_touserdata':ldebug.c:33:34: error: 'NULL' undeclared (first use in this function) #define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) ^ldebug.c:212:7: note: in expansion of macro 'noLuaClosure' if (noLuaClosure(f)) { ^lapi.c:434:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_tothread':lapi.c:440:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_topointer':lapi.c:456:1: warning: control reaches end of non-void function [-Wreturn-type] } ^lapi.c: In function 'lua_pushstring':lapi.c:528:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'auxgetinfo':ldebug.c:244:26: error: 'NULL' undeclared (first use in this function) ar->nups = (f == NULL) ? 0 : f->c.nupvalues; ^lapi.c: In function 'lua_pushthread':lapi.c:599:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'lua_getinfo':ldebug.c:289:10: error: 'NULL' undeclared (first use in this function) ci = NULL; ^ldebug.c:302:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] if (strchr(what, 'f')) { ^ldebug.c:302:7: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default] if (strchr(what, 'f')) { ^In file included from lapi.h:11:0, from ldebug.c:18:ldebug.c: In function 'findsetreg':llimits.h:37:18: error: 'INT_MAX' undeclared (first use in this function) #define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ ^lopcodes.h:64:27: note: in expansion of macro 'MAX_INT' #define MAXARG_sBx MAX_INT ^lopcodes.h:112:37: note: in expansion of macro 'MAXARG_sBx' #define GETARG_sBx(i) (GETARG_Bx(i)-MAXARG_sBx) ^ldebug.c:384:17: note: in expansion of macro 'GETARG_sBx' int b = GETARG_sBx(i); ^ldebug.c: In function 'getobjname':ldebug.c:434:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] return (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field"; ^ldebug.c:458:10: error: 'NULL' undeclared (first use in this function) return NULL; /* could not find reasonable name */ ^ldebug.c: In function 'getfuncname':ldebug.c:494:14: error: 'NULL' undeclared (first use in this function) return NULL; /* else no useful name can be found */ ^In file included from lapi.h:11:0, from ldebug.c:18:ldebug.c:496:22: error: 'global_State' has no member named 'tmname' *name = getstr(G(L)->tmname[tm]); ^llimits.h:93:27: note: in definition of macro 'cast' #define cast(t, exp) ((t)(exp)) ^ldebug.c:496:11: note: in expansion of macro 'getstr' *name = getstr(G(L)->tmname[tm]); ^lapi.c: In function 'aux_upvalue':ldebug.c:463:7: warning: variable 'tm' set but not used [-Wunused-but-set-variable] TMS tm; ^lapi.c:1210:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'getupvalname':lapi.c: In function 'lua_upvalueid':ldebug.c:526:10: error: 'NULL' undeclared (first use in this function) return NULL; ^ldebug.c: In function 'luaG_typeerror':lapi.c:1273:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c:532:22: error: 'NULL' undeclared (first use in this function) const char *name = NULL; ^ldebug.c: In function 'luaG_aritherror':ldebug.c:558:35: error: 'NULL' undeclared (first use in this function) if (luaV_tonumber(p1, &temp) == NULL) ^ldebug.c: In function 'luaG_runerror':ldebug.c:604:3: error: unknown type name 'va_list' va_list argp; ^make[2]: *** [: lapi.o] Error 1 ldebug.c:605:3: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration] va_start(argp, fmt); ^ldebug.c:606:3: warning: implicit declaration of function 'luaO_pushvfstring' [-Wimplicit-function-declaration] addinfo(L, luaO_pushvfstring(L, fmt, argp)); ^ldebug.c:606:3: warning: passing argument 2 of 'addinfo' makes pointer from integer without a cast [enabled by default]ldebug.c:574:13: note: expected 'const char *' but argument is of type 'int' static void addinfo (lua_State *L, const char *msg) { ^ldebug.c:607:3: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration] va_end(argp); ^ldebug.c: In function 'findvararg':ldebug.c:125:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'getobjname':ldebug.c:459:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'upvalname':ldebug.c:114:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ldebug.c: In function 'getupvalname':ldebug.c:527:1: warning: control reaches end of non-void function [-Wreturn-type] } ^make[2]: *** [: ldebug.o] Error 1 make[2]: Leaving directory '/tmp/lua52/src/lua-5.2.4/src'make[1]: *** [Makefile:106: linux] Error 2make[1]: Leaving directory '/tmp/lua52/src/lua-5.2.4/src'make: *** [Makefile:55: linux] Error 2==> ERROR: A failure occurred in build(). Aborting...