[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread Elias Naur
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

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread dummyedu
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

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread 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,

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread dummyedu
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

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-16 Thread 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 - el

[go-nuts] Re: gomobile bind doesn't work for socket.

2017-10-15 Thread dummyedu
I add a simple test case. // +build linux darwin freebsd package kcpgousage import ( "log" kcp "github.com/xtaci/kcp-go" ) func Test() { log.Printf("KCP SNMP:%+v", kcp.DefaultSnmp.Copy()) } go bind this file will have similor errors. 在 2017年10月16日星期一 UTC+8上午11:45:18,dumm...@gmail.com写道: >