2

我正在尝试nettle用 6.0.0 编译 3.0,gmp但我一直缺少符号:

Making all in tools
gcc -g -O2 -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -L..  pkcs1-conv.o misc.o ../getopt.o ../getopt1.o -lhogweed -lnettle -lgmp -o pkcs1-conv
ld: warning: relocation error: R_386_32: file ../getopt.o: symbol optarg: external symbolic relocation against non-allocatable section .debug_info; cannot be processed at runtime: relocation ignored
Undefined                        first referenced

 symbol                             in file

__gmpz_limbs_write                  ../libhogweed.so

__gmpz_limbs_finish                 ../libhogweed.so

__gmpz_limbs_modify                 ../libhogweed.so

__gmpn_zero                         ../libhogweed.so

__gmpz_roinit_n                     ../libhogweed.so

__gmpn_cnd_sub_n                    ../libhogweed.so

__gmpn_cnd_add_n                    ../libhogweed.so

__gmpz_limbs_read                   ../libhogweed.so

ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `pkcs1-conv'
Current working directory /root/nettle-3.0/tools

我将gmp6.0.0 安装到/usr/local,然后 - 在nettle目录中 - 运行./configure --prefix=/usr/local,然后make得到上面的错误。

4

1 回答 1

4

看起来荨麻首先寻找旧版本。你有没有尝试过?

./configure --prefix=/usr/local --with-include-path=/usr/local/include --with-lib-path=/usr/local/lib

我通过使用找到了选项./configure --help

于 2014-09-20T04:38:00.740 回答