[FS#1369] curl won't comile because of error: implicit declaration of function 'mbedtls_sha256'

LEDE Bugs lede-bugs at lists.infradead.org
Fri Feb 16 01:21:29 PST 2018


A new Flyspray task has been opened.  Details are below. 

User who did this - Noah Zombian (nozombian) 

Attached to Project - OpenWrt/LEDE Project
Summary - curl won't comile because of error: implicit declaration of function 'mbedtls_sha256'
Task Type - Bug Report
Category - Packages
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Package is wrongly compiled in trunk, opkg install curl works, but execution of curl produces this error:
root at OpenWrt:/tmp# curl
Error loading shared library libmbedcrypto.so.0: No such file or directory (needed by /usr/bin/curl)
Error loading shared library libmbedcrypto.so.0: No such file or directory (needed by /usr/lib/libcurl.so.4)
Error relocating /usr/lib/libcurl.so.4: mbedtls_sha256: symbol not found

Make produces this error:
make[3]: Entering directory `/home/me/openwrt/package/network/utils/curl'
rm -f /home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/.built
touch /home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/.built_check
make  -C /home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0 DESTDIR="/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/ipkg-install" CC="mips-openwrt-linux-musl-gcc" install
make[4]: Entering directory `/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0'
Making install in lib
make[5]: Entering directory `/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/lib'
  CC       vtls/libcurl_la-mbedtls.lo
vtls/mbedtls.c: In function 'Curl_mbedtls_sha256sum':
vtls/mbedtls.c:1032:3: error: implicit declaration of function 'mbedtls_sha256' [-Werror=implicit-function-declaration]
   mbedtls_sha256(input, inputlen, sha256sum, 0);
   ^
cc1: some warnings being treated as errors
make[5]: *** [vtls/libcurl_la-mbedtls.lo] Error 1
make[5]: Leaving directory `/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/lib'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0'
make[3]: *** [/home/me/openwrt/build_dir/target-mips_24kc_musl/curl-7.58.0/.built] Error 2
make[3]: Leaving directory `/home/me/openwrt/package/network/utils/curl'
make[2]: *** [package/network/utils/curl/compile] Error 2
make[2]: Leaving directory `/home/me/openwrt'
make[1]: *** [/home/me/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/me/openwrt'
make: *** [world] Error 2

Probably all devices are affected.


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1369



More information about the lede-bugs mailing list