From: Johan Henselmans <johan@netsense.nl>
To: wireguard@lists.zx2c4.com
Subject: Compiling wireguard-go on non linux platforms
Date: Mon, 19 Feb 2018 11:42:32 +0100 [thread overview]
Message-ID: <2B0A40BA-F968-49BC-9845-33EE7226DE24@netsense.nl> (raw)
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
reply other threads:[~2018-02-19 10:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=2B0A40BA-F968-49BC-9845-33EE7226DE24@netsense.nl \
--to=johan@netsense.nl \
--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).