|
Message-ID: <20180203233015.GA8913@pi3.com.pl> Date: Sun, 4 Feb 2018 00:30:15 +0100 From: Adam Zabrocki <pi3@....com.pl> To: lkrg-users@...ts.openwall.com Subject: Re: How to compile? What's the compile log? On Sat, Feb 03, 2018 at 08:39:08PM +0000, Kamil Kapturkiewicz wrote: > On 03/02/18 19:45, Kamil Kapturkiewicz wrote: > > 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. > > > Still no luck: > > H16TOFW firmware/edgeport/boot.fw > H16TOFW firmware/edgeport/boot2.fw > H16TOFW firmware/edgeport/down.fw > H16TOFW firmware/edgeport/down2.fw > IHEX firmware/edgeport/down3.bin > IHEX2FW firmware/whiteheat_loader.fw > 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:66: recipe for target 'all' failed > make: *** [all] Error 1 > > -- > skype. kamil.kapturkiewicz > tel/signal. +44 758 306 8467 > -- pi3 (pi3ki31ny) - pi3 (at) itsec pl http://pi3.com.pl
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.