所以,我一直在尝试用gccgo来制造法兰绒(https://github.com/coreos/flannel)。以下是我在构建过程中遇到的错误:
$ ./build
Building flanneld...
# github.com/coreos/flannel/pkg/ip
gopath/src/github.com/coreos/flannel/pkg/ip/tun.go:57:37: error: reference to undefined identifier ‘syscall.TUNSETIFF’
err = ioctl(int(tun.Fd()), syscall.TUNSETIFF, uintptr(unsafe.Pointer(&ifr)))
^我在用gccgo-5和gcc-5.有人能帮我弄清楚到底是什么问题吗?提亚
发布于 2015-07-08 10:33:16
所以我找到了答案。问题是gccgo没有为我的拱门定义TUNSETIFF。我相应地定义了这个值,并且能够使它工作。谢谢@JimB
https://stackoverflow.com/questions/31181747
复制相似问题