#37 won't compile with kernel 2.6

closed-out-of-date
nobody
None
5
2006-02-28
2004-05-28
No

I tried applying Moriyoshi Koizumi's patch from the
patches section, but davfs2 still wouldn't compile.
Here are my results from an attempt to compile davfs2
without the patch.

$ uname -a
Linux socrates.kearneys.ca 2.6.5 #1 Thu Apr 8 15:52:27
MDT 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GenuineIntel GNU/Linux

It's actually gentoo's "gentoo-dev-sources" kernel.

$ gcc --version
gcc (GCC) 3.2.2 20030322 (Gentoo Linux 1.4 3.2.2-r2)

$ ./configure --prefix=/usr --with-ssl
--with-kernel-src=/usr/src/linux --with-neon=/usr

...

Using configuration for building DAVFS2 0.2.2:

Install prefix: /usr
Compiler: gcc
neon library: library in /usr (neon 0.24.6)
XML parser: using whatever neon uses
SSL library: supported by neon

Now run 'make' to compile DAVFS2

$ make
gcc -DHAVE_CONFIG_H -I/tmp/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: redefinition of
`struct timespec'
/usr/src/linux/include/linux/time.h:15: redefinition of
`struct timeval'
/usr/src/linux/include/linux/time.h:20: 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:341:1: warning:
"FD_SET" redefined
In file included from /usr/include/sys/types.h:215,
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:342:1: warning:
"FD_CLR" redefined
In file included from /usr/include/sys/types.h:215,
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:343:1: warning:
"FD_ISSET" redefined
In file included from /usr/include/sys/types.h:215,
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:344:1: warning:
"FD_ZERO" redefined
In file included from /usr/include/sys/types.h:215,
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:350:1: warning:
"ITIMER_REAL" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.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:351:1: warning:
"ITIMER_VIRTUAL" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.h:99: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:352:1: warning:
"ITIMER_PROF" redefined
In file included from src/davfsd.c:34:
/usr/include/sys/time.h:103:1: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/time.h:354: redefinition
of `struct itimerspec'
/usr/src/linux/include/linux/time.h:359: 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:384:1: warning:
"TIMER_ABSTIME" redefined
In file included from /usr/include/time.h:42,
from src/davfsd.c:21:
/usr/include/bits/time.h:53:1: warning: this is the
location of the previous definition
src/davfsd.c: In function `setfscred':
src/davfsd.c:128: structure has no member named `cred'
src/davfsd.c:129: structure has no member named `cred'
src/davfsd.c: At top level:
src/davfsd.c:227: parse error before "id"
src/davfsd.c: In function `look_name':
src/davfsd.c:231: `id' undeclared (first use in this
function)
src/davfsd.c:231: (Each undeclared identifier is
reported only once
src/davfsd.c:231: for each function it appears in.)
src/davfsd.c:249: `is_dir' undeclared (first use in
this function)
src/davfsd.c: At top level:
src/davfsd.c:258: parse error before "alloc_vfid"
src/davfsd.c: In function `alloc_vfid':
src/davfsd.c:260: `ViceFid' undeclared (first use in
this function)
src/davfsd.c:260: parse error before "res"
src/davfsd.c:275: `res' undeclared (first use in this
function)
src/davfsd.c: At top level:
src/davfsd.c:372: parse error before "id"
src/davfsd.c: In function `get_local_copy':
src/davfsd.c:375: `id' undeclared (first use in this
function)
src/davfsd.c:379: `flags' undeclared (first use in this
function)
src/davfsd.c: At top level:
src/davfsd.c:452: parse error before "id"
src/davfsd.c: In function `get_dir_copy':
src/davfsd.c:454: `id' undeclared (first use in this
function)
src/davfsd.c: At top level:
src/davfsd.c:536: parse error before "id"
src/davfsd.c: In function `unget_local_copy':
src/davfsd.c:539: `id' undeclared (first use in this
function)
src/davfsd.c: At top level:
src/davfsd.c:629: parse error before "ViceFid"
src/davfsd.c: In function `coda_open':
src/davfsd.c:634: `id' undeclared (first use in this
function)
src/davfsd.c:635: `name' undeclared (first use in this
function)
src/davfsd.c:636: `out_buf' undeclared (first use in
this function)
src/davfsd.c:659: `flags' undeclared (first use in this
function)
src/davfsd.c:660: `server_nolocks' undeclared (first
use in this function)
src/davfsd.c:674: `in_buf' undeclared (first use in
this function)
src/davfsd.c: In function `main':
src/davfsd.c:894: incompatible types in assignment
src/davfsd.c:895: structure has no member named `Unique'
src/davfsd.c:921: structure has no member named `Unique'
src/davfsd.c:959: incompatible types in assignment
src/davfsd.c:1051: structure has no member named `Unique'
src/davfsd.c:1067: incompatible types in assignment
src/davfsd.c:1068: structure has no member named `Unique'
src/davfsd.c:1082: incompatible types in assignment
make: *** [src/davfsd.o] Error 1

Discussion

  • Daniël van Eeden

    Logged In: YES
    user_id=671203

    pc1:/tmp/davfs2-0.2.3# make
    gcc-3.4 -DHAVE_CONFIG_H -I/tmp/davfs2-0.2.3 -I./lib
    -I/usr/src/linux/include -I./src -I/usr/src/linux/include
    -g -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -c
    src/davfsd.c -o src/davfsd.o
    In file included from src/davfsd.c:41:
    /usr/src/linux/include/linux/coda.h:762: error: variable or
    field `__user' declared void
    /usr/src/linux/include/linux/coda.h:762: warning: no
    semicolon at end of struct or union
    /usr/src/linux/include/linux/coda.h:762: error: parse error
    before '*' token
    /usr/src/linux/include/linux/coda.h:763: error: parse error
    before '*' token
    /usr/src/linux/include/linux/coda.h:763: warning: data
    definition has no type or storage class
    /usr/src/linux/include/linux/coda.h:766: error: parse error
    before '}' token
    /usr/src/linux/include/linux/coda.h:769: warning: no
    semicolon at end of struct or union
    /usr/src/linux/include/linux/coda.h:769: error: parse error
    before '*' token
    /usr/src/linux/include/linux/coda.h:772: error: parse error
    before '}' token
    /usr/src/linux/include/linux/coda.h:771: error: storage size
    of `vi' isn't known
    make: *** [src/davfsd.o] Error 1
    pc1:/tmp/davfs2-0.2.3# uname -a
    Linux pc1 2.6.9-9-amd64-k8 #1 Wed Nov 10 19:02:19 CET 2004
    x86_64 GNU/Linux

     
  • Werner Baumann

    Werner Baumann - 2006-02-14

    Logged In: YES
    user_id=1260327

    Hello,

    I am trying to work off old bugs and can not determine
    whether this bug is already fixed.

    Please try our latest release and submit a *new* bug report
    if the problem is not solved there.

    Werner

     
  • Werner Baumann

    Werner Baumann - 2006-02-28
    • status: open --> closed-out-of-date
     

Log in to post a comment.