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

Closed
ppbrown opened this issue Apr 26, 2018 · 3 comments

Comments

@ppbrown
Copy link

ppbrown 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
Copy link
Author

ppbrown 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 modified the milestones: Gccgo, Unreleased Apr 27, 2018
@mikioh
Copy link
Contributor

mikioh commented Apr 27, 2018

/CC @ianlancetaylor

@tklauser
Copy link
Member

This should be fixed by https://golang.org/cl/366195

@golang golang locked and limited conversation to collaborators Mar 15, 2023
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