Re: Problem to compile Kernel 3.18.55 in fork.c:341

From: Randy Dunlap
Date: Fri Jul 21 2017 - 11:19:55 EST


On 07/21/2017 06:40 AM, Sam Przyswa (Perso) wrote:
> Hi all !
>
> I try to compile the kernel 3.18.55 I got this error message during 'make deb-pkg' :
>
> kernel/built-in.o: In function `dup_task_struct':
> /home/samp/kernel/linux-3.18.55/kernel/fork.c:341: undefined reference to `get_random_long'
> Makefile:927: recipe for target 'vmlinux' failed
> make[2]: *** [vmlinux] Error 1
> scripts/package/Makefile:90: recipe for target 'deb-pkg' failed
> make[1]: *** [deb-pkg] Error 2
> Makefile:1233: recipe for target 'deb-pkg' failed
> make: *** [deb-pkg] Error 2
>
> What's wrong ?
>
> Thanks for your help.

This was fixed in 3.18.56. See
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=v3.18.62&id=2bc281ebacf969770597fad415547016f0457b53



--
~Randy