WireGuard Archive on lore.kernel.org
 help / Atom feed
* Re: about wireguard-go
       [not found] <mailman.1.1539079201.20756.wireguard@lists.zx2c4.com>
@ 2018-10-09 10:23 ` Brian Candler
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Candler @ 2018-10-09 10:23 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1118 bytes --]

On 09/10/2018 11:00, wireguard-request@lists.zx2c4.com wrote:
> In fact :
>
> [nicolas@linux wireguard-go-0.0.20180613]$ printf 'package main\nconst
> UseTheKernelModuleInstead = 0xdeadbabe\n' > ireallywantobuildon_linux.go
> [nicolas@linux wireguard-go-0.0.20180613]$ make
> Makefile:7: *** Do not build this for Linux. Instead use the Linux kernel
> module. See wireguard.com/install/ for more info..  Stop.

Look in the Makefile 
<https://github.com/WireGuard/wireguard-go/blob/master/Makefile>:

ifeq ($(shell go env GOOS),linux)
ifeq ($(wildcard .git),)
$(error Do not build this for Linux. Instead use the Linux kernel 
module. See wireguard.com/install/ for more info.)
else
$(shell printf 'package main\nconst UseTheKernelModuleInstead = 
0xdeadbabe\n' > ireallywantobuildon_linux.go)
endif
endif

Also see 
https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html

It looks like you need to move the .git directory out of the way before 
you build - or just modify the Makefile. And you shouldn't need to 
manually create ireallywantobuildon_linux.go, because the Makefile does 
it for you.


[-- Attachment #1.2: Type: text/html, Size: 1845 bytes --]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/10/2018 11:00,
      <a class="moz-txt-link-abbreviated" href="mailto:wireguard-request@lists.zx2c4.com">wireguard-request@lists.zx2c4.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:mailman.1.1539079201.20756.wireguard@lists.zx2c4.com">
      <pre wrap="">In fact :

[nicolas@linux wireguard-go-0.0.20180613]$ printf 'package main\nconst
UseTheKernelModuleInstead = 0xdeadbabe\n' &gt; ireallywantobuildon_linux.go
[nicolas@linux wireguard-go-0.0.20180613]$ make
Makefile:7: *** Do not build this for Linux. Instead use the Linux kernel
module. See wireguard.com/install/ for more info..  Stop.</pre>
    </blockquote>
    <p>Look in the <a moz-do-not-send="true"
        href="https://github.com/WireGuard/wireguard-go/blob/master/Makefile">Makefile</a>:</p>
    <p>ifeq ($(shell go env GOOS),linux)<br>
      ifeq ($(wildcard .git),)<br>
      $(error Do not build this for Linux. Instead use the Linux kernel
      module. See wireguard.com/install/ for more info.)<br>
      else<br>
      $(shell printf 'package main\nconst UseTheKernelModuleInstead =
      0xdeadbabe\n' &gt; ireallywantobuildon_linux.go)<br>
      endif<br>
      endif</p>
    <p>Also see
<a class="moz-txt-link-freetext" href="https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html">https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html</a></p>
    <p>It looks like you need to move the .git directory out of the way
      before you build - or just modify the Makefile. And you shouldn't
      need to manually create ireallywantobuildon_linux.go, because the
      Makefile does it for you.<br>
    </p>
  </body>
</html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: about wireguard-go
  2018-10-09  9:24   ` nicolas prochazka
@ 2018-10-09  9:27     ` nicolas prochazka
  0 siblings, 0 replies; 5+ messages in thread
From: nicolas prochazka @ 2018-10-09  9:27 UTC (permalink / raw)
  To: kexianbin; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 1267 bytes --]

In fact :

[nicolas@linux wireguard-go-0.0.20180613]$ printf 'package main\nconst
UseTheKernelModuleInstead = 0xdeadbabe\n' > ireallywantobuildon_linux.go
[nicolas@linux wireguard-go-0.0.20180613]$ make
Makefile:7: *** Do not build this for Linux. Instead use the Linux kernel
module. See wireguard.com/install/ for more info..  Stop.


Le mar. 9 oct. 2018 à 11:24, nicolas prochazka <prochazka.nicolas@gmail.com>
a écrit :

> thanks a lot
> Regards
> NIcolas Prochazka
>
> Le mar. 9 oct. 2018 à 11:17, KeXianbin(http://diyism.com) <
> kexianbin@diyism.com> a écrit :
>
>> Some hint here:
>> https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40
>>
>> On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <
>> prochazka.nicolas@gmail.com> wrote:
>>
>>> Hello,
>>> We need to compile wireguard-go on linux, because we are using a closed
>>> linux, under we cannot compile module,
>>> how can we do ? make on wireguard-go tells us that is not recommend on
>>> linux
>>>
>>> Regards,
>>> Nicolas Prochazka
>>>
>>> _______________________________________________
>>> WireGuard mailing list
>>> WireGuard@lists.zx2c4.com
>>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>>
>>>
>>

[-- Attachment #1.2: Type: text/html, Size: 2603 bytes --]

<div dir="ltr"><div dir="ltr"><div>In fact : <br></div><div><br>[nicolas@linux wireguard-go-0.0.20180613]$ printf &#39;package main\nconst UseTheKernelModuleInstead = 0xdeadbabe\n&#39; &gt; ireallywantobuildon_linux.go<br>[nicolas@linux wireguard-go-0.0.20180613]$ make<br>Makefile:7: *** Do not build this for Linux. Instead use the Linux kernel module. See <a href="http://wireguard.com/install/">wireguard.com/install/</a> for more info..  Stop.<br><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 9 oct. 2018 à 11:24, nicolas prochazka &lt;<a href="mailto:prochazka.nicolas@gmail.com">prochazka.nicolas@gmail.com</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>thanks a lot <br></div><div>Regards</div><div>NIcolas Prochazka<br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 9 oct. 2018 à 11:17, KeXianbin(<a href="http://diyism.com" target="_blank">http://diyism.com</a>) &lt;<a href="mailto:kexianbin@diyism.com" target="_blank">kexianbin@diyism.com</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Some hint here: <a href="https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40" target="_blank">https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <span dir="ltr">&lt;<a href="mailto:prochazka.nicolas@gmail.com" target="_blank">prochazka.nicolas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, <br></div><div>We need to compile wireguard-go on linux, because we are using a closed linux, under we cannot compile module, <br></div><div>how can we do ? make on wireguard-go tells us that is not recommend on linux</div><div><br></div><div>Regards, <br></div><div>Nicolas Prochazka<br></div></div>
<br>_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: about wireguard-go
  2018-10-09  9:17 ` KeXianbin(http://diyism.com)
@ 2018-10-09  9:24   ` nicolas prochazka
  2018-10-09  9:27     ` nicolas prochazka
  0 siblings, 1 reply; 5+ messages in thread
From: nicolas prochazka @ 2018-10-09  9:24 UTC (permalink / raw)
  To: kexianbin; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]

thanks a lot
Regards
NIcolas Prochazka

Le mar. 9 oct. 2018 à 11:17, KeXianbin(http://diyism.com) <
kexianbin@diyism.com> a écrit :

> Some hint here:
> https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40
>
> On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <
> prochazka.nicolas@gmail.com> wrote:
>
>> Hello,
>> We need to compile wireguard-go on linux, because we are using a closed
>> linux, under we cannot compile module,
>> how can we do ? make on wireguard-go tells us that is not recommend on
>> linux
>>
>> Regards,
>> Nicolas Prochazka
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 1773 bytes --]

<div dir="ltr"><div>thanks a lot <br></div><div>Regards</div><div>NIcolas Prochazka<br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 9 oct. 2018 à 11:17, KeXianbin(<a href="http://diyism.com">http://diyism.com</a>) &lt;<a href="mailto:kexianbin@diyism.com">kexianbin@diyism.com</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Some hint here: <a href="https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40" target="_blank">https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <span dir="ltr">&lt;<a href="mailto:prochazka.nicolas@gmail.com" target="_blank">prochazka.nicolas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, <br></div><div>We need to compile wireguard-go on linux, because we are using a closed linux, under we cannot compile module, <br></div><div>how can we do ? make on wireguard-go tells us that is not recommend on linux</div><div><br></div><div>Regards, <br></div><div>Nicolas Prochazka<br></div></div>
<br>_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
<br></blockquote></div><br></div>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: about wireguard-go
  2018-10-09  9:14 nicolas prochazka
@ 2018-10-09  9:17 ` KeXianbin(http://diyism.com)
  2018-10-09  9:24   ` nicolas prochazka
  0 siblings, 1 reply; 5+ messages in thread
From: KeXianbin(http://diyism.com) @ 2018-10-09  9:17 UTC (permalink / raw)
  To: nicolas prochazka; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]

Some hint here:
https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40

On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <
prochazka.nicolas@gmail.com> wrote:

> Hello,
> We need to compile wireguard-go on linux, because we are using a closed
> linux, under we cannot compile module,
> how can we do ? make on wireguard-go tells us that is not recommend on
> linux
>
> Regards,
> Nicolas Prochazka
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>

[-- Attachment #1.2: Type: text/html, Size: 1300 bytes --]

<div dir="ltr"><div dir="ltr">Some hint here: <a href="https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40">https://gist.github.com/diyism/60aa6ca24df772a4928f1aced65e72ee#file-bargeos-on-digitalocean-L40</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 9, 2018 at 5:14 PM, nicolas prochazka <span dir="ltr">&lt;<a href="mailto:prochazka.nicolas@gmail.com" target="_blank">prochazka.nicolas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, <br></div><div>We need to compile wireguard-go on linux, because we are using a closed linux, under we cannot compile module, <br></div><div>how can we do ? make on wireguard-go tells us that is not recommend on linux</div><div><br></div><div>Regards, <br></div><div>Nicolas Prochazka<br></div></div>
<br>______________________________<wbr>_________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/<wbr>mailman/listinfo/wireguard</a><br>
<br></blockquote></div><br></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* about wireguard-go
@ 2018-10-09  9:14 nicolas prochazka
  2018-10-09  9:17 ` KeXianbin(http://diyism.com)
  0 siblings, 1 reply; 5+ messages in thread
From: nicolas prochazka @ 2018-10-09  9:14 UTC (permalink / raw)
  To: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 223 bytes --]

Hello,
We need to compile wireguard-go on linux, because we are using a closed
linux, under we cannot compile module,
how can we do ? make on wireguard-go tells us that is not recommend on linux

Regards,
Nicolas Prochazka

[-- Attachment #1.2: Type: text/html, Size: 329 bytes --]

<div dir="ltr"><div>Hello, <br></div><div>We need to compile wireguard-go on linux, because we are using a closed linux, under we cannot compile module, <br></div><div>how can we do ? make on wireguard-go tells us that is not recommend on linux</div><div><br></div><div>Regards, <br></div><div>Nicolas Prochazka<br></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1539079201.20756.wireguard@lists.zx2c4.com>
2018-10-09 10:23 ` about wireguard-go Brian Candler
2018-10-09  9:14 nicolas prochazka
2018-10-09  9:17 ` KeXianbin(http://diyism.com)
2018-10-09  9:24   ` nicolas prochazka
2018-10-09  9:27     ` nicolas prochazka

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox