Viet Le | 1 Apr 2008 02:06
Picon
Gravatar

Re: [CURL][OpenSSL] - OpenSSL libs and/or directories were not found where specified

Hi Daniel,

Thank you very much for your prompt reply & very helpful hint. I've browsed through the config.log file and it helped. The reason is that: OpenSSL was not compiled with ZLIB as it stated so configuration died. I rebuilt OpenSSL with not zlib and enabled zlib in CURL and the things went OK.

Thank you again.

Warmest regards,
Viet.


From: Daniel Stenberg <daniel <at> haxx.se>
Subject: Re: [CURL][OpenSSL] - OpenSSL libs and/or directories were
       not found       where specified
To: libcurl development <curl-library <at> cool.haxx.se>
Message-ID: <Pine.LNX.4.64.0803311353000.5682 <at> yvahk3.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 30 Mar 2008, Viet Le wrote:

> checking for SSL_connect in -lssl... no
> checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect
> in -lssl... (cached) no no
> configure: error: OpenSSL libs and/or directories were not found where
> specified!

If you look in the config.log file after you got this failure, you'll see
further details around the particular test that failed and its failure it if
doesn't give you enough clues to fix this yourself, consider posting the
relevant bits here and we might be able to help!

--
 Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

--
I submit to you that if a man hasn't discovered something he will die for, he isn't fit to live.
(Martin Luther King Jr.)
-----

Thomas Bonham | 1 Apr 2008 05:06

Re: libcurl with in C timeout / error

> curl_easy_perform will return one of the CURLE_* constants in case of
> error.

I really don't know what you mean here. I'm still some what new to C  
programming and this is really my first time using something that  
isn't a POSIX library.

> What do you mean by good and bad urls? If you want to validate
> url syntax, then don't rely on libcurl -- it will try hard to make  
> sense
> of any string you feed it ;-) If bad means "doesn't give any data" for
> you, then any nonzero return code indicates a bad url.

Yes that is what I mean by a bad or good url. If you go to a browser  
page with the url curl.haxx.se you get a 200 back as your code and if  
you go to curl.hexx.se you get a 404 back that is what I'm trying to do.

Thank you,

Thomas

Meir Yanovich | 1 Apr 2008 06:57
Picon

can i statically compile the lib?

Hello all
im new to this lib after searching the web for way to enable my
application to have http post/get sending
now i have 2 questions first is :
can i compile the lib to static lib so i can link it statically with
my application ?
second question is Because i need only basic operations of the http
protocol ( that is send http and recive http )
can i reduce some how the lib size ?
thanks

Dan Fandrich | 1 Apr 2008 07:22
Favicon

Re: can i statically compile the lib?

On Tue, Apr 01, 2008 at 07:57:44AM +0300, Meir Yanovich wrote:
> im new to this lib after searching the web for way to enable my
> application to have http post/get sending

libcurl's a good way to do that!

> now i have 2 questions first is :
> can i compile the lib to static lib so i can link it statically with
> my application ?

Yes.  Make sure to configure libcurl with the --enable-static option
(which is the default), then link your application with the output of
`curl-config --static-libs` (this assumes a UNIX environment of some sort).

> second question is Because i need only basic operations of the http
> protocol ( that is send http and recive http )
> can i reduce some how the lib size ?

Yes, you can disable all the protocols and some features you don't want.
See the "reducing size" section of the docs/INSTALL file.

>>> Dan
--

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

Meir Yanovich | 1 Apr 2008 07:40
Picon

Re: can i statically compile the lib?

Thanks for the fast reply , do you know what i need to do when
compiling in windows?
using vc 6 ?

On Tue, Apr 1, 2008 at 8:22 AM, Dan Fandrich <dan <at> coneharvesters.com> wrote:
> On Tue, Apr 01, 2008 at 07:57:44AM +0300, Meir Yanovich wrote:
>  > im new to this lib after searching the web for way to enable my
>  > application to have http post/get sending
>
>  libcurl's a good way to do that!
>
>
>  > now i have 2 questions first is :
>  > can i compile the lib to static lib so i can link it statically with
>  > my application ?
>
>  Yes.  Make sure to configure libcurl with the --enable-static option
>  (which is the default), then link your application with the output of
>  `curl-config --static-libs` (this assumes a UNIX environment of some sort).
>
>
>  > second question is Because i need only basic operations of the http
>  > protocol ( that is send http and recive http )
>  > can i reduce some how the lib size ?
>
>  Yes, you can disable all the protocols and some features you don't want.
>  See the "reducing size" section of the docs/INSTALL file.
>
>  >>> Dan
>  --
>  http://www.MoveAnnouncer.com              The web change of address service
>           Let webmasters know that your web site has moved
>

Dan Fandrich | 1 Apr 2008 07:59
Favicon

Re: can i statically compile the lib?

On Tue, Apr 01, 2008 at 08:40:40AM +0300, Meir Yanovich wrote:
> Thanks for the fast reply , do you know what i need to do when
> compiling in windows?
> using vc 6 ?

Not personally, but there's a big section on it in the INSTALL file, in
Makefile.vc6, in the FAQ, and in the mailing list archives.

>>> Dan
--

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

Meir Yanovich | 1 Apr 2008 08:13
Picon

Re: can i statically compile the lib?

ok i did it the documents i must say very clear
i compile with the HTTP_ONLY flag in wni32
and the static lib is 480 KB (491,540 bytes)
that is big for me is there any way to make it smaller ?

On Tue, Apr 1, 2008 at 8:59 AM, Dan Fandrich <dan <at> coneharvesters.com> wrote:
> On Tue, Apr 01, 2008 at 08:40:40AM +0300, Meir Yanovich wrote:
>  > Thanks for the fast reply , do you know what i need to do when
>  > compiling in windows?
>  > using vc 6 ?
>
>  Not personally, but there's a big section on it in the INSTALL file, in
>  Makefile.vc6, in the FAQ, and in the mailing list archives.
>
>
>
>  >>> Dan
>  --
>  http://www.MoveAnnouncer.com              The web change of address service
>           Let webmasters know that your web site has moved
>

Dan Fandrich | 1 Apr 2008 08:38
Favicon

Re: can i statically compile the lib?

On Tue, Apr 01, 2008 at 09:13:12AM +0300, Meir Yanovich wrote:
> ok i did it the documents i must say very clear
> i compile with the HTTP_ONLY flag in wni32
> and the static lib is 480 KB (491,540 bytes)
> that is big for me is there any way to make it smaller ?

An optimized HTTP-only libcurl static library for x86 under Linux is about
175 KB.  It could be that your library includes debugging symbols,
or you haven't eliminated all possible extras (e.g. the built-in manual).
If you compile and link a simple curl "hello world" program (look in the
examples directory) you'll get a much better idea of how much of that
is code and how much is overhead.

>>> Dan
--

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

Michal Marek | 1 Apr 2008 09:23
Picon
Gravatar

Re: gknauf: curl/lib Makefile.netware,1.82,1.83

Guenter Knauf wrote:
> Hi Michal,
>> But there's no CABUNDLE variable in the buildsystem :-(. Does the
>> netware build run ./configure? If so, we can define it via AC_SUBST. Or
>> where did it come from before?
> if used it comes from commandline, or evironment var; but usually its
> not defined, and the other case happens where it then get defined to
> use the getenv() call.

Ah, I see. Thanks for fixing it up.

> The whole NetWare build is don with these hand-tweaked Makefiles - no
> configure...
> altough I can compile with cross-gcc - I also have to compile with
> Metrowerks compiler;
> and since I'm no configure wizzard at all its anyway easier for me to work
> with these makefiles.
> 
> If however you are interested in, and have some spare time - then you're
> welcome to contact me privately, and I give you an account on my Linux
> testbox where you could try if you can get configure to work at least with
> gcc-cross....
> I would love to learn from someone who's more advanced how to make configure
> running with NetWare....

Sorry, I'm afraid I won't be of much help. While I have some experience
with autoconf, I have no clue about NetWare (despite being employed by
Novell :-)).

Michal

Daniel Stenberg | 1 Apr 2008 09:57
Picon
Favicon
Gravatar

Re: Simultaneous requests in multi-threaded application

On Mon, 31 Mar 2008, Athari wrote:

> I am developing a crawler which will download files simultaneously, and 
> users need to be able to control each thread, i.e. abort, pause (?), see 
> progress. DNS cache and cookies need to be shared between the handles, and 
> cookies need to be preserved between program runs. What is the most adequate 
> (read: easy) way to do this?

This can be done using the easy interface and multiple threads, or using the 
multi interface in a single thread (with some caveats).

> At first I thought to create necessary number of easy cURL handles sharing
> data using share interface, but this way I will not be able to control
> downloads.

Cannot control them in what way?

> Plus, I did not understand when CURLSHOPT_LOCKFUNC is needed - only when I 
> use a share handle from multiple threads, or when multiple easy handles are 
> used simultaneously?

If you're sharing a share "object" from multiple simultaneous threads you need 
it. If you're carefully only using one at a time you won't need it.

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html


Gmane