Skip to contentSkip to conversation

Error compiling backports-3.16-1 on a device with a 2.6.30 kernel

DISCUSSION Javier Casas Marin 2 participants 2 messages Sep 2, 2014

lore
Share & tools
lore
#0 lore raw

I am trying to compile backports-3.16-1 on a device with a 2.6.30 linux kernel and I get this error:

$ make
  CC [M]  /root/modules/backports-3.16-1/compat/main.o
In file included from /root/modules/backports-3.16-1/backport-include/linux/kernel.h:9,
                 from 
/mnt/cfdata/src/linux-2.6.30/arch/x86/include/asm/system.h:10,
                 from 
/mnt/cfdata/src/linux-2.6.30/arch/x86/include/asm/processor.h:17,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from 
/root/modules/backports-3.16-1/backport-include/linux/list.h:3,
                 from include/linux/module.h:9,
                 from 
/root/modules/backports-3.16-1/backport-include/linux/module.h:3,
                 from /root/modules/backports-3.16-1/compat/main.c:1:
/root/modules/backports-3.16-1/backport-include/linux/printk.h:5:31: error: linux/printk.h: No such file or directory
make[6]: *** [/root/modules/backports-3.16-1/compat/main.o] Error 1
make[5]: *** [/root/modules/backports-3.16-1/compat] Error 2
make[4]: *** [_module_/root/modules/backports-3.16-1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2

it looks like I can't compile it for kernel 2.6.30 because some headers files are missing (printk.h was inside kernel.h in previous kernel versions like in 2.6.30). But the documentation says that kernels 2.6.27 and older are supported, so what am I doing wrong?

please, I'm stuck, any hint or information will be very appreciated!

Thanks

#1 lore raw
Quoted 3 lines · Javier Casas Marin

I am trying to compile backports-3.16-1 on a device with a 2.6.30 linux kernel and I get this error:

......

Quoted 4 lines

it looks like I can't compile it for kernel 2.6.30 because some headers files are missing (printk.h was inside kernel.h in previous kernel versions like in 2.6.30). But the documentation says that kernels 2.6.27 and older are supported, so what am I doing wrong?

Backports-3.16 does not support kernel version < 3.0 any more, you have to use backports-3.14

Hauke