curl / Mailing Lists / curl-users / Single Mail


Re: 'curl: (1) Error' when using curl with --http2 option

From: rostokus . via curl-users <>
Date: Thu, 22 Jun 2017 13:47:32 +0300

I have cross compiler polarssl and nghhtp2. No I am trying to compile curl.
I am using commands as below:


export CROSS_COMPILE="mipsel-openwrt-linux-uclibc"
export AR=${CROSS_COMPILE}-ar
export AS=${CROSS_COMPILE}-as
export LD=${CROSS_COMPILE}-ld
export RANLIB=${CROSS_COMPILE}-ranlib
export CC=${CROSS_COMPILE}-gcc
export NM=${CROSS_COMPILE}-nm

./configure --prefix=${ROOTDIR}/build_dir --target=${CROSS_COMPILE}
--host=${CROSS_COMPILE} --build=x86_64-pc-linux-gnu --without-ssl

Last command fails with:

*checking for recv... noconfigure: error: Unable to link function recv*

The same issue is mentioned here
and here <>. But
neither of them was addressed...

Please advice.

2017-06-21 16:17 GMT+03:00 Daniel Stenberg <>:

> On Wed, 21 Jun 2017, rostokus . via curl-users wrote:
> root_at_mylinkit:~# curl --version
>> curl 7.40.0 (mipsel-openwrt-linux-gnu) libcurl/7.40.0 PolarSSL/1.3.14
>> Protocols: file ftp ftps http https
>> Features: IPv6 Largefile SSL
> No HTTP/2 support present. The output should otherwise list both nghttp2
> library version and http2 among the Features.
> root@mylinkit:~# curl -v --http2
>> curl: (1) Error
> I can't explain why you get this weird error though. It should just say
> that HTTP/2 isn't supported. But then 7.40.0 is pretty old and I can't
> remember exactly how immature the HTTP/2 support was back then.
> I suspect that nghttp2 is not installed
> Well, you need curl/libcurl to get *built* with support for HTTP/2 so it
> takes a little more than just installing nghttp2.
> p.s. I am read But
>> still it does not explain what exactly is wrong here.
> As you're using the curl tool and not libcurl directly, this is probably a
> better URL to check:
> "Unsupported protocol. This build of curl has no support for this
> protocol"
> --
> /

Received on 2017-06-22