[ENBD] Re: error while make - errors in stat.h
P.T. Breuer
ptb at it.uc3m.es
Wed Oct 13 10:54:49 MDT 2004
In article <416D59F8.7000700 at ociweb.com> you wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> IT-Technik Andreas Specht wrote:
>
> | Thanks 4 your reply :)
> |
> | Make with enbd-2.4.32: node1:/sys/install/enbd/nbd-2.4.32# make
> | make -C /sys/install/enbd/nbd-2.4.32/nbd
> | VPATH=/sys/install/enbd/nbd-2.4.32/nbd \
> | CFLAGS="-D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1
> | -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall
> | -Winline -O2 \ -I/sys/install/enbd/nbd-2.4.32/nbd \
> |
> | -I/sys/install/enbd/nbd-2.4.32/kernel/linux/include \
> | -I/lib/modules/2.6.8.1/build/include \ \ -DDEBUG=0" \ EXTRA_LIBS="
> | \ " make[1]: Entering directory `/sys/install/enbd/nbd-2.4.32/nbd'
> | gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1
> | -D_XOPEN_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -Winline -O2
> | -I/sys/install/enbd/nbd-2.4.32/nbd
> | -I/sys/install/enbd/nbd-2.4.32/kernel/linux/include
> | -I/lib/modules/2.6.8.1/build/include -DDEBUG=0 -o enbd-server.o
> | -c /sys/install/enbd/nbd-2.4.32/nbd/enbd-server.c In file included
> | from /usr/include/sys/stat.h:105, from /usr/include/fcntl.h:37,
> | from /sys/install/enbd/nbd-2.4.32/nbd/enbd-server.c:28:
> | /usr/include/bits/stat.h:70: error: field `st_atim' has incomplete
> | type /usr/include/bits/stat.h:71: error: field `st_mtim' has
> | incomplete type /usr/include/bits/stat.h:72: error: field `st_ctim'
> | has incomplete type /usr/include/bits/stat.h:116: error: field
> | `st_atim' has incomplete type /usr/include/bits/stat.h:117: error:
> | field `st_mtim' has incomplete type /usr/include/bits/stat.h:118:
> | error: field `st_ctim' has incomplete type make[1]: ***
> | [enbd-server.o] Error 1 make[1]: Leaving directory
> | `/sys/install/enbd/nbd-2.4.32/nbd' make: *** [utils] Error 2
> |
> | => Same failure as with enbd-2.4.31
>
>
> It seems like you might need some development libraries and headers
> installed (possibly). Don't know which ones, though.
He needs to put an #include higher up. Whichever one defines what he
needs.
To me it looks like #include <time.h> or #include <sys/time.h> needs to
be moved higher up, because bits/stat.h has grown some new fields that
reference struct timespec. stat.h is referenced from fcntl.h.
(still battling with 2.6.8.1 here ...)
Peter
More information about the ENBD
mailing list