[OpenAFS-devel] Problem building kernel modules on FC5 on kernel 2.6.19-1.2288.2.4.fc5smp

Alan Hoyle alan.hoyle@gmail.com
Thu, 15 Mar 2007 12:38:17 -0400


I've downloaded the source RPM.

I have installed kernel-devel.i686 and kernel-smp-devel.i686

kernel-devel.i686                        2.6.19-1.2288.2.4.fc5
kernel-smp-devel.i686                    2.6.19-1.2288.2.4.fc5


 rpmbuild --rebuild --target=`uname -m` openafs-1.4.2-fc5.1.src.rpm

chugs for a little bit and then gives an error:

In file included from
/usr/src/redhat/BUILD/openafs-1.4.2/src/libafs/MODLOAD-2.6.19-1.2288.2.4.fc5smp-SP/afs_atomlist.c:11:
/usr/src/redhat/BUILD/openafs-1.4.2/include/afs/param.h:34:26: error:
linux/config.h: No such file or directory


$ locate linux/config.h
/usr/include/linux/config.h
/usr/src/kernels/2.6.17-1.2174_FC5-i686/include/linux/config.h

However, there are config.h's around the kernel directories...
$ pwd
/usr/src/kernels
$ find . -name config.h
./2.6.19-1.2288.2.4.fc5-smp-i686/include/config/x86/find/smp/config.h
./2.6.19-1.2288.2.4.fc5-smp-i686/include/config/i2o/config.h
./2.6.17-1.2174_FC5-i686/include/config/x86/find/smp/config.h
./2.6.17-1.2174_FC5-i686/include/linux/config.h
./2.6.19-1.2288.2.4.fc5-i686/include/config/x86/find/smp/config.h
./2.6.19-1.2288.2.4.fc5-i686/include/config/i2o/config.h

Any hints as to how I can get this to build?

-alan

-- 
   Alan Hoyle  -  alanh@unc.edu  -  http://www.alanhoyle.com/
     "I don't want the world, I just want your half." -TMBG
                Get Horizontal, Play Ultimate.