[OpenAFS-devel] Compiling problem

Markus Eckerl me@networks-and-security.de
Thu, 5 Apr 2001 18:25:11 +0200


Hello everybody,

I tried to compile openafs on my pentium 2 400MHz (128MB Ram) using Debian
2.2 but I got the folowing errors:

--------snipp------------


















cc -g -I/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include -I/usr/src/afs/
openafs-1.0.3/i386_linux24/dest/include -O2 -c kdump.c ;; \
esac ;
+
cc -g -I/usr/src/linux-2.4.3/include -I/usr/src/afs/openafs-1.0.3/i386_linux
24/dest/include -I/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include -O2 -
o kdump-2.4.3.o -c kdump.c
In file included from /usr/include/bits/socket.h:295,
                 from /usr/include/sys/socket.h:34,
                 from /usr/include/netdb.h:31,
                 from kdump.c:60:
/usr/src/linux-2.4.3/include/asm/socket.h:51: warning: `SOCK_STREAM'
redefined
/usr/include/bits/socket.h:42: warning: this is the location of the previous
definition
/usr/src/linux-2.4.3/include/asm/socket.h:52: warning: `SOCK_DGRAM'
redefined
/usr/include/bits/socket.h:45: warning: this is the location of the previous
definition
/usr/src/linux-2.4.3/include/asm/socket.h:53: warning: `SOCK_RAW' redefined
/usr/include/bits/socket.h:47: warning: this is the location of the previous
definition
/usr/src/linux-2.4.3/include/asm/socket.h:54: warning: `SOCK_RDM' redefined
/usr/include/bits/socket.h:49: warning: this is the location of the previous
definition
/usr/src/linux-2.4.3/include/asm/socket.h:55: warning: `SOCK_SEQPACKET'
redefined
/usr/include/bits/socket.h:52: warning: this is the location of the previous
definition
/usr/src/linux-2.4.3/include/asm/socket.h:56: warning: `SOCK_PACKET'
redefined
/usr/include/bits/socket.h:56: warning: this is the location of the previous
definition
In file included from /usr/src/linux-2.4.3/include/linux/wait.h:13,
                 from /usr/src/linux-2.4.3/include/linux/fs.h:12,
                 from kdump.c:240:
/usr/src/linux-2.4.3/include/linux/kernel.h:19: warning: `INT_MIN' redefined
/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h:68: warning: this is the
location of the previous definition
/usr/src/linux-2.4.3/include/linux/kernel.h:22: warning: `LONG_MIN'
redefined
/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h:86: warning: this is the
location of the previous definition
In file included from /usr/src/linux-2.4.3/include/linux/string.h:21,
                 from /usr/src/linux-2.4.3/include/linux/fs.h:23,
                 from kdump.c:240:
/usr/src/linux-2.4.3/include/asm/string.h:535: warning: `memset' redefined
/usr/include/bits/string2.h:106: warning: this is the location of the
previous definition
In file included from /usr/include/time.h:42,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/lwp.h:315,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/rx/rx_user.h:21,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/rx/rx.h:52,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/afs/afsint.h:64,
                 from kdump.c:369:
/usr/include/bits/time.h:34: warning: `CLOCKS_PER_SEC' redefined
/usr/src/linux-2.4.3/include/asm/param.h:21: warning: this is the location
of the previous definition
In file included from /usr/include/sys/uio.h:29,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/rx/rx_packet.h:16,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/rx/rx.h:55,
                 from
/usr/src/afs/openafs-1.0.3/i386_linux24/dest/include/afs/afsint.h:64,
                 from kdump.c:369:
/usr/include/bits/uio.h:38: warning: `UIO_MAXIOV' redefined
kdump.c:200: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.3/include/linux/fs.h:23,
                 from kdump.c:240:
/usr/src/linux-2.4.3/include/linux/string.h:12: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/linux/string.h:12: parse error before `&&'
/usr/src/linux-2.4.3/include/linux/string.h:14: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/linux/string.h:14: parse error before `('
/usr/src/linux-2.4.3/include/linux/string.h:15: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/linux/string.h:15: parse error before `&&'
In file included from /usr/src/linux-2.4.3/include/linux/string.h:21,
                 from /usr/src/linux-2.4.3/include/linux/fs.h:23,
                 from kdump.c:240:
/usr/src/linux-2.4.3/include/asm/string.h:33: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:47: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:67: warning: static declaration
for `strcat' follows non-static
/usr/src/linux-2.4.3/include/asm/string.h:83: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `&&'
/usr/src/linux-2.4.3/include/asm/string.h:106: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:106: conflicting declarations of
`__result'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__result' previously
declared here
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `cs'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__s2' undeclared here (not
in a function)
/usr/src/linux-2.4.3/include/asm/string.h:106: initializer element is not
constant
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `if'
/usr/src/linux-2.4.3/include/asm/string.h:106: conflicting declarations of
`__result'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:106: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:106: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:106: redefinition of `__result'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:106: `__s1' undeclared here (not
in a function)
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `ct'
/usr/src/linux-2.4.3/include/asm/string.h:106: initializer element is not
constant
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `if'
/usr/src/linux-2.4.3/include/asm/string.h:106: conflicting declarations of
`__result'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:106: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:106: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:109: register name not specified
for `__res'
/usr/src/linux-2.4.3/include/asm/string.h:110: parse error before
`__volatile__'
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `&&'
/usr/src/linux-2.4.3/include/asm/string.h:127: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:127: redefinition of `__result'
/usr/src/linux-2.4.3/include/asm/string.h:106: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `cs'
/usr/src/linux-2.4.3/include/asm/string.h:127: `__s2' undeclared here (not
in a function)
/usr/src/linux-2.4.3/include/asm/string.h:127: initializer element is not
constant
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `if'
/usr/src/linux-2.4.3/include/asm/string.h:127: conflicting declarations of
`__result'
/usr/src/linux-2.4.3/include/asm/string.h:127: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:127: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:127: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:127: redefinition of `__result'
/usr/src/linux-2.4.3/include/asm/string.h:127: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:127: `__s1' undeclared here (not
in a function)
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `ct'
/usr/src/linux-2.4.3/include/asm/string.h:127: initializer element is not
constant
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `if'
/usr/src/linux-2.4.3/include/asm/string.h:127: conflicting declarations of
`__result'
/usr/src/linux-2.4.3/include/asm/string.h:127: `__result' previously defined
here
/usr/src/linux-2.4.3/include/asm/string.h:127: warning: data definition has
no type or storage class
/usr/src/linux-2.4.3/include/asm/string.h:127: parse error before `}'
/usr/src/linux-2.4.3/include/asm/string.h:131: parse error before
`__volatile__'
/usr/src/linux-2.4.3/include/asm/string.h:150: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:153: conflicting types for `__res'
/usr/src/linux-2.4.3/include/asm/string.h:109: previous declaration of
`__res'
/usr/src/linux-2.4.3/include/asm/string.h:153: register name not specified
for `__res'
/usr/src/linux-2.4.3/include/asm/string.h:154: parse error before
`__volatile__'
/usr/src/linux-2.4.3/include/asm/string.h:170: warning: static declaration
for `strrchr' follows non-static
/usr/src/linux-2.4.3/include/asm/string.h:346: warning: static declaration
for `memmove' follows non-static
/usr/src/linux-2.4.3/include/asm/string.h:373: warning: static declaration
for `memchr' follows non-static
/usr/src/linux-2.4.3/include/asm/string.h:449: parse error before
`__extension__'
/usr/src/linux-2.4.3/include/asm/string.h:453: parse error before
`__volatile__'
In file included from kdump.c:240:
/usr/src/linux-2.4.3/include/linux/fs.h:564: warning: `struct flock64'
declared inside parameter list
/usr/src/linux-2.4.3/include/linux/fs.h:564: warning: its scope is only this
definition or declaration, which is probably not what you want.
/usr/src/linux-2.4.3/include/linux/fs.h:565: warning: `struct flock64'
declared inside parameter list
In file included from /usr/src/linux-2.4.3/include/linux/fs.h:644,
                 from kdump.c:240:
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:28: parse error before `u8'
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:28: warning: no semicolon at
end of struct or union
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:29: warning: data definition
has no type or storage class
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:32: parse error before
`completion'
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:32: warning: data definition
has no type or storage class
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:33: parse error before
`conn_status'
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:33: warning: data definition
has no type or storage class
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:82: parse error before `}'
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h: In function
`ncp_conn_valid':
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:94: dereferencing pointer to
incomplete type
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h: In function
`ncp_invalidate_conn':
/usr/src/linux-2.4.3/include/linux/ncp_fs_sb.h:99: dereferencing pointer to
incomplete type
In file included from kdump.c:240:
/usr/src/linux-2.4.3/include/linux/fs.h: At top level:
/usr/src/linux-2.4.3/include/linux/fs.h:694: field `ncpfs_sb' has incomplete
type
kdump.c: In function `print_vnode':
kdump.c:2443: structure has no member named `i_nrpages'
make[3]: *** [kdump.o] Error 1
make[3]: Leaving directory
`/usr/src/afs/openafs-1.0.3/i386_linux24/obj/venus'
make[2]: *** [venus] Error 2
make[2]: Leaving directory `/usr/src/afs/openafs-1.0.3'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/src/afs/openafs-1.0.3'
make: *** [all] Error 2
www:/usr/src/afs/openafs-1.0.3#


-------snapp-------


What to do now? Can anybody help me? It seems that there are probs with the
2.4.3 kernel headers.

Bye
Markus