curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: create rpm for libcurl

From: Kamil Dudka via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 20 May 2019 12:25:27 +0200

On Monday, May 20, 2019 12:15:32 PM CEST surya chandrika wrote:
> On Wed, May 15, 2019 at 5:49 PM Kamil Dudka <kdudka_at_redhat.com> wrote:
> > Why do not you use the %configure macro as in the mentioned spec file?
> > It should take care of setting all the prefixes.
> >
> > > When i install rpm, version is *upgraded to 7.64.0,* but it says
> >
> > *Gnutls*,
> >
> > > instead of* Open ssl*
> >
> > You should have `BuildRequires: openssl-devel` in the spec file to make
> > sure
> > that the build environment of OpenSSL is available while running the
> > build.
>
> I added BuildRequires: openssl-devel` this but then also after installing
> rpm its using gnutls.

`BuildRequires: openssl-devel` just makes rpmbuild check whether openssl-devel
is installed _before_ the build starts. It does not affect the build itself.

> According to
> https://curl.haxx.se/docs/install.html
> It should auto take openssl if nothing is specified. "If you have OpenSSL
> installed in the default search path for your compiler/linker, you don't
> need to do anything special".
> I have installed openssl and openssl-devel via yum install, so it should be
> in default paths.
>
> Note: Am generating rpm in one host and installing rpm in another host. Is
> there any thing else that i need to make sure so that its takes openssl
> instead of gnutls.

You need to check output of the `configure` script and possibly config.log to
figure out why openssl is not used.

It is also possible that you have successfully built curl against openssl but
then you use a different curl executable or libcurl library than the ones that
you have built.

Kamil

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-05-20