我试图编译gnutls,它看起来像是在荨麻中缺少符号。
CC pkix_asn1_tab.lo
CCLD libgnutls.la
Undefined first referenced
symbol in file
nettle_gcm_aes_decrypt nettle/.libs/libcrypto.a(cipher.o)
nettle_rsa_pkcs1_sign_tr nettle/.libs/libcrypto.a(pk.o)
nettle_ecc_scalar_set nettle/.libs/libcrypto.a(pk.o)
nettle_ecc_scalar_get nettle/.libs/libcrypto.a(pk.o)
nettle_sha512_digest nettle/.libs/libcrypto.a(mac.o)
nettle_hmac_sha512_update nettle/.libs/libcrypto.a(mac.o)
...
...
我在nettle src中搜索了这些符号,但无法找到这些符号的定义位置。这是我的find命令的结果。
#define hmac_sha512_update nettle_hmac_sha512_update
#define hmac_sha384_update nettle_hmac_sha512_update
./hmac.h
提前感谢您的帮助, 马特
答案 0 :(得分:0)
似乎指出荨麻和hogweed库在配置期间的位置会有所帮助。
即。这是我的配置行 ./configure --build = x86_64-pc-solaris12 --prefix = / usr / local / lib --libdir = / usr / local / lib CFLAGS =“ - m64 -I / usr / local / include”LDFLAGS =“ - L / usr / local / lib“NETTLE_LIBS =” - L / usr / local / lib -lnettle“NETTLE_CFLAGS =” - I / usr / local / include“HOGWEED_LIBS =” - L / usr / local / lib -lhogweed“HOGWEED_CFLAGS = “-I的/ usr /本地/包括”