OpenWrt Forum Archive

Topic: build error in curl (mbetls?) package

The content of this topic has been archived on 26 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, today I'm unable to build because of error in curl. Anyone else also seeing this?

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

Yeasterday everything was ok.

Edit: it's clearly a bug, I compiled without curl and tried to install curl via opkg and it is broken in repo too. I have reported it: https://bugs.lede-project.org/index.php … sk_id=1369

Shucks, I needed curl :-(

(Last edited by nozombian on 16 Feb 2018, 10:26)

You have not provided any details on the source repositories , versions, branches , etc or libs , you are using. How can anyone comment. Also , this should have been posted in the developers forum as I doubt you will get a corrective response here.

Oh, hello to you too ;-) Actually there's no need to be more specific, anyone who git pull current trunk/snapshot and checks curl & libustream-mbedtls in make menuconfig will run into this error. What "repositories, branches, versions, etc or libs" I have no idea, I have them latest. I'm just trying to build in here :-) And because it's more likely to be my error than developer's, I don't bother them unless I'm absolutely sure, which I wasn't at the time of writing my post.

Seems to be fixed now, thanks to whoever patched that!

(Last edited by nozombian on 18 Feb 2018, 22:44)

The discussion might have continued from here.