curl-library
Re: strange SSL disabled
Date: Tue, 20 Jul 2004 11:42:10 +0200
I am using Debian not RH
You were right that in /usr/local/lib I have newer version of libcurl and in
/usr/lib I have the older version.
But I compile my program with:
gcc `curl-config --cflags` -c https.c
gcc -o https https.o `curl-config --libs`
# curl-config --libs
-L/usr/local/lib -lcurl -L/usr/local/ssl/lib -lssl -lcrypto -ldl
# curl-config --cflags
-I/usr/local/include
In /usr/local/include and /usr/local/lib I have the newest version of
libcurl.
During make test I get:
********* System characteristics ********
* curl 7.12.0 (i686-pc-linux-gnu)
* libcurl/7.12.0 OpenSSL/0.9.7a
* Host: firma.pl
* System: Linux firma.pl 2.4.23 #1 SMP Sun Apr 11 15:13:43 CEST 2004 i686
unknown
* Server SSL: OFF
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
so I think it means that SSL is enabled, also $ curl https://sourceforge.net
does not return error about https.
I tried your suggestions about copying files from /usr/local/lib to /usr/lib
but it does not help.
I have no idea what to do now.
:-)
thx
Marek
----- Original Message -----
From: "Andy hobbs" <andy_at_trogs.org.uk>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Tuesday, July 20, 2004 11:23 AM
Subject: Re: strange SSL disabled
> Hi,
>
> What os are you using?
>
> redhat by default installs the curl libs to /usr/lib/libcurl.....
>
> When you compile libcurl and do a make install it will install to
> /usr/local/lib
>
> curl-config will report the newer version with ssl working, however the
> os will use the older version.
>
> The best solution I have found to this is to simply copy the curl libs
> from /usr/local/lib into /usr/lib
>
> Hope this helps
>
> Andy
>
>
>
> On Tue, 2004-07-20 at 09:44, Marek Elsner wrote:
> > Hello,
> >
> > I compiled libcurl with SSL support, but I get a strange behaviour of
> > libcurl.
> >
> > $ curl-config --feature
> > SSL
> >
> > $curl -s https://sourceforge.net
> >
> > also everything is correct, I have connection with page
> > https://sourceforge.net
> >
> > When I am trying to get connection with https page via c program I get:
> >
> > " * libcurl was built with SSL disabled, https: not supported!"
> >
> > OpenSSL 0.9.7d
> > Compiling libcurl:
> >
> > $ ./configure --with-ssl
> > $ make
> > $ make install
> >
> >
> > I do not know why I can get content of https page via curl -s, and I
cannot
> > do it via c program.
> >
> > thx
> >
> > M
> >
> >
> >
> >
> --
> Andy hobbs <andy_at_trogs.org.uk>
>
>
>
Received on 2004-07-20