Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Feb 16, 2018 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

nozombian:

Package is wrongly compiled in trunk, opkg install curl works, but execution of curl produces this error:
root@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.

@openwrt-bot
Copy link
Author

nozombian:

Sorry, miscopied line, fixed here:
package/network/utils/curl/patches/320-mbedtls_dont_use_deprecated_sha256_function.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant