doudu2591 2017-12-13 00:19
浏览 76
已采纳

外部链接crypto / rc4.a失败

I'm having issues compiling code that deep somewhere in itself it tries to link to go's crypto/rc4 but returns with the following linking error:

truncated object file: /usr/local/go/pkg/linux_amd64/crypto/rc4.a: EOF
crypto/rc4.NewCipher: call to external function
crypto/rc4.init: call to external function
crypto/tls.cipherRC4: relocation target crypto/rc4.NewCipher not defined
crypto/tls.cipherRC4: relocation target type.*crypto/rc4.Cipher not defined
crypto/tls.init: relocation target crypto/rc4.init not defined
crypto/tls.cipherRC4: undefined: "crypto/rc4.NewCipher"
crypto/tls.cipherRC4: undefined: "type.*crypto/rc4.Cipher"
crypto/tls.init: undefined: "crypto/rc4.init"

The following are my go variables:

GOPATH=/home/sfines/workspace/audit_system
GOROOT=/usr/local/go

My Go version is : go version go1.9.2 linux/amd64

I've made sure that there is only one version of Go installed. I'm at my wits end.

  • 写回答

1条回答 默认 最新

  • duanli3277 2017-12-13 00:56
    关注

    This is a badly-extracted Go install with missing or partial files. A fresh install (with no errors) fixes the issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

    报告相同问题?

    悬赏问题

    • ¥15 关于网上一个easyx制作的见缝插针小游戏(c++)
    • ¥15 开地址法双散列函数处理碰撞
    • ¥15 想问一下这个是什么情况 虚拟机Linux打不开了
    • ¥15 联通光猫掉注册了怎么重新注册上去
    • ¥15 关于unity开发steamvr程序遇到的问题
    • ¥60 求tc downloader的下载方式
    • ¥15 华为 快捷方式 手电筒 接口
    • ¥15 Qt6.5支不支持Android13开发啊
    • ¥20 网络只能跑一半,应该如何设置
    • ¥20 Python调用百度开发者平台人脸识别接口