wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Mike Russo <mike@PaperSolve.com>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Re: src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6
Date: Sat, 1 Sep 2018 23:38:15 +0000	[thread overview]
Message-ID: <5060261aa6a7ea500351b98dde5087c887a98d91.camel@papersolve.com> (raw)
In-Reply-To: <CAK+ZqRqA4BkCLmxnuNfRtNByXaDYv1MpZB44PZrCM_Mx_ncNRw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

While I do definitely recommend their suggestion to use CentOS 7 (or take this opportunity to get on a distro like Debian or Ubuntu that supports easily upgrading to a new major version!) I was able to get this working on my CentOS 6 server using the patch from Lucian here:
https://lists.zx2c4.com/pipermail/wireguard/2017-June/001444.html
This patches version 20170613 which is definitely an older version of Wireguard, but the new client works just fine with it. So you'd have to go get the old release here https://github.com/WireGuard/WireGuard/archive/0.0.20170613.tar.gz paste that message into a file called "c6patch" or something, and then do patch -p0 < c6patch above the directory where you extracted the .tar.gz. Then follow the installation instructions and it should build with the version of gcc installed on CentOS-6.
Oh, but first you'd have to install the kernel-lt and kernel-lt-devel packages from ELRepo http://elrepo.org/tiki/kernel-lt. If wireguard is merged into the mainline, perhaps kernel-ml packages from elrepo will contain it.
There are also a couple of modifications to wg-quick (get rid of "local -n", and the check that uses ip for type of device) but after that it worked great, seriously! ☺
Not sure if they will continue support connecting to older servers however.



--

Michael Russo, Systems Engineer PaperSolve, Inc. 268 Watchogue Road Staten Island, NY 10314 Your random quote for today: One man's Mede is another man's Persian. -- George M. Cohan

[-- Attachment #2: Type: text/html, Size: 2041 bytes --]

      parent reply	other threads:[~2018-09-01 23:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25  2:53 src/crypto/curve25519-x86_64.h:1319: Error: no such instruction while compiling in centos 6 karthik kumar
2018-06-26  0:28 ` Jason A. Donenfeld
2018-06-26  2:57   ` karthik kumar
2018-06-26  3:32     ` Jason A. Donenfeld
2018-06-26  6:10     ` Lucian Cristian
2018-06-26 13:32       ` Sebastian Gottschall
2018-07-03  8:59       ` Vbook A1
2018-07-03  9:04         ` Lucian Cristian
2018-09-01 23:38     ` Mike Russo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5060261aa6a7ea500351b98dde5087c887a98d91.camel@papersolve.com \
    --to=mike@papersolve.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).