The zsys_* files are automatically generated with the cgo tool so they shouldn't be blindly copied. Perhaps you should try to generate on for darwin/arm64 by running the cgo tool manually (perhaps with GOOS=darwin GOARCH=arm64 set). Perhaps a golang.org/x/net maintainer knows better.
- elias On Monday, October 16, 2017 at 2:01:33 PM UTC+2, dumm...@gmail.com wrote: > > Very thanks, I got the library compiled after doing the fix. ( copy > zsys_darwin_amd64.go as zsys_darwin_arm64.go ) > I notice that this socket platform go files content is defined by platform > and bit. so I think zsys_darwin_amd64.go and zsys_darwin_arm64.go should be > same. > > The unlucky thing is the behaviour is invalid. > I use the library to connect server. Server Accept the connection. But > the library didn't send any more data. (The original go code is right and I > use it on the desktop) > > I am not sure whether I did bad fix. It really like that socket didn't > work. > > 在 2017年10月16日星期一 UTC+8下午5:56:45,Elias Naur写道: >> >> I was wrong. The root cause seem to be that the zsys_darwin_arm64.go (for >> iOS arm64) is missing from golang.org/x/net/internal/socket. There is a >> zsys_darwin_arm.go (for iOS arm), so it should be easy to add. You should >> raise an issue on the golang bug tracker. >> >> - elias >> >> On Monday, October 16, 2017 at 11:33:44 AM UTC+2, dumm...@gmail.com >> wrote: >>> >>> Thanks for the reply. But I can go get github.com/xtaci/kcp-go and use >>> it without problem. >>> >>> So I need config something to support socket packing, Right? >>> I am new for golang And feel no way to go when seeing the error and I >>> didn't google the solution about how to fix it. >>> It's very appreciated if you can give me some hints about the root >>> reason of this problem or the possible sollution. >>> >>> 在 2017年10月16日星期一 UTC+8下午5:11:52,Elias Naur写道: >>>> >>>> I think this is a problem with the kcp-go package. Building the package >>>> for darwin/arm64 gives me the same error: >>>> >>>> $ GOOS=darwin GOARCH=arm64 go install github.com/xtaci/kcp-go >>>> # golang.org/x/net/internal/socket >>>> dev/go/src/golang.org/x/net/internal/socket/cmsghdr.go:9:10: >>>> undefined: cmsghdr >>>> >>>> - elias >>>> >>>> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.