[OpenAFS] build 1.2.2a on RedHat7.0

Derek Atkins warlord@MIT.EDU
04 Jan 2002 13:21:16 -0500


You need to install the kernel-source and pam-devel packages.

-derek

Hongliang Gai <hgai@ecs.syr.edu> writes:

> Hi All,
> I got errors when I tried to build OpenAfs 1.2.2a against RedHat 7.0. The
> kernel info for the RedHat 7.0 is:
> 
> kernel-2.2.19-7.0.12
> kernel-utils-2.2.19-7.0.12
> kernelcfg-0.6-9
> kernel-pcmcia-cs-2.2.19-7.0.12
> kernel-headers-2.4.0-0.26
> 
> 
> And, the error message:
> *****************************************************************************
> Building in directory: MODLOAD-2.4.0-0.26-MP
> make[4]: Entering directory
> `/localdata/openafs-1.2.2a/src/libafs/MODLOAD-2.4.0-0.26-MP'
> 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 -DAFS_SMP -D__BOOT_KERNEL_UP=0
> -D__BOOT_KERNEL_SMP=1   -I. -I../ -I/localdata/openafs-1.2.2a/src/config
> -c ../afs/afs_atomlist.c;
> In file included from ../afs/param.h:52,
>                  from ../afs/afs_atomlist.c:11:
> ../linux/modversions.h:1:2: #error Modules should never use kernel-headers
> system headers,
> ../linux/modversions.h:2:2: #error but headers from an appropriate
> kernel-source
> make[4]: *** [afs_atomlist.o] Error 1
> make[4]: Leaving directory
> `/localdata/openafs-1.2.2a/src/libafs/MODLOAD-2.4.0-0.26-MP'
> make[3]: *** [linux_compdirs] Error 2
> make[3]: Leaving directory `/localdata/openafs-1.2.2a/src/libafs'
> make[2]: *** [libafs] Error 2
> make[2]: Leaving directory `/localdata/openafs-1.2.2a'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/localdata/openafs-1.2.2a'
> make: *** [all] Error 2
> 
> **************************************************************************
> 
> The kernel headers locates in /usr, and later I copied them to
> conventional location /usr/src/linux, and tried to give either paths to
> ./configure. The result were same.
> 
> The strange thing is I can build and install 1.2.2a against another
> machine, the difference is it has different kernel and headers. Here is
> the kernel info for the success one:
> 
>     kernel-utils-2.2.17-14
>     kernel-headers-2.2.14-5.0
>     kerner-2.2.17-14
>     kernel-pcmcia-cs-2.2.17-14
>     kernel-smp-2.2.14-5.0
> with "uname -r", however, it outputs "2.2.19"
> 
> Any help?
> 
> Thanks in advance!
> 
> Harrison
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available