corruption of kernel-devel package in Fedora for >= 3.5 kernels when dkms is installed

Charlie medievalist at gmail.com
Mon Nov 5 15:04:15 CST 2012


You won't have to compile anything.  DKMS is just a couple of bash scripts.

--Charlie

On Mon, Nov 5, 2012 at 3:52 PM, Andre Robatino
<robatino at fedoraproject.org> wrote:
> I verified that this is not a VirtualBox problem by following the
> instructions at
> http://idolinux..com/2011/10/auto-update-kernel-modules-with-dkms.html
> to build e1000e modules with dkms. I followed the instructions exactly
> up to the dkms build command, at which point the System.map file for the
> 3.6.3 kernel was deleted. The dkms.conf file obviously does not contain
> anything remotely like a reference to System.map.
>
> [root at compaq-pc src]# ls -l /usr/src/kernels/*/System.map
> -rw-r--r--. 1 root root 2504428 Oct 10 08:33
> /usr/src/kernels/3.6.1-1.fc17.x86_64/System.map
> -rw-r--r--. 1 root root 2504543 Oct 16 23:01
> /usr/src/kernels/3.6.2-4.fc17.x86_64/System.map
> -rw-r--r--. 1 root root 2505716 Oct 22 11:55
> /usr/src/kernels/3.6.3-1.fc17.x86_64/System.map
> [root at compaq-pc src]# dkms build -m e1000e -v 1.6.2
>
> Kernel preparation unnecessary for this kernel.  Skipping...
>
> Building module:
> cleaning build area....
> make KERNELRELEASE=3.6.3-1.fc17.x86_64 -C
> /lib/modules/3.6.3-1.fc17.x86_64/build
> M=/var/lib/dkms/e1000e/1.6.2/build.....(bad exit status: 2)
> Error! Bad return status for module build on kernel: 3.6.3-1.fc17.x86_64
> (x86_64)
> Consult /var/lib/dkms/e1000e/1.6.2/build/make.log for more information.
> [root at compaq-pc src]# ls -l /usr/src/kernels/*/System.map
> -rw-r--r--. 1 root root 2504428 Oct 10 08:33
> /usr/src/kernels/3.6.1-1.fc17.x86_64/System.map
> -rw-r--r--. 1 root root 2504543 Oct 16 23:01
> /usr/src/kernels/3.6.2-4.fc17.x86_64/System.map
> [root at compaq-pc src]#
>
> The contents of the file /var/lib/dkms/e1000e/1.6.2/build/make.log are:
>
> DKMS make.log for e1000e-1.6.2 for kernel 3.6.3-1.fc17.x86_64 (x86_64)
> Mon Nov  5 15:43:11 EST 2012
> make: Entering directory `/usr/src/kernels/3.6.3-1.fc17.x86_64'
>   LD      /var/lib/dkms/e1000e/1.6.2/build/built-in.o
>   CC [M]  /var/lib/dkms/e1000e/1.6.2/build/netdev.o
> In file included from /var/lib/dkms/e1000e/1.6.2/build/e1000.h:41:0,
>                  from /var/lib/dkms/e1000e/1.6.2/build/netdev.c:56:
> /var/lib/dkms/e1000e/1.6.2/build/kcompat.h:2044:33: fatal error:
> linux/pm_qos_params.h: No such file or directory
> compilation terminated.
> make[1]: *** [/var/lib/dkms/e1000e/1.6.2/build/netdev.o] Error 1
> make: *** [_module_/var/lib/dkms/e1000e/1.6.2/build] Error 2
> make: Leaving directory `/usr/src/kernels/3.6.3-1.fc17.x86_64'
>
> I may attempt to use the dkms version you mentioned if I can figure out
> how to download and compile it.
>
> On 11/05/2012 02:17 PM, Charlie wrote:
>> DKMS got some critically important patches recently; unfortunately I
>> don't have any idea what is in the Fedora repository.  I recommend
>> using the HEAD branch from the Dell git repository
>> (http://linux.dell.com/dkms) to get the latest version, which may
>> solve your problem.
>>
>> As for configuration, DKMS doesn't do anything unless you tell it to.
>> There should be a dkms.conf file somewhere that tells it how to build
>> virtualbox modules.  It will be with the virtualbox stuff, not with
>> the DKMS stuff.  If that conf file is telling DKMS that virtualbox
>> owns a temporary file named system.map, it would be reasonable for
>> DKMS to delete that file after building the modules.
>>
>> I apologize for not knowing what virtualbox is, and not knowing much
>> about Fedora anymore.  I'm not a DKMS dev, just some guy on the
>> Internet trying to help out.  :)
>>
>> --Charlie
>
>



More information about the DKMS-devel mailing list