[OpenAFS] building openafs-modules on debian

david l goodrich dlg@dsrw.org
Sun, 27 Jun 2010 21:57:35 -0500


I'm struggling to build 1.4.11 openafs-modules on debian.  It's a 
linode.com VPS, which means a custom kernel, but wasn't a problem with 
2.6.31.  With 2.6.34, I get this:

------------------------------------------------------------------
# KERNELDIRS=/usr/src/linux-headers-2.6.34-linode26/ m-a -t a-i 
openafs-modules
.
Updated infos about 1 packages
Getting source for kernel version: 2.6.34-linode26
apt-get install linux-headers-2.6.34-linode26
Reading package lists... DoneBuilding dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-2.6.34-linode26
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Done!
unpack
Extracting the package tarball, /usr/src/openafs.tar.bz2, please wait...
"/usr/share/modass/packages/default.sh" build KVERS= 
KSRC=/usr/src/linux-headers-2.6.34-linode26 kdist_image
/usr/bin/make  -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/openafs'
dh_testdir
dh_testroot
rm -rf src/libafs/MODLOAD-* *-stamp
dh_clean Makefile config.log config.status src/libafs/Makefile \
             src/libafs/Makefile.common src/libafs/asm 
src/libafs/asm-generic \
             src/libafs/h src/libafs/linux src/libafs/net 
src/libafs/netinet \
             src/libafs/rpc src/libafs/sys
make[1]: Leaving directory `/usr/src/modules/openafs'
ERROR: no kernel version
   (/usr/src/linux-headers-2.6.34-linode26/include/linux/version.h not 
found?)
make: *** [configure-stamp] Error 1
BUILD FAILED!
See /var/cache/modass/openafs-modules-source.buildlog..1277693706 for 
details.
Build failed. Press Return to continue...

#
------------------------------------------------------------------

Note the "ERROR: no kernel version
   (/usr/src/linux-headers-2.6.34-linode26/include/linux/version.h not 
found?)"


what's especially strange about this is that the file exists:

# cat /usr/src/linux-headers-2.6.34-linode26/include/linux/version.h
#define LINUX_VERSION_CODE 132642
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#

So I'm very confused, and would appreciate the community's input.

Thanks!

David