jjzjj

gcc - 如何修复对 `nettle_sha256_digest` 的 undefined reference ?

长话短说我正在尝试构建一个使用此依赖项的go项目:https://github.com/mqu/openldap,它又在外部链接lldap和llber库,后者又使用lgnutls,而lgnutls使用lnettle,这就是我遇到的问题。gobuild生成一长串undefinedreference,并且构建失败。这是一个示例:/usr/lib/x86_64-linux-gnu/libgnutls.a(sha-x86-ssse3.o):Infunction`_ctx_init':(.text+0x468):undefinedreferenceto`nettle_sha256_digest'