Development discussion of WireGuard
 help / color / mirror / Atom feed
* Compiling wireguard-go on non linux platforms
@ 2018-02-19 10:42 Johan Henselmans
  0 siblings, 0 replies; only message in thread
From: Johan Henselmans @ 2018-02-19 10:42 UTC (permalink / raw)
  To: wireguard

It seems wireguard-go is not exactly cross-platfrom at the moment, this =
is what happens at the moment when compiling os mac os:

go build -o wireguard-go
# _/Users/johan/projecten/testdevel/go/examples/wireguard-go
./main.go:94:11: undefined: CreateTUNFromFile
./main.go:108:11: undefined: UAPIOpen
./main.go:142:18: too many arguments in call to Daemonize
	have (*os.ProcAttr)
	want ()
./main.go:165:15: undefined: UAPIListen
./tun_darwin.go:178:2: cannot use device (type *NativeTUN) as type =
TUNDevice in return argument:
	*NativeTUN does not implement TUNDevice (missing File method)
make: *** [wireguard-go] Error 2


(Darwin Kernel Version 17.5.0: Mon Jan 29 02:17:30 PST 2018; =
root:xnu-4570.50.257~17/RELEASE_X86_64 x86_64)


I noticed there was some discussion about not having a mac available to =
test cross-platform code. I do.

If there is anything I can do to help to make the code work =
cross-platform, please let me know.

Kind Regards,
=20
Johan Henselmans

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-19 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-19 10:42 Compiling wireguard-go on non linux platforms Johan Henselmans

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).