Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/net/ipv6: build fails on linux #6164

Closed
eaigner opened this issue Aug 16, 2013 · 5 comments
Closed

x/net/ipv6: build fails on linux #6164

eaigner opened this issue Aug 16, 2013 · 5 comments

Comments

@eaigner
Copy link
Contributor

eaigner commented Aug 16, 2013

Running `go get` on Linux (Ubuntu 12.04) produces errors for go.net/ipv6 dependencies

  $ go get ./...
  
  # code.google.com/p/go.net/ipv6
  code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:83: undefined: syscall.SizeofIPv6MTUInfo
  code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:112: undefined: syscall.SizeofIPv6MTUInfo
  code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:113: undefined: syscall.SizeofIPv6MTUInfo
  code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:142: undefined: syscall.IPv6MTUInfo
  code.google.com/p/go.net/ipv6/icmp.go:30: defer requires function call, not conversion
  code.google.com/p/go.net/ipv6/icmp.go:37: defer requires function call, not conversion
  code.google.com/p/go.net/ipv6/icmp.go:44: defer requires function call, not conversion
  code.google.com/p/go.net/ipv6/icmp_linux.go:10: undefined: syscall.ICMPv6Filter
  code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:13: undefined: syscall.GetsockoptIPv6MTUInfo
  code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:33: undefined: syscall.GetsockoptICMPv6Filter
  code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:33: too many errors
@robpike
Copy link
Contributor

robpike commented Aug 17, 2013

Comment 1:

Labels changed: added priority-soon, removed priority-triage, go1.2maybe.

Owner changed to @mikioh.

Status changed to Accepted.

@mikioh
Copy link
Contributor

mikioh commented Aug 17, 2013

Comment 2:

go.net/ipv6 requires go1.2, so please try w/ tip for now.

Status changed to Retracted.

@eaigner
Copy link
Contributor Author

eaigner commented Aug 19, 2013

Comment 3:

It just strange, because it builds just fine on OSX with Go 1.1

@mikioh
Copy link
Contributor

mikioh commented Aug 20, 2013

Comment 4:

https://code.google.com/p/go/source/browse/ipv6/control.go?repo=net#21
That's fortunate go.net/ipv6 runs w/ Go 1.1, because Go 1.1 contains RFC 2292 knobs in
package syscall.
That's unfortunate other platforms will never run w/ Go 1.1, but they can use RFC 3542
features instead.
Sorry about all of this lazy transitions because it comes from my laziness; In Go 1.0,
embedded RFC 3493 knobs to syscall, In Go 1.1, added scoped-addressing zone support and
RFC 2292 knobs, In Go 1.2, added RFC 3542 knobs and published go.net/ipv6 package. It
took a bit loooooonnng time I expected, but that's the way of the world.

@mikioh
Copy link
Contributor

mikioh commented Nov 5, 2013

Comment 5:

Status changed to Duplicate.

Merged into issue #6548.

@mikioh mikioh added repo-net and removed repo-net labels Dec 23, 2014
@mikioh mikioh changed the title go.net/ipv6: build fails on linux ipv6: build fails on linux Jan 4, 2015
@mikioh mikioh changed the title ipv6: build fails on linux x/net/ipv6: build fails on linux Jul 20, 2015
@golang golang locked and limited conversation to collaborators Jul 20, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants