Charm Crypto Library - 未定義シンボルでユニットテストに失敗しました:BN_is_negative

Charm Crypto Library - 未定義シンボルでユニットテストに失敗しました:BN_is_negative

ソースからPython Charm暗号化ライブラリをビルドしてテストしようとしています。通常はコンパイルされインストールされますが、undefined symbol: BN_is_negative実行時に91の状況が発生しますsudo make test

/charm/charm/core/math/elliptic_curve.so: 未定義シンボル: BN_is_negative
!!!!!!!!!!!!!!!!!!!!!!!!!収集中のエラー91個!!!!!!!!!!!!!!!!!!
================================================== ================================== 3.36秒で91エラー

libcrypto 1.1はこの機能を定義します。

$ objdump -T /usr/local/lib/libcrypto.so.1.1 | grep BN_is_negative 00000000000c5880 g DF .text 000000000000000b OPENSSL_1_1_0 BN_is_negative

しかし、問題は共有ライブラリにあり、integer.soシンボルが定義されていないelliptic_curve.solibcrypto.so.1.0を指しているようです。/lib/x86_64-linux-gnu/libcrypto.so.1.0.0BN_is_negative

私はLD_FLAGSと設定スクリプトを見てlibcryptoの/usr/local/libを指すようにしましたが、楽しかったです。正しい共有ライブラリの場所を設定するには?

charm-crypto ブランチ: 2.7-dev

オペレーティングシステム:Ubuntu 16.04.3 LTS

編集する 以下の提案に従って清掃して再構築しようとしましたが、まだ同じ問題があります。

$ sudo ./configure.sh --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
Install prefix    /usr/local
data directory    /usr/local/share/charm
binary directory  /usr/local/bin
library directory /usr/local/lib
config directory  /usr/local/etc
Source path       /media/dough/Storage/repos/tools/charm
CFLAGS            -O2 -g 
CHARM_CFLAGS       -m64 -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -I/usr/local/include  -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits
LDFLAGS           -m64 -L/usr/local/lib 
make              make
python            /usr/bin/python
python-config     /usr/bin/python-config
build_ext options build_ext 
install           install
host CPU          x86_64
wget              /usr/bin/wget
gprof enabled     no
profiler          no
static build      no
-Werror enabled   no
integer module    yes
ecc module        yes
pairing module    yes
disable benchmark no
libm found        yes
libgmp found      yes
libpbc found      yes
libcrypto found   yes
Documentation     no

ベストアンサー1

おすすめ記事