[OpenAFS] Install help

John Davin jdavin@andrew.cmu.edu
Fri, 25 Jan 2002 22:15:09 -0500 (EST)


Eh, compiling a new kernel just for this is a pain though, I'd probably
mess up my system.
I forgot to mention that I get this error when I do klog:
[jdavin@jdavin ~]$ klog
Password:
Unable to authenticate to AFS because a pioctl failed.

Also, I have my kernel headers install I think... in /usr/include/linux/.
But when I run ./configure with
--with-linux-kernel-headers=/usr/include/linux , it says that they're not
valid kernel headers.
Also, I got ./configure to work with the sources (without using the kernel
headers) but make doesn't work.  Make gives these errors:

----------------
Building in
directory: MODLOAD--2.4.7-10
make[1]: Entering directory
`/usr/src/openafs-kernel-1.2.2/src/MODLOAD--2.4.7-10'
gcc  -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -march=i486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -D__KERNEL__
-DCPU=586 -DKERNEL -D_KERNEL -DMODULE   -I. -I../
-I/usr/src/openafs-kernel-1.2.2/src/config -c ../afs/afs_atomlist.c;
In file included from ../afs/param.h:45,
                 from ../afs/afs_atomlist.c:11:
/usr/include/linux/modversions.h:1:2: #error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change
-I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
In file included from ../afs/afs_sysnames.h:23,
                 from ../afs/param.h:50,
                 from ../afs/afs_atomlist.c:11:
../afs/stds.h:191:25: ../h/string.h: No such file or directory
make[1]: *** [afs_atomlist.o] Error 1
make[1]: Leaving directory
`/usr/src/openafs-kernel-1.2.2/src/MODLOAD--2.4.7-10'
make: *** [linux_compdirs] Error 2

---------------------
-John

On Fri, 25 Jan 2002, Derrick J Brashear wrote:

> On Fri, 25 Jan 2002, John Davin wrote:
>
> >     * openafs-kernel-source-1.2.2-rh7.2.1.i386.rpm
>
> This can be used to build a kernel module in preference to the source you
> listed below, but:
> >
> > However, the files listed in /usr/vice/etc/modload/libafs*.o
> > are for kernel version 2.4.9-13 and I have kernel 2.4.7-10.
>
> You should really apply the update and get the newer kernel.
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>