You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
^
The text was updated successfully, but these errors were encountered:
This also stops x/net/ipv4 from compiling. Exact same errors.
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
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
^
The text was updated successfully, but these errors were encountered: