[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Normal users can't build modules against kernel headers?



Jonas Smedegaard wrote:

>On Wed, 22 Mar 2006 16:00:43 +0100
>Bas van Schaik <bas@tuxes.nl> wrote:
>
>  
>
>>Currently, I'm trying to package enbd (Enhanced Network Block Device)
>>for Debian. This also includes building a module against the kernel
>>headers for the client-side of the block device. Building the module
>>on the current sarge kernels succeeds without any problems, however,
>>on the current unstable kernels the kernel module fails to build. The
>>relevant error messages occuring during the build process:
>>
>>    
>>
>>>make[2]: Leaving directory `/tmp'
>>>make[2]: Entering directory `/usr/src/linux-headers-2.6.15-1-686'
>>>  SPLIT   include/linux/autoconf.h -> include/config/*
>>>touch: cannot touch `include/config/MARKER': Permission denied
>>>make[2]: *** [include/config/MARKER] Error 1
>>>make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-1-686'
>>>      
>>>
>
>That sounds like you try to build within /usr/src itself, rather than
>just referring to that location for kernel headers and do the actual
>build somewhere else.
>  
>
Hmmm... I don't think that's very likely, since the module did build on
the 2.6.8 sarge kernel without any permission problems. One would expect
build errors on all kernels, however, I must confess I'm not a real
expert on building kernel modules...

>Perhaps http://wiki.debian.org/KernelModulesPackaging or the kernel
>handbook is useful?
>  
>
I'll check that soon, thanks for the tip!

>Perhaps looking at existing kernel modules packaged for Debian?
>  
>
Maybe a good idea, but since the module did build before (using the
upstream makefile), I thought it would be better to get the module to
compile first, before trying to package it.

-- Bas



Reply to: