Voxelands Forum

The official Voxelands discussion forum

You are not logged in.

#1 2014-11-22 19:15:48

Menche
Code Turtle
From: United States
Registered: 2013-10-09
Posts: 120

[CLOSED - FIXED] Build error on FreeBSD

[  6%] Building CXX object src/CMakeFiles/voxelands.dir/filesys.cpp.o
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:194:5: error: member access into incomplete type 'struct timeval'
        _tv->tv_sec = _bt->sec;
           ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:195:5: error: member access into incomplete type 'struct timeval'
        _tv->tv_usec = ((uint64_t)1000000 * (uint32_t)(_bt->frac >> 32)) >> 32;
           ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:202:16: error: member access into incomplete type 'const struct timeval'
        _bt->sec = _tv->tv_sec;
                      ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:204:17: error: member access into incomplete type 'const struct timeval'
        _bt->frac = _tv->tv_usec * (uint64_t)18446744073709LL;
                       ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:226:1: error: incomplete result type 'struct timeval' in function definition
sbttotv(sbintime_t _sbt)
^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:228:17: error: variable has incomplete type 'struct timeval'
        struct timeval _tv;
                       ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:236:24: error: variable has incomplete type 'struct timeval'
tvtosbt(struct timeval _tv)
                       ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:322:17: error: field has incomplete type 'struct timeval'
        struct  timeval it_interval;    /* timer interval */
                        ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
In file included from /home/menche/build/minetest-classic/src/filesys.cpp:173:
In file included from /usr/include/sys/stat.h:99:
/usr/include/sys/time.h:323:17: error: field has incomplete type 'struct timeval'
        struct  timeval it_value;       /* current value */
                        ^
/usr/include/unistd.h:487:8: note: forward declaration of 'fs::timeval'
struct timeval;                         /* select(2) */
       ^
9 errors generated.

I use a Vultr VPS (shameless referrer link).

Offline

#2 2014-11-22 20:25:30

darkrose
Administrator
Registered: 2013-10-05
Posts: 762

Re: [CLOSED - FIXED] Build error on FreeBSD

looks like a glibc bug dependence, probably just a missing #include <sys/time.h> or something similar


Support Voxelands on Patreon: https://www.patreon.com/voxelands

Offline

Board footer

Powered by FluxBB