That did it - thanks much for looking into it.

I moved /usr/src to /data0/src and used a symlink from /usr/src -> /data0/src . That broke the relative link:

adorno:/usr/src# cd linux-kbuild-2.6.32
-bash: cd: linux-kbuild-2.6.32: No such file or directory
adorno:/usr/src# ls -lad linux-kbuild-2.6.32
lrwxrwxrwx 1 root root 26 2010-01-24 21:38 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32
adorno:/usr/src# rm linux-kbuild-2.6.32
adorno:/usr/src# ln -s /usr/lib/linux-kbuild-2.6.32
adorno:/usr/src# /etc/init.d/dkms_autoinstaller start
Running DKMS auto installation service for kernel 2.6.32-trunk-amd64: openafs (1.4.11)...done.
.
adorno:/usr/src# lsmod | grep open
adorno:/usr/src# modprobe openafs
adorno:/usr/src# lsmod | grep open
openafs               537439  0
adorno:/usr/src# /etc/init.d/openafs-client start
Starting AFS services: afsd.
afsd: All AFS daemons started.


--

----------------------------------------------------------------------
Andrew J Perrin - [email protected] - http://perrin.socsci.unc.edu
        Associate Professor and Associate Chair of Sociology
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA


On Wed, 27 Jan 2010, Russ Allbery wrote:

Andrew Perrin <[email protected]> writes:

Compiling modules doesn't work, whether through DKMS or using m-a:

checking for linux kernel module build works... no
configure: error: in `/usr/src/modules/openafs':
configure: error: Fix problem or use --disable-kernel-module...
See `config.log' for more details.

I *do* have the headers installed, and have tried using the
--with-linux-kernel-headers option to configure with no luck.

You don't have complete Linux kernel build system available.  You're
missing key files.  See the error messages from config.log:

/data0/src/linux-headers-2.6.32-trunk-common/Makefile:274: 
/data0/src/linux-headers-2.6.32-trunk-common/scripts/Kbuild.include: No such 
file or directory
/bin/bash: 
/data0/src/linux-headers-2.6.32-trunk-common/scripts/gcc-x86_64-has-stack-protector.sh:
 No such file or directory
/data0/src/linux-headers-2.6.32-trunk-common/arch/x86/Makefile:81: stack 
protector enabled but no compiler support

You need to locate whatever package has the above-referenced files in it
and make sure that the symlinks in the Linux headers tree point to them,
since the kernel build system needs those files to be available to work.

Normally, the scripts directory is a symlink like:

lrwxrwxrwx  1 root root    30 2010-01-22 10:54 scripts -> 
../linux-kbuild-2.6.32/scripts/

where in turn the linux-kbuild directory is a symlink:

lrwxrwxrwx  1 root root      26 2010-01-22 10:54 linux-kbuild-2.6.32 -> 
../lib/linux-kbuild-2.6.32/

Note that the links made by the Debian packages are relative by default,
so if you've moved trees of files around, you may have inadvertantly
broken one of these links.

--
Russ Allbery ([email protected])               <http://www.eyrie.org/~eagle/>





--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to