[OpenAFS] building openafs-modules on debian

Russ Allbery rra@stanford.edu
Sun, 27 Jun 2010 20:24:35 -0700

david l goodrich <dlg@dsrw.org> writes:

> It exists:
> # cat /usr/src/linux-headers-2.6.34-linode26/include/config/kernel.release
> 2.6.34-linode26
> #

> But I don't know what that means for me.  Use 1.4.12?  Use an older
> kernel?  Curl up in a ball and sob uncontrollably?

The kernel-version Perl script in the OpenAFS module package directory is
failing to extract a kernel version from your kernel headers.  I'd try
running it by hand to see what it outputs and try to figure out why it's
failing.  You could also add warn statements to it to make it more obvious
what it's doing.

The relevant code of the current Debian packages is:

# Find kernel build information.
ifndef KSRC
    KSRC = /usr/src/linux
    KPKG_DEST_DIR = ..
KVERS := $(shell perl debian/kernel-version $(KSRC))
export KSRC 
export KVERS

I don't know of anything that's specifically been fixed in later versions
of the OpenAFS packaging that may be related to what you're running into.
Usually when the module won't build against a custom kernel, it ends up
being something that wasn't built properly in the custom kernel build that
causes it to not look enough like the regular kernel headers.

Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>