[root@OBS luafilesystem-1.2]# make install gcc -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/usr/local/include -I../compat/src -c -o src/lfs.o src/lfs.c src/lfs.c:39:17: lua.h: No such file or directory src/lfs.c:40:21: lauxlib.h: No such file or directory src/lfs.c:41:20: lualib.h: No such file or directory src/lfs.c:42:24: compat-5.1.h: No such file or directory In file included from src/lfs.c:44: src/lfs.h:16: error: syntax error before '*' token src/lfs.c:75: error: syntax error before '*' token src/lfs.c: In function `change_dir': src/lfs.c:76: warning: implicit declaration of function `luaL_checkstring' src/lfs.c:76: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:76: error: `L' undeclared (first use in this function) src/lfs.c:76: error: (Each undeclared identifier is reported only once src/lfs.c:76: error: for each function it appears in.) src/lfs.c:76: warning: initialization makes pointer from integer without a cast src/lfs.c:78: warning: implicit declaration of function `lua_pushnil' src/lfs.c:78: warning: nested extern declaration of `lua_pushnil' src/lfs.c:79: warning: implicit declaration of function `lua_pushfstring' src/lfs.c:79: warning: nested extern declaration of `lua_pushfstring' src/lfs.c:83: warning: implicit declaration of function `lua_pushboolean' src/lfs.c:83: warning: nested extern declaration of `lua_pushboolean' src/lfs.c: At top level: src/lfs.c:93: error: syntax error before '*' token src/lfs.c: In function `get_dir': src/lfs.c:96: warning: nested extern declaration of `lua_pushnil' src/lfs.c:96: error: `L' undeclared (first use in this function) src/lfs.c:97: warning: implicit declaration of function `lua_pushstring' src/lfs.c:97: warning: nested extern declaration of `lua_pushstring' src/lfs.c:101: warning: nested extern declaration of `lua_pushstring' src/lfs.c: At top level: src/lfs.c:109: error: syntax error before '*' token src/lfs.c: In function `check_file': src/lfs.c:110: warning: implicit declaration of function `luaL_checkudata' src/lfs.c:110: warning: nested extern declaration of `luaL_checkudata' src/lfs.c:110: error: `L' undeclared (first use in this function) src/lfs.c:110: error: `idx' undeclared (first use in this function) src/lfs.c:112: warning: implicit declaration of function `luaL_error' src/lfs.c:112: warning: nested extern declaration of `luaL_error' src/lfs.c:112: error: `funcname' undeclared (first use in this function) src/lfs.c:115: warning: nested extern declaration of `luaL_error' src/lfs.c: At top level: src/lfs.c:125: error: syntax error before '*' token src/lfs.c: In function `_file_lock': src/lfs.c:154: error: `mode' undeclared (first use in this function) src/lfs.c:158: warning: nested extern declaration of `luaL_error' src/lfs.c:158: error: `L' undeclared (first use in this function) src/lfs.c:158: error: `funcname' undeclared (first use in this function) src/lfs.c:161: error: `start' undeclared (first use in this function) src/lfs.c:162: error: `len' undeclared (first use in this function) src/lfs.c:163: error: `fh' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:176: error: syntax error before '*' token src/lfs.c: In function `file_lock': src/lfs.c:177: error: `L' undeclared (first use in this function) src/lfs.c:178: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:178: warning: initialization makes pointer from integer without a cast src/lfs.c:179: warning: implicit declaration of function `luaL_optlong' src/lfs.c:179: warning: nested extern declaration of `luaL_optlong' src/lfs.c:182: warning: nested extern declaration of `lua_pushboolean' src/lfs.c:185: warning: nested extern declaration of `lua_pushnil' src/lfs.c:186: warning: nested extern declaration of `lua_pushfstring' src/lfs.c: At top level: src/lfs.c:198: error: syntax error before '*' token src/lfs.c: In function `file_unlock': src/lfs.c:199: error: `L' undeclared (first use in this function) src/lfs.c:200: warning: nested extern declaration of `luaL_optlong' src/lfs.c:203: warning: nested extern declaration of `lua_pushboolean' src/lfs.c:206: warning: nested extern declaration of `lua_pushnil' src/lfs.c:207: warning: nested extern declaration of `lua_pushfstring' src/lfs.c: At top level: src/lfs.c:213: error: syntax error before '*' token src/lfs.c: In function `make_dir': src/lfs.c:214: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:214: error: `L' undeclared (first use in this function) src/lfs.c:214: warning: initialization makes pointer from integer without a cast src/lfs.c:225: warning: nested extern declaration of `lua_pushnil' src/lfs.c:226: warning: nested extern declaration of `lua_pushfstring' src/lfs.c:230: warning: nested extern declaration of `lua_pushboolean' src/lfs.c: At top level: src/lfs.c:238: error: syntax error before '*' token src/lfs.c: In function `remove_dir': src/lfs.c:239: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:239: error: `L' undeclared (first use in this function) src/lfs.c:239: warning: initialization makes pointer from integer without a cast src/lfs.c:245: warning: nested extern declaration of `lua_pushnil' src/lfs.c:246: warning: nested extern declaration of `lua_pushfstring' src/lfs.c:249: warning: nested extern declaration of `lua_pushboolean' src/lfs.c: At top level: src/lfs.c:256: error: syntax error before '*' token src/lfs.c: In function `dir_iter': src/lfs.c:260: warning: implicit declaration of function `lua_touserdata' src/lfs.c:260: warning: nested extern declaration of `lua_touserdata' src/lfs.c:260: error: `L' undeclared (first use in this function) src/lfs.c:260: warning: implicit declaration of function `lua_upvalueindex' src/lfs.c:260: warning: nested extern declaration of `lua_upvalueindex' src/lfs.c:261: warning: implicit declaration of function `luaL_argcheck' src/lfs.c:261: warning: nested extern declaration of `luaL_argcheck' src/lfs.c:286: warning: nested extern declaration of `lua_pushstring' src/lfs.c: At top level: src/lfs.c:301: error: syntax error before '*' token src/lfs.c: In function `dir_close': src/lfs.c:302: warning: nested extern declaration of `lua_touserdata' src/lfs.c:302: error: `L' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:321: error: syntax error before '*' token src/lfs.c: In function `dir_iter_factory': src/lfs.c:322: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:322: error: `L' undeclared (first use in this function) src/lfs.c:322: warning: initialization makes pointer from integer without a cast src/lfs.c:323: warning: implicit declaration of function `lua_newuserdata' src/lfs.c:323: warning: nested extern declaration of `lua_newuserdata' src/lfs.c:334: warning: implicit declaration of function `luaL_getmetatable' src/lfs.c:334: warning: nested extern declaration of `luaL_getmetatable' src/lfs.c:335: warning: implicit declaration of function `lua_setmetatable' src/lfs.c:335: warning: nested extern declaration of `lua_setmetatable' src/lfs.c:338: warning: nested extern declaration of `luaL_error' src/lfs.c:340: warning: implicit declaration of function `lua_pushcclosure' src/lfs.c:340: warning: nested extern declaration of `lua_pushcclosure' src/lfs.c: At top level: src/lfs.c:348: error: syntax error before '*' token src/lfs.c: In function `dir_create_meta': src/lfs.c:349: warning: implicit declaration of function `luaL_newmetatable' src/lfs.c:349: warning: nested extern declaration of `luaL_newmetatable' src/lfs.c:349: error: `L' undeclared (first use in this function) src/lfs.c:351: warning: nested extern declaration of `lua_pushstring' src/lfs.c:352: warning: implicit declaration of function `lua_pushcfunction' src/lfs.c:352: warning: nested extern declaration of `lua_pushcfunction' src/lfs.c:353: warning: implicit declaration of function `lua_settable' src/lfs.c:353: warning: nested extern declaration of `lua_settable' src/lfs.c: At top level: src/lfs.c:412: error: syntax error before '*' token src/lfs.c: In function `file_utime': src/lfs.c:413: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:413: error: `L' undeclared (first use in this function) src/lfs.c:413: warning: initialization makes pointer from integer without a cast src/lfs.c:416: warning: implicit declaration of function `lua_gettop' src/lfs.c:416: warning: nested extern declaration of `lua_gettop' src/lfs.c:419: warning: implicit declaration of function `luaL_optnumber' src/lfs.c:419: warning: nested extern declaration of `luaL_optnumber' src/lfs.c:424: warning: nested extern declaration of `lua_pushnil' src/lfs.c:425: warning: nested extern declaration of `lua_pushfstring' src/lfs.c:428: warning: nested extern declaration of `lua_pushboolean' src/lfs.c: At top level: src/lfs.c:434: error: syntax error before '*' token src/lfs.c: In function `push_st_mode': src/lfs.c:435: warning: nested extern declaration of `lua_pushstring' src/lfs.c:435: error: `L' undeclared (first use in this function) src/lfs.c:435: error: `info' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:438: error: syntax error before '*' token src/lfs.c: In function `push_st_dev': src/lfs.c:439: warning: implicit declaration of function `lua_pushnumber' src/lfs.c:439: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:439: error: `L' undeclared (first use in this function) src/lfs.c:439: error: `lua_Number' undeclared (first use in this function) src/lfs.c:439: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:442: error: syntax error before '*' token src/lfs.c: In function `push_st_ino': src/lfs.c:443: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:443: error: `L' undeclared (first use in this function) src/lfs.c:443: error: `lua_Number' undeclared (first use in this function) src/lfs.c:443: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:446: error: syntax error before '*' token src/lfs.c: In function `push_st_nlink': src/lfs.c:447: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:447: error: `L' undeclared (first use in this function) src/lfs.c:447: error: `lua_Number' undeclared (first use in this function) src/lfs.c:447: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:450: error: syntax error before '*' token src/lfs.c: In function `push_st_uid': src/lfs.c:451: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:451: error: `L' undeclared (first use in this function) src/lfs.c:451: error: `lua_Number' undeclared (first use in this function) src/lfs.c:451: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:454: error: syntax error before '*' token src/lfs.c: In function `push_st_gid': src/lfs.c:455: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:455: error: `L' undeclared (first use in this function) src/lfs.c:455: error: `lua_Number' undeclared (first use in this function) src/lfs.c:455: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:458: error: syntax error before '*' token src/lfs.c: In function `push_st_rdev': src/lfs.c:459: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:459: error: `L' undeclared (first use in this function) src/lfs.c:459: error: `lua_Number' undeclared (first use in this function) src/lfs.c:459: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:462: error: syntax error before '*' token src/lfs.c: In function `push_st_atime': src/lfs.c:463: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:463: error: `L' undeclared (first use in this function) src/lfs.c:463: error: `info' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:466: error: syntax error before '*' token src/lfs.c: In function `push_st_mtime': src/lfs.c:467: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:467: error: `L' undeclared (first use in this function) src/lfs.c:467: error: `info' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:470: error: syntax error before '*' token src/lfs.c: In function `push_st_ctime': src/lfs.c:471: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:471: error: `L' undeclared (first use in this function) src/lfs.c:471: error: `info' undeclared (first use in this function) src/lfs.c: At top level: src/lfs.c:474: error: syntax error before '*' token src/lfs.c: In function `push_st_size': src/lfs.c:475: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:475: error: `L' undeclared (first use in this function) src/lfs.c:475: error: `lua_Number' undeclared (first use in this function) src/lfs.c:475: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:479: error: syntax error before '*' token src/lfs.c: In function `push_st_blocks': src/lfs.c:480: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:480: error: `L' undeclared (first use in this function) src/lfs.c:480: error: `lua_Number' undeclared (first use in this function) src/lfs.c:480: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:483: error: syntax error before '*' token src/lfs.c: In function `push_st_blksize': src/lfs.c:484: warning: nested extern declaration of `lua_pushnumber' src/lfs.c:484: error: `L' undeclared (first use in this function) src/lfs.c:484: error: `lua_Number' undeclared (first use in this function) src/lfs.c:484: error: syntax error before "info" src/lfs.c: At top level: src/lfs.c:488: error: syntax error before '*' token src/lfs.c:517: error: syntax error before '*' token src/lfs.c: In function `file_info': src/lfs.c:520: warning: nested extern declaration of `luaL_checkstring' src/lfs.c:520: error: `L' undeclared (first use in this function) src/lfs.c:520: warning: initialization makes pointer from integer without a cast src/lfs.c:523: warning: nested extern declaration of `lua_pushnil' src/lfs.c:524: warning: nested extern declaration of `lua_pushfstring' src/lfs.c:527: warning: implicit declaration of function `lua_isstring' src/lfs.c:527: warning: nested extern declaration of `lua_isstring' src/lfs.c:529: warning: implicit declaration of function `lua_tostring' src/lfs.c:529: warning: nested extern declaration of `lua_tostring' src/lfs.c:529: warning: initialization makes pointer from integer without a cast src/lfs.c:541: warning: implicit declaration of function `lua_istable' src/lfs.c:541: warning: nested extern declaration of `lua_istable' src/lfs.c:543: warning: implicit declaration of function `lua_newtable' src/lfs.c:543: warning: nested extern declaration of `lua_newtable' src/lfs.c:546: warning: nested extern declaration of `lua_pushstring' src/lfs.c:548: warning: implicit declaration of function `lua_rawset' src/lfs.c:548: warning: nested extern declaration of `lua_rawset' src/lfs.c: At top level: src/lfs.c:557: error: syntax error before '*' token src/lfs.c: In function `set_info': src/lfs.c:558: warning: implicit declaration of function `lua_pushliteral' src/lfs.c:558: warning: nested extern declaration of `lua_pushliteral' src/lfs.c:558: error: `L' undeclared (first use in this function) src/lfs.c:560: warning: nested extern declaration of `lua_settable' src/lfs.c: At top level: src/lfs.c:570: error: elements of array `fslib' have incomplete type src/lfs.c:571: warning: excess elements in struct initializer src/lfs.c:571: warning: (near initialization for `fslib[0]') src/lfs.c:571: warning: excess elements in struct initializer src/lfs.c:571: warning: (near initialization for `fslib[0]') src/lfs.c:572: warning: excess elements in struct initializer src/lfs.c:572: warning: (near initialization for `fslib[1]') src/lfs.c:572: warning: excess elements in struct initializer src/lfs.c:572: warning: (near initialization for `fslib[1]') src/lfs.c:573: warning: excess elements in struct initializer src/lfs.c:573: warning: (near initialization for `fslib[2]') src/lfs.c:573: warning: excess elements in struct initializer src/lfs.c:573: warning: (near initialization for `fslib[2]') src/lfs.c:574: warning: excess elements in struct initializer src/lfs.c:574: warning: (near initialization for `fslib[3]') src/lfs.c:574: warning: excess elements in struct initializer src/lfs.c:574: warning: (near initialization for `fslib[3]') src/lfs.c:575: warning: excess elements in struct initializer src/lfs.c:575: warning: (near initialization for `fslib[4]') src/lfs.c:575: warning: excess elements in struct initializer src/lfs.c:575: warning: (near initialization for `fslib[4]') src/lfs.c:576: warning: excess elements in struct initializer src/lfs.c:576: warning: (near initialization for `fslib[5]') src/lfs.c:576: warning: excess elements in struct initializer src/lfs.c:576: warning: (near initialization for `fslib[5]') src/lfs.c:577: warning: excess elements in struct initializer src/lfs.c:577: warning: (near initialization for `fslib[6]') src/lfs.c:577: warning: excess elements in struct initializer src/lfs.c:577: warning: (near initialization for `fslib[6]') src/lfs.c:578: warning: excess elements in struct initializer src/lfs.c:578: warning: (near initialization for `fslib[7]') src/lfs.c:578: warning: excess elements in struct initializer src/lfs.c:578: warning: (near initialization for `fslib[7]') src/lfs.c:579: warning: excess elements in struct initializer src/lfs.c:579: warning: (near initialization for `fslib[8]') src/lfs.c:579: warning: excess elements in struct initializer src/lfs.c:579: warning: (near initialization for `fslib[8]') src/lfs.c:580: warning: excess elements in struct initializer src/lfs.c:580: warning: (near initialization for `fslib[9]') src/lfs.c:580: warning: excess elements in struct initializer src/lfs.c:580: warning: (near initialization for `fslib[9]') src/lfs.c:583: error: syntax error before '*' token src/lfs.c:583: warning: no previous prototype for 'luaopen_lfs' src/lfs.c: In function `luaopen_lfs': src/lfs.c:584: error: `L' undeclared (first use in this function) src/lfs.c:585: warning: implicit declaration of function `luaL_openlib' src/lfs.c:585: warning: nested extern declaration of `luaL_openlib' make: *** [src/lfs.o] Error 1