i'm trying to compile davfs from the davfs2-0.2.2 source on debian unstable. i keep getting this output from make, no matter what options i give configure:
Code:
gcc -DHAVE_CONFIG_H -I/root/ucfv/davfs2-0.2.2 -I./lib -I/usr/src/linux/include -I./src -g -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -c src/davfsd.c -o src/davfsd.o
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:9: error: redefinition of `struct timespec'
/usr/src/linux/include/linux/time.h:15: error: redefinition of `struct timeval'
/usr/src/linux/include/linux/time.h:20: error: redefinition of `struct timezone'
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:384:1: warning: "FD_SET" redefined
In file included from /usr/include/sys/types.h:216,
from /usr/include/bits/fcntl.h:25,
from /usr/include/fcntl.h:33,
from src/davfsd.c:23:
/usr/include/sys/select.h:93:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:385:1: warning: "FD_CLR" redefined
In file included from /usr/include/sys/types.h:216,
from /usr/include/bits/fcntl.h:25,
from /usr/include/fcntl.h:33,
from src/davfsd.c:23:
/usr/include/sys/select.h:94:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:386:1: warning: "FD_ISSET" redefined
In file included from /usr/include/sys/types.h:216,
from /usr/include/bits/fcntl.h:25,
from /usr/include/fcntl.h:33,
from src/davfsd.c:23:
/usr/include/sys/select.h:95:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:387:1: warning: "FD_ZERO" redefined
In file included from /usr/include/sys/types.h:216,
from /usr/include/bits/fcntl.h:25,
from /usr/include/fcntl.h:33,
from src/davfsd.c:23:
/usr/include/sys/select.h:96:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:393:1: warning: "ITIMER_REAL" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.h:95:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:394:1: warning: "ITIMER_VIRTUAL" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.h:98:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:395:1: warning: "ITIMER_PROF" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.h:102:1: warning: this is the location of the previous definition
/usr/src/linux/include/linux/time.h:397: error: redefinition of `struct itimerspec'
/usr/src/linux/include/linux/time.h:402: error: redefinition of `struct itimerval'
In file included from /usr/src/linux/include/linux/coda.h:102,
from src/davfsd.c:39:
/usr/src/linux/include/linux/time.h:427:1: warning: "TIMER_ABSTIME" redefined
In file included from /usr/include/time.h:42,
from src/davfsd.c:21:
/usr/include/bits/time.h:55:1: warning: this is the location of the previous definition
src/davfsd.c:227: error: parse error before "id"
src/davfsd.c: In function `look_name':
src/davfsd.c:231: error: `id' undeclared (first use in this function)
src/davfsd.c:231: error: (Each undeclared identifier is reported only once
src/davfsd.c:231: error: for each function it appears in.)
src/davfsd.c:249: error: `is_dir' undeclared (first use in this function)
src/davfsd.c: At top level:
src/davfsd.c:258: error: parse error before "alloc_vfid"
src/davfsd.c: In function `alloc_vfid':
src/davfsd.c:260: error: `ViceFid' undeclared (first use in this function)
src/davfsd.c:260: error: parse error before "res"
src/davfsd.c:275: error: `res' undeclared (first use in this function)
src/davfsd.c: At top level:
src/davfsd.c:372: error: parse error before "id"
src/davfsd.c: In function `get_local_copy':
src/davfsd.c:375: error: `id' undeclared (first use in this function)
src/davfsd.c:379: error: `flags' undeclared (first use in this function)
src/davfsd.c: At top level:
src/davfsd.c:452: error: parse error before "id"
src/davfsd.c: In function `get_dir_copy':
src/davfsd.c:454: error: `id' undeclared (first use in this function)
src/davfsd.c: At top level:
src/davfsd.c:536: error: parse error before "id"
src/davfsd.c: In function `unget_local_copy':
src/davfsd.c:539: error: `id' undeclared (first use in this function)
src/davfsd.c: At top level:
src/davfsd.c:629: error: parse error before "ViceFid"
src/davfsd.c: In function `coda_open':
src/davfsd.c:634: error: `id' undeclared (first use in this function)
src/davfsd.c:635: error: `name' undeclared (first use in this function)
src/davfsd.c:636: error: `out_buf' undeclared (first use in this function)
src/davfsd.c:659: error: `flags' undeclared (first use in this function)
src/davfsd.c:660: error: `server_nolocks' undeclared (first use in this function)
src/davfsd.c:674: error: `in_buf' undeclared (first use in this function)
src/davfsd.c: In function `main':
src/davfsd.c:894: error: incompatible types in assignment
src/davfsd.c:895: error: structure has no member named `Unique'
src/davfsd.c:921: error: structure has no member named `Unique'
src/davfsd.c:959: error: incompatible types in assignment
src/davfsd.c:1051: error: structure has no member named `Unique'
src/davfsd.c:1067: error: incompatible types in assignment
src/davfsd.c:1068: error: structure has no member named `Unique'
src/davfsd.c:1082: error: incompatible types in assignment
make: *** [src/davfsd.o] Error 1
and i'm not much of a source code hacker, so does anybody know what I can do to get davfs to compile?
thanks in advance,
rebel