fix centos 6 compile

Lucian Cristian luci at
Tue Jun 27 23:24:54 CEST 2017

On 27.06.2017 23:59, Jason A. Donenfeld wrote:
> Isn't EL6 still on 2.6.32, which is far away from the 3.10 that
> WireGuard requires? In that case you'll be running with a custom
> kernel. Why can't you just update your gcc from the same external
> repo, at the same time?
> I just backported to EL7.3 and felt nauseous the whole time. Not sure
> I have the stomach for EL6...

the elrepo kernel for centos 6 is mainline or LT

the kernel is compiled with gcc 4.4.7 and won't run modules compiled 
with newer gcc, the patch is only for older gcc support, not for kernel, 
I don't think that  anyone will complain updating to kernel 4.4+ on el6

the old approach was to compile the module with gcc 4.4.7 commenting the 
two lines in socket.c and after that to build the wg tools with gcc 4.8 
but with this patch the compile is straightforward


More information about the WireGuard mailing list