|
Message-ID: <125f1c59-1f45-90c5-dec7-ae6d65deb193@wp.pl> Date: Sat, 3 Feb 2018 19:45:19 +0000 From: Kamil Kapturkiewicz <horizn@...pl> To: lkrg-users@...ts.openwall.com Subject: Re: How to compile? On 03/02/18 19:28, Adam Zabrocki wrote: >> with sudo: >> >> ... >> >> IHEX2FW firmware/whiteheat.fw >> IHEX2FW firmware/keyspan_pda/keyspan_pda.fw >> IHEX2FW firmware/keyspan_pda/xircom_pgs.fw >> IHEX firmware/cpia2/stv0672_vp4.bin >> IHEX firmware/yam/1200.bin >> IHEX firmware/yam/9600.bin >> make[1]: Leaving directory '/usr/src/linux-4.4.111' >> mkdir -p "output" >> mv /p_lkrg.ko "output" >> mv: cannot stat '/p_lkrg.ko': No such file or directory >> Makefile:63: recipe for target 'all' failed >> make: *** [all] Error 1 >> >> Slackware 14.2 64bit with stock kernel 4.4.111 >> >> -- >> skype. kamil.kapturkiewicz >> tel/signal. +44 758 306 8467 >> > You are hitting problem with backporting some of the kernel patches and each > distro handles it differently. Linux kernel changed the layout of 'struct > module' via dollowing patch: > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/include/linux/module.h?id=7523e4dc5057 > > (among other for better caching) but many distros may or may not backport this > patch to own kernel tree for other kernels as well. LKRG takes this into > account and this patch is handled by comparing which version of the kernel tree > supports it via: > > file "lkrg-main/src/modules/kmod/p_kmod_wrapper.c" > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 6) > ... > #else > ... > #endif > > It look like your kernel tree doesn't have that patch yet, so the easiest > option is to change this line: > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 6) > > to be e.g.: > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) > > and it should compile correctly. We can't do it for the official LKRG > repository because other kernel will have opposite problem. > > Thanks, > Adam > 19:38 horizn@...esktop: ~/Downloads/lkrg-main $ sudo make make -C /lib/modules/4.4.111/build M= modules make[1]: Entering directory '/usr/src/linux-4.4.111' CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh Building modules, stage 2. MODPOST 3609 modules make[1]: Leaving directory '/usr/src/linux-4.4.111' mkdir -p "output" mv /p_lkrg.ko "output" mv: cannot stat '/p_lkrg.ko': No such file or directory Makefile:66: recipe for target 'all' failed make: *** [all] Error 1 Will try again but with make clean first. -- skype. kamil.kapturkiewicz tel/signal. +44 758 306 8467
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.