luabuild icon indicating copy to clipboard operation
luabuild copied to clipboard

Build fails on Ubuntu 14.10 x64

Open rjpcomputing opened this issue 10 years ago • 0 comments

I cloned the repo and tried to build using ./build and I am not able to build luaposix.

gcc -c -O2 -Wall -I/mnt/share/devel/lua/LuaBuild/lua-5.2.2/ -I/mnt/share/devel/lua/LuaBuild/modules/luaposix   -fpic -MMD  modules/luaposix/lposix.c -o modules/luaposix/5.2/lposix.o
modules/luaposix/lposix.c: In function ‘Fstatvfs’:
modules/luaposix/lposix.c:1509:23: error: dereferencing pointer to incomplete type
   lua_pushinteger(L, s->f_bsize);
                       ^
modules/luaposix/lposix.c:1512:23: error: dereferencing pointer to incomplete type
   lua_pushinteger(L, s->f_frsize);
                       ^
modules/luaposix/lposix.c:1515:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_blocks);
                      ^
modules/luaposix/lposix.c:1518:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_bfree);
                      ^
modules/luaposix/lposix.c:1521:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_bavail);
                      ^
modules/luaposix/lposix.c:1524:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_files);
                      ^
modules/luaposix/lposix.c:1527:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_ffree);
                      ^
modules/luaposix/lposix.c:1530:22: error: dereferencing pointer to incomplete type
   lua_pushnumber(L, s->f_favail);
                      ^
modules/luaposix/lposix.c:1533:23: error: dereferencing pointer to incomplete type
   lua_pushinteger(L, s->f_fsid);
                       ^
modules/luaposix/lposix.c:1536:23: error: dereferencing pointer to incomplete type
   lua_pushinteger(L, s->f_flag);
                       ^
modules/luaposix/lposix.c:1539:23: error: dereferencing pointer to incomplete type
   lua_pushinteger(L, s->f_namemax);
                       ^
modules/luaposix/lposix.c: In function ‘Pstatvfs’:
modules/luaposix/lposix.c:1553:17: error: storage size of ‘s’ isn’t known
  struct statvfs s;
                 ^
modules/luaposix/lposix.c:1555:2: warning: implicit declaration of function ‘statvfs’ [-Wimplicit-function-declaration]
  if (statvfs(path,&s)==-1)
  ^
modules/luaposix/lposix.c:1553:17: warning: unused variable ‘s’ [-Wunused-variable]
  struct statvfs s;
                 ^
modules/luaposix/lposix.c: In function ‘Pstrptime’:
modules/luaposix/lposix.c:1992:2: warning: implicit declaration of function ‘strptime’ [-Wimplicit-function-declaration]
  ret = strptime(s, fmt, &t);
  ^
modules/luaposix/lposix.c:1992:6: warning: assignment makes pointer from integer without a cast
  ret = strptime(s, fmt, &t);
      ^
modules/luaposix/lposix.c: In function ‘Pstatvfs’:
modules/luaposix/lposix.c:1558:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
lake: failed with code 256

Any ideas what is going on. I used LuaRocks to install LuaPosix on this machine, so I feel like I have the development libraries needed.

Let me know if there is any other information you need.

rjpcomputing avatar Feb 18 '15 17:02 rjpcomputing