OpenWrt Forum Archive

Topic: CURL won't compile

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

I'm using BuildRoot to compile OpenWrt images for r38987 (this is my go-to rock solid build for my ar71xx routers). I'm trying to include CURL in the build, but it bombs when compiling. I've tried cleaning, updating, installing feeds & packages, but the result is always the same. All my other packages compile fine, but CURL complains about "undefined reference to `ssl_set_own_cert_rsa'".

wbr@debian:~/openwrt/openwrt.git$ make package/feeds/packages/curl/compile V=s
...
...
OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic -Wno-system-headers -o .libs/curl curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_mfiles.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeenv.o curl-tool_writeout.o curl-tool_xattr.o curl-strtoofft.o curl-strdup.o curl-rawstr.o curl-nonblock.o  -L/home/wbr/openwrt/openwrt.git/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/wbr/openwrt/openwrt.git/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/wbr/openwrt/openwrt.git/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/wbr/openwrt/openwrt.git/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/lib ../lib/.libs/libcurl.so -lpolarssl
../lib/.libs/libcurl.so: undefined reference to `ssl_set_own_cert_rsa'
collect2: ld returned 1 exit status
make[5]: *** [curl] Error 1
make[5]: Leaving directory `/home/wbr/openwrt/openwrt.git/build_dir/target-mips_34kc_uClibc-0.9.33.2/curl-7.35.0/src'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/wbr/openwrt/openwrt.git/build_dir/target-mips_34kc_uClibc-0.9.33.2/curl-7.35.0/src'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/wbr/openwrt/openwrt.git/build_dir/target-mips_34kc_uClibc-0.9.33.2/curl-7.35.0'
make[2]: *** [/home/wbr/openwrt/openwrt.git/build_dir/target-mips_34kc_uClibc-0.9.33.2/curl-7.35.0/.built] Error 2
make[2]: Leaving directory `/home/wbr/openwrt/openwrt.git/feeds/packages/libs/curl'
make[1]: *** [package/feeds/packages/curl/compile] Error 2
make[1]: Leaving directory `/home/wbr/openwrt/openwrt.git'
make: *** [package/feeds/packages/curl/compile] Error 2
wbr@debian:~/openwrt/openwrt.git$

Is this a CURL bug, or am I doing something wrong? Can I set CURL to compile an older version that works with OpenWrt r38987?

Thanks

Thanks for the info. I figured as much.

Finding a rev that works well with my installation is difficult (usb, extroot, hfsplus, batman-adv, dual-radio, tinc), but yes, I suppose it's time to upgrade. So I'm trying r39972 - and everything, including curl, appears to compile properly! But now my extroot won't mount on startup... topic for another thread.

The discussion might have continued from here.