恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 157|回复: 2

求助:could not find libcrypto

[复制链接]
发表于 2022-5-16 10:07 | 显示全部楼层 |阅读模式
求助,我拉取https://github.com/coolsnowwolf/openwrt源码编译pptp时,其中有一项勾选Netwoking ----> Instant Messaging ----> umurmur-openssl,编译umurmur-openssl总是失败。提示找不到libcrypto。报错如下:



make[3]: Entering directory '/home/ch/openwrt/feeds/packages/net/umurmur'
mkdir -p /home/ch/openwrt/dl
SHELL= flock /home/ch/openwrt/tmp/.umurmur-0.2.16-20161126.tar.xz.flock -c '    /home/ch/openwrt/scripts/download.pl "/home/ch/openwrt/dl" "umurmur-0.2.16-20161126.tar.xz" "6773aebea9aea355a41425e946291bb47bc399f85483bd6532cf26dfc7c801e5" "" || (  /home/ch/openwrt/scripts/dl_github_archive.py --dl-dir="/home/ch/openwrt/dl" --url="https://github.com/umurmur/umurmur.git" --version="fac630135664fda26338d403041b6b6e558a2d6b" --subdir="umurmur-0.2.16-20161126" --source="umurmur-0.2.16-20161126.tar.xz" --hash="6773aebea9aea355a41425e946291bb47bc399f85483bd6532cf26dfc7c801e5" || (    echo "Checking out files from the git repository..."; mkdir -p /home/ch/openwrt/tmp/dl && cd /home/ch/openwrt/tmp/dl && rm -rf umurmur-0.2.16-20161126 && [ \! -d umurmur-0.2.16-20161126 ] && git clone  https://github.com/umurmur/umurmur.git umurmur-0.2.16-20161126 && (cd umurmur-0.2.16-20161126 && git checkout fac630135664fda26338d403041b6b6e558a2d6b && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd umurmur-0.2.16-20161126 && git log -1 --format='\''@%ct'\''` && rm -rf umurmur-0.2.16-20161126/.git &&   tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c umurmur-0.2.16-20161126 |        xz -zc -7e > /home/ch/openwrt/tmp/dl/umurmur-0.2.16-20161126.tar.xz && mv /home/ch/openwrt/tmp/dl/umurmur-0.2.16-20161126.tar.xz /home/ch/openwrt/dl/ && rm -rf umurmur-0.2.16-20161126; );  )    '
+ curl -f --connect-timeout 20 --retry 5 --location --insecure https://sources.openwrt.org/umurmur-0.2.16-20161126.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 75840  100 75840    0     0  47400      0  0:00:01  0:00:01 --:--:-- 47370
touch /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/.prepared_a02a44ca8f7c5a07168546d7d5f8649e_6664517399ebbbc92a37c5bb081b5c53_check
. /home/ch/openwrt/include/shell.sh; xzcat /home/ch/openwrt/dl/umurmur-0.2.16-20161126.tar.xz | tar -C /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126

Applying ./patches/010-mbedtls_fix_includes.patch using plaintext:
patching file src/ssl.h
touch /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/.prepared_a02a44ca8f7c5a07168546d7d5f8649e_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/.configured_*
rm -f /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.umurmur.openssl_installed
(cd /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/ch/openwrt/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/ch/openwrt/staging_dir/host/bin/autom4te AUTOCONF=/home/ch/openwrt/staging_dir/host/bin/autoconf AUTOMAKE=/home/ch/openwrt/staging_dir/host/bin/automake ACLOCAL=/home/ch/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/home/ch/openwrt/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/ch/openwrt/staging_dir/host/bin/libtoolize LIBTOOL=/home/ch/openwrt/staging_dir/host/bin/libtool M4=/home/ch/openwrt/staging_dir/host/bin/m4 AUTOPOINT=true LIBTOOLIZE='/home/ch/openwrt/staging_dir/host/bin/libtoolize --install' /home/ch/openwrt/staging_dir/host/bin/autoreconf -v -f -i -s -B /home/ch/openwrt/staging_dir/host/share/aclocal -I /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/host/share/aclocal -I /home/ch/openwrt/staging_dir/hostpkg/share/aclocal -I /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/share/aclocal -I m4 -I . . || true; fi; );
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/ch/openwrt/staging_dir/host/bin/aclocal -I /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/host/share/aclocal -I /home/ch/openwrt/staging_dir/hostpkg/share/aclocal -I /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/share/aclocal -I m4 -I . --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/ch/openwrt/staging_dir/host/bin/autoconf --include=/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/host/share/aclocal --include=/home/ch/openwrt/staging_dir/hostpkg/share/aclocal --include=/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/ch/openwrt/staging_dir/host/share/aclocal --force
autoreconf: running: /home/ch/openwrt/staging_dir/host/bin/autoheader --include=/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/host/share/aclocal --include=/home/ch/openwrt/staging_dir/hostpkg/share/aclocal --include=/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/ch/openwrt/staging_dir/host/share/aclocal --force
autoreconf: running: /home/ch/openwrt/staging_dir/host/bin/automake --add-missing --force-missing
configure.ac:49: installing './compile'
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:36: installing './install-sh'
configure.ac:36: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
(cd /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/./; if [ -x ./configure ]; then find /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/ -name config.guess | xargs -r chmod u+w; find /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/ -name config.guess | xargs -r -n1 cp --remove-destination /home/ch/openwrt/scripts/config.guess; find /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/ -name config.sub | xargs -r chmod u+w; find /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/ -name config.sub | xargs -r -n1 cp --remove-destination /home/ch/openwrt/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126:umurmur-0.2.16-20161126 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126:umurmur-0.2.16-20161126 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126:umurmur-0.2.16-20161126 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include -I/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/include -I/home/ch/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/include -I/home/ch/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include/fortify -I/home/ch/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include " LDFLAGS="-L/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib -L/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/lib -L/home/ch/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/lib -L/home/ch/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/lib -znow -zrelro "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  --with-ssl=openssl ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/ch/openwrt/include/site/mipsel
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-openwrt-linux-strip... mipsel-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... mipsel-openwrt-linux-gnu
checking whether make supports nested variables... (cached) yes
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-musl-gcc accepts -g... yes
checking for mipsel-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether mipsel-openwrt-linux-musl-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of mipsel-openwrt-linux-musl-gcc... gcc3
checking how to run the C preprocessor... mipsel-openwrt-linux-musl-gcc -E
checking for grep that handles long lines and -e... /home/ch/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/ch/openwrt/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking google/protobuf-c/protobuf-c.h usability... yes
checking google/protobuf-c/protobuf-c.h presence... yes
checking for google/protobuf-c/protobuf-c.h... yes
checking for protobuf_c_message_init in -lprotobuf-c... yes
checking libconfig.h usability... yes
checking libconfig.h presence... yes
checking for libconfig.h... yes
checking for config_init in -lconfig... yes
checking for clock_gettime... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for BN_init in -lcrypto... no
configure: error: could not find libcrypto
make[3]: *** [Makefile:104: /home/ch/openwrt/build_dir/target-mipsel_24kc_musl/umurmur-openssl/umurmur-0.2.16-20161126/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/ch/openwrt/feeds/packages/net/umurmur'
time: package/feeds/packages/umurmur/openssl/compile#2.08#0.57#5.12
make[2]: *** [package/Makefile:113: package/feeds/packages/umurmur/compile] Error 2
make[2]: Leaving directory '/home/ch/openwrt'
make[1]: *** [package/Makefile:107: /home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ch/openwrt'
make: *** [/home/ch/openwrt/include/toplevel.mk:227:world] 错误 2



我到/home/ch/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/目录下确认libcrypto.so和libcrypto.so.1.1都存在,但是为啥提示找不到呢???

在网上没有搜到同样的报错以及解决方法,求大神指导指导。

我的恩山、我的无线 The best wifi forum is right here.
头像被屏蔽
发表于 2022-5-16 11:25 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2022-5-16 19:44 | 显示全部楼层

编译时的报错
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2022-7-7 23:55

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表