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 --]

[-- 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 --]

[-- 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 --]

[-- 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 --]

[-- 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 --]

[-- 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