Skip to contentSkip to conversation

Wireguard not building on pre-rc1 4.19 kernels (Fedora)

DISCUSSION Bruno Wolff III 2 participants 4 messages Aug 20, 2018 – Aug 24, 2018

lore
Share & tools
lore
#0 lore raw

[bruno@cerberus src]$ make KERNELDIR=/lib/modules/4.19.0-0.rc0.git6.1.fc30.x86_64/build clean all

 CLEAN   /home/bruno/WireGuard/src/.tmp_versions
 CLEAN   /home/bruno/WireGuard/src/tools/{wg,*.o,*.d}
 CC [M]  /home/bruno/WireGuard/src/main.o
In file included from <command-line>:
/home/bruno/WireGuard/src/compat/compat.h:684:20: error: static declaration of ‘rng_is_initialized’ follows non-static declaration
static inline bool rng_is_initialized(void)
                   ^~~~~~~~~~~~~~~~~~
In file included from ./include/linux/net.h:22,
                from ./include/linux/skbuff.h:29,
                from ./include/linux/ip.h:20,
                from /home/bruno/WireGuard/src/compat/compat.h:640,
                from <command-line>:
./include/linux/random.h:39:13: note: previous declaration of ‘rng_is_initialized’ was here
extern bool rng_is_initialized(void);
            ^~~~~~~~~~~~~~~~~~

make[2]: *** [scripts/Makefile.build:311: /home/bruno/WireGuard/src/main.o] Error 1 make[1]: *** [Makefile:1514: _module_/home/bruno/WireGuard/src] Error 2
make: *** [Makefile:36: module] Error 2
[bruno@cerberus src]$

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

This will be because Jason's RNG patch landed in mainline, but the kernel version number won't get bumped (so compat.h can use it properly) until 4.19 is released.

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCgAdFiEEYKVBwe43zZh/jkxPivBzdIirMBIFAlt606cACgkQivBzdIir MBLYqA//Rs14E903b5RY3bj4DZdVjCPnweLpo53rzQxZ76MsnlsdjGoxKmXL/Eqj rpRATduQfHQvRr0Y9ZfTKMH9XSO9spqy+HOEGm77Y8WWlgIkbO3PSc49SRLmtKT1 mSaqQotHyxOWD21xC9Cif1cr5LMg2+MXcb2badNDB5TLmz5XfK8ku20f1o7TBsFl TWeuGnvM3BE8z6Q0iX+C3vGhxrRuoxaY3p/zeYpGXBCUmLGragui08T5N5FqSjFW 61hE1pvdsl3i4usj/5L3jRe3BjbnsXtCRSPUaCcB0r6Xo9QLvL40f+viGBlkUl75 IhfSIDS32kfWDWPN9Ugp3+PmdB8TMGL7En0nOobWiBLynKHTdXh4Jk+SPmubMyj+ gyRJ/1BjeV1a4sOqlVyFv+mfctwOqs3k9nG3MB0HVRQKLK9fbE/yrHrecTjauRSN ld+VNpAk9reek2hifrwvI11zfQyvPikUKsxXezsB+nD6HbH/lzIj5f+iSs4AMMom rDCwADdWGFFlb1LYzgkds9GFT/AjE5zSyVy3EszM8+H2gvHhCa79uDi+lsM5wTa2 hijEskUTyOgcmz3TnAcY1HbFU8TNTYK/grlJXrevYKAZODGq86cYJEhOIv7TKgm0 GHhGQD2KORmpeMyla1UQmXWyG6TyungfrKAjT4WDoYZzl8nrc+o= =j5JX
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 6 lines · Aaron Jones

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

This will be because Jason's RNG patch landed in mainline, but the kernel version number won't get bumped (so compat.h can use it properly) until 4.19 is released.

Thanks. That was enough information to tell me what to do to get it to work with a temporary hack. I'm using a successful build as I type this.