WireGuard Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [WireGuard] wg doesn't build on 4.7 kernels
@ 2016-06-29 20:22 Bruno Wolff III
  2016-06-29 20:48 ` Jason A. Donenfeld
  0 siblings, 1 reply; 10+ messages in thread
From: Bruno Wolff III @ 2016-06-29 20:22 UTC (permalink / raw)
  To: wireguard

make[1]: Entering directory '/usr/src/kernels/4.7.0-0.rc5.git1.2.fc25.x86_64'
  CC [M]  /home/bruno/WireGuard/src/device.o
/home/bruno/WireGuard/src/device.c: In function ‘xmit’:
/home/bruno/WireGuard/src/device.c:112:5: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
  dev->trans_start = jiffies;
     ^~

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 20:22 [WireGuard] wg doesn't build on 4.7 kernels Bruno Wolff III
@ 2016-06-29 20:48 ` Jason A. Donenfeld
  2016-06-29 20:59   ` Bruno Wolff III
  0 siblings, 1 reply; 10+ messages in thread
From: Jason A. Donenfeld @ 2016-06-29 20:48 UTC (permalink / raw)
  To: Bruno Wolff III; +Cc: wireguard

Fixed here:
https://git.zx2c4.com/WireGuard/commit/?id=530ee2b2906af4d635d4d5bbabda5250b4a2b33e

Thanks for the report.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 20:48 ` Jason A. Donenfeld
@ 2016-06-29 20:59   ` Bruno Wolff III
  2016-06-29 21:05     ` Jason A. Donenfeld
  0 siblings, 1 reply; 10+ messages in thread
From: Bruno Wolff III @ 2016-06-29 20:59 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

On Wed, Jun 29, 2016 at 22:48:26 +0200,
  "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:
>Fixed here:
>https://git.zx2c4.com/WireGuard/commit/?id=530ee2b2906af4d635d4d5bbabda5250b4a2b33e

That fixed the reported problem, but another 4.7 change is causing problems.
See: https://www.spinics.net/lists/kernel/msg2233003.html

These are the errors:
/home/bruno/WireGuard/src/crypto/chacha20poly1305.c: In function ‘chacha20poly1305_init’:
/home/bruno/WireGuard/src/crypto/chacha20poly1305.c:40:30: error: ‘cpu_has_xmm2’ undeclared (first use in this function)
  chacha20poly1305_use_sse2 = cpu_has_xmm2;
                              ^~~~~~~~~~~~
/home/bruno/WireGuard/src/crypto/chacha20poly1305.c:40:30: note: each undeclared identifier is reported only once for each function it appears in
/home/bruno/WireGuard/src/crypto/chacha20poly1305.c:42:30: error: ‘cpu_has_avx’ undeclared (first use in this function)
  chacha20poly1305_use_avx2 = cpu_has_avx && cpu_has_avx2 &&
                              ^~~~~~~~~~~
/home/bruno/WireGuard/src/crypto/chacha20poly1305.c:42:45: error: ‘cpu_has_avx2’ undeclared (first use in this function)
  chacha20poly1305_use_avx2 = cpu_has_avx && cpu_has_avx2 &&
                                             ^~~~~~~~~~~~
scripts/Makefile.build:289: recipe for target '/home/bruno/WireGuard/src/crypto/chacha20poly1305.o' failed
make[2]: *** [/home/bruno/WireGuard/src/crypto/chacha20poly1305.o] Error 1
Makefile:1461: recipe for target '_module_/home/bruno/WireGuard/src' failed
make[1]: *** [_module_/home/bruno/WireGuard/src] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.7.0-0.rc5.git1.2.fc25.x86_64'
Makefile:34: recipe for target 'module' failed
make: *** [module] Error 2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 20:59   ` Bruno Wolff III
@ 2016-06-29 21:05     ` Jason A. Donenfeld
  2016-06-29 21:06       ` Bruno Wolff III
  0 siblings, 1 reply; 10+ messages in thread
From: Jason A. Donenfeld @ 2016-06-29 21:05 UTC (permalink / raw)
  To: Bruno Wolff III; +Cc: wireguard

Yep yep I know, sorry. Sent the last email prematurely. Working on
that as we speak, about to push a commit.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 21:05     ` Jason A. Donenfeld
@ 2016-06-29 21:06       ` Bruno Wolff III
  2016-06-29 21:15         ` Jason A. Donenfeld
  0 siblings, 1 reply; 10+ messages in thread
From: Bruno Wolff III @ 2016-06-29 21:06 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

On Wed, Jun 29, 2016 at 23:05:01 +0200,
  "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:
>Yep yep I know, sorry. Sent the last email prematurely. Working on
>that as we speak, about to push a commit.

No worries. I'm hoping this saves me from having to figure out how to 
do an ipsec tunnel and works better than using an ssh tunnel. I've been 
warned it's not production, so a hiccup or two is not unexpected.
Thanks for doing this work.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 21:06       ` Bruno Wolff III
@ 2016-06-29 21:15         ` Jason A. Donenfeld
  2016-06-29 21:19           ` Bruno Wolff III
  0 siblings, 1 reply; 10+ messages in thread
From: Jason A. Donenfeld @ 2016-06-29 21:15 UTC (permalink / raw)
  To: Bruno Wolff III; +Cc: wireguard

https://git.zx2c4.com/WireGuard/commit/?id=ad901c597deea9ea88d26614833ecedf3a23f808

Voila !

Should build now.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 21:15         ` Jason A. Donenfeld
@ 2016-06-29 21:19           ` Bruno Wolff III
  2016-06-29 21:23             ` Jason A. Donenfeld
  2016-06-30  0:06             ` Bruno Wolff III
  0 siblings, 2 replies; 10+ messages in thread
From: Bruno Wolff III @ 2016-06-29 21:19 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

On Wed, Jun 29, 2016 at 23:15:52 +0200,
  "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:
>
>Should build now.

It builds on x86_64 and i686 now. Thanks.

I probably won't get a tunnel tested until tomorrow.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 21:19           ` Bruno Wolff III
@ 2016-06-29 21:23             ` Jason A. Donenfeld
  2016-06-30  0:06             ` Bruno Wolff III
  1 sibling, 0 replies; 10+ messages in thread
From: Jason A. Donenfeld @ 2016-06-29 21:23 UTC (permalink / raw)
  To: Bruno Wolff III; +Cc: wireguard

On Wed, Jun 29, 2016 at 11:19 PM, Bruno Wolff III <bruno@wolff.to> wrote:
>
> It builds on x86_64 and i686 now. Thanks.
>
> I probably won't get a tunnel tested until tomorrow.


Wonderful. If you want to just quickly test whether things work at
all, there's the quick demo server script:

https://www.wireguard.io/quickstart/#demo-server

$ sudo contrib/client-server-example/client.sh
$ chromium http://192.168.4.1
$ ping 192.168.4.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-29 21:19           ` Bruno Wolff III
  2016-06-29 21:23             ` Jason A. Donenfeld
@ 2016-06-30  0:06             ` Bruno Wolff III
  2016-06-30  0:41               ` Jason A. Donenfeld
  1 sibling, 1 reply; 10+ messages in thread
From: Bruno Wolff III @ 2016-06-30  0:06 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

On Wed, Jun 29, 2016 at 16:19:21 -0500,
  Bruno Wolff III <bruno@wolff.to> wrote:
>On Wed, Jun 29, 2016 at 23:15:52 +0200,
> "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:
>>
>>Should build now.
>
>It builds on x86_64 and i686 now. Thanks.
>
>I probably won't get a tunnel tested until tomorrow.

I got it tested, and it appears to be working fine. I am able to run ssh 
across the tunnel.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [WireGuard] wg doesn't build on 4.7 kernels
  2016-06-30  0:06             ` Bruno Wolff III
@ 2016-06-30  0:41               ` Jason A. Donenfeld
  0 siblings, 0 replies; 10+ messages in thread
From: Jason A. Donenfeld @ 2016-06-30  0:41 UTC (permalink / raw)
  To: Bruno Wolff III; +Cc: wireguard

On Thu, Jun 30, 2016 at 2:06 AM, Bruno Wolff III <bruno@wolff.to> wrote:
> I got it tested, and it appears to be working fine. I am able to run ssh
> across the tunnel.

Great to hear!

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-30  0:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29 20:22 [WireGuard] wg doesn't build on 4.7 kernels Bruno Wolff III
2016-06-29 20:48 ` Jason A. Donenfeld
2016-06-29 20:59   ` Bruno Wolff III
2016-06-29 21:05     ` Jason A. Donenfeld
2016-06-29 21:06       ` Bruno Wolff III
2016-06-29 21:15         ` Jason A. Donenfeld
2016-06-29 21:19           ` Bruno Wolff III
2016-06-29 21:23             ` Jason A. Donenfeld
2016-06-30  0:06             ` Bruno Wolff III
2016-06-30  0:41               ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox