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/internal/socket: "//go:linkname is only supported for functions" when using gccgo on solaris #25114

Open
ppbrown opened this issue Apr 26, 2018 · 2 comments

Comments

@ppbrown
Copy link

commented Apr 26, 2018

go version go1.8.3 gccgo (GCC) 7.3.0 solaris/amd64

latest clone of x/net

errors follow:

golang.org/x/net/internal/socket

internal/socket/sys_solaris.go:29:3: error: procGetsockopt is not a function; //go:linkname is only supported for functions
//go:linkname procGetsockopt libc___xnet_getsockopt
^
internal/socket/sys_solaris.go:31:3: error: procRecvmsg is not a function; //go:linkname is only supported for functions
//go:linkname procRecvmsg libc___xnet_recvmsg
^
internal/socket/sys_solaris.go:32:3: error: procSendmsg is not a function; //go:linkname is only supported for functions
//go:linkname procSendmsg libc___xnet_sendmsg
^
internal/socket/sys_solaris.go:30:3: error: procSetsockopt is not a function; //go:linkname is only supported for functions
//go:linkname procSetsockopt libc_setsockopt
^

@gopherbot gopherbot modified the milestones: Unreleased, Gccgo Apr 26, 2018

@ppbrown

This comment has been minimized.

Copy link
Author

commented Apr 26, 2018

This also stops x/net/ipv4 from compiling. Exact same errors.

@mikioh mikioh changed the title x/net/icmp fails to compile with gccgo and solaris x/net/internal/socket: "//go:linkname is only supported for functions" when using gccgo on solaris Apr 27, 2018

@mikioh mikioh added the help wanted label Apr 27, 2018

@mikioh mikioh modified the milestones: Gccgo, Unreleased Apr 27, 2018

@mikioh

This comment has been minimized.

Copy link
Contributor

commented Apr 27, 2018

@mikioh mikioh added the OS-Solaris label Apr 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.