cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-892045 ] Static build of libcurl does not work

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 06 Feb 2004 12:08:48 -0800

Bugs item #892045, was opened at 2004-02-06 12:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=892045&group_id=976

Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel M. Albro (albro)
Assigned to: Daniel Stenberg (bagder)
Summary: Static build of libcurl does not work

Initial Comment:
Operating system is Linux 2.4.24smp Debian unstable, also
Linux 2.4.18smp RedHat 7.3, also
Linux 2.4.21smp Fedora Core 1.

Version of libcurl is 7.11.0

I have a program that uses libcurl to download files
via http, using
the curl_easy_... functions. Sequence is

curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 10);
curl_easy_setopt(curl, CURLOPT_FILETIME, 1);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
                           write_to_memory);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,
write_header_to_memory);
(up to here works fine)
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_FILE, &file_info);
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, &file_info);
curl_easy_perform(curl);

The interesting thing is, if I compile libcurl
dynamically, this works fine.
Also, if I compile an older version (7.10.5 of libcurl
with --disable-shared), this also works fine. However,
if I compile libcurl 7.11.0 with --disable-shared, the
curl_easy_perform line returns an error code.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=892045&group_id=976
Received on 2004-02-06