source: networking/netlibs/curl.xml@ a4b38ab

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a4b38ab was a4b38ab, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Update to curl-7.65.1
Add missing testsuite dependency to libssh2

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21669 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.xz">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "7809378831d10fde18f9f6ae033cd3f3">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "79 MB (add 14 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (add 13 SBU for tests)">
13]>
14
15<sect1 id="curl" xreflabel="cURL-&curl-version;">
16 <?dbhtml filename="curl.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cURL-&curl-version;</title>
24
25 <indexterm zone="curl">
26 <primary sortas="a-cURL">cURL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cURL</title>
31
32 <para>
33 The <application>cURL</application> package contains an utility
34 and a library used for transferring files with URL syntax to any of
35 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
36 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
37 and upload files can be incorporated into other programs to support
38 functions like streaming media.
39 </para>
40
41 &lfs84_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&curl-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&curl-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &curl-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &curl-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &curl-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &curl-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref role="runtime" linkend="make-ca"/> (runtime)
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="c-ares"/>,
87 <xref linkend="gnutls"/>,
88 <xref linkend="libidn2"/>,
89 <xref linkend="libpsl"/>,
90 <xref linkend="libssh2"/>,
91 <xref linkend="mitkrb"/>,
92 <xref linkend="nghttp2"/>,
93 <xref linkend="openldap"/>,
94 <xref linkend="samba"/>,
95 <ulink url="https://github.com/google/brotli/">Brotli</ulink>,
96 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
97 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>, and
98 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
99 PolarSSL), and -->
100 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
101 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
102 </para>
103
104 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
105 <para role="optional">
106 <!-- stunnel is still listed in the docs as required, but 7.58.0
107 tests completed happily without it, although the test for unit1323
108 reported that the tool set in the test case does not exist - ken -->
109 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
110 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
111 </para>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/curl"/>
115 </para>
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of cURL</title>
120
121 <para>
122 Install <application>cURL</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>./configure --prefix=/usr \
127 --disable-static \
128 --enable-threaded-resolver \
129 --with-ca-path=/etc/ssl/certs &amp;&amp;
130make</userinput></screen>
131
132<!--
133 For version 7.54.1 I got:
134 TESTDONE: 869 tests out of 869 reported OK: 100%
135 TESTDONE: 1092 tests were considered during 1080 seconds
136
137 <para>
138 Running the test suite is optional. About 2% of the tests fail. Increase
139 in test time by each failed test is about 10%. Tests SBU above was
140 obtained disabling failing tests, with:
141 </para>
142
143 2017-10-29 - bdubbs
144 For version 7.56.1 I had a lot of test failures which included long
145 timeouts. Could not determine the cause of the timeouts or failures,
146 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
147 external packages.
148
149 2017-12-01 - bdubbs
150 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
151 installed this time. Best guess is that servers are not available.
152
153 2018-08-01 - renodr
154 No test failures, but I didn't have any of the optional dependencies except
155 for c-ares and libidn2. I might re-run this test suite before release with
156 all of the optional deps, but right now, it isn't a priority - rather
157 the security fix is.
158-->
159
160 <para>
161 To run the test suite, issue: <command>make test</command>.
162 Test 1560 is known to fail.
163 <!-- Two (of 857) tests
164 fail for unknown reasons, and all tests fail is valgrind is installed. Moving
165 valgrind out of $PATH is recommended if you wish to run the test suite while
166 it is installed. -->
167<!--
168Added by Pierre for curl-7.59.0:
169no stunnel, no valgrind, no options
170Warning: smb server unexpectedly alive
171Warning: dict server unexpectedly alive
172TESTDONE: 950 tests out of 951 reported OK: 99%
173TESTFAIL: These test cases failed: 1148
174TESTDONE: 1189 tests were considered during 362 seconds.
175__________
176
177 if stunnel and valgrind are not installed, and also most options
178 (I had rtmpdump), the tests complete without problems.
179Warning: smb server unexpectedly alive
180Warning: dict server unexpectedly alive
181TESTDONE: 938 tests out of 938 reported OK: 100%
182TESTDONE: 1175 tests were considered during 355 seconds.
183 and no. I don't have smb - so commenting the rest of this:
184 To run the test suite, issue: <command>make test</command>. Many tests
185 may fail that depend on optional dependencies that may not be installed
186 or upstream servers that may not be available, especially for tests
187 numbered 700 and above.
188 Test time may be significantly increase due to hanging tests that fail.
189__________
190Added by Bruce for curl-7.60.0:
191TESTDONE: 957 tests out of 959 reported OK: 99%
192TESTFAIL: These test cases failed: 1139 1140
193TESTDONE: 1196 tests were considered during 1184 seconds.
194From the logs, both appear to be ipv6 releated.
195
196==========
197Added by Douglas for curl-7.61.0:
198TESTDONE: 961 tests out of 961 reported OK: 100%
199TESTDONE: 1202 tests were considered during 338 seconds.
200I only have c-ares and libidn2 installed, I will likely try before release
201with all optional dependencies in the book installed.
202
203=========
2047.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
205It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
206c-ares, libpsl, and libidn1/2 installed. - Doug
207
208========
2097.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
210All 1098 tests report OK.
211
212=======
213Added by Douglas for curl-7.64.0:
214TESTDONE: 1022 tests out of 1023 reported OK: 99%
215TESTFAIL: These tests cases failed: 323
216TESTDONE: 1235 tests were considered during 1279 seconds.
217For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
218OpenLDAP, Samba, stunnel, and Valgrind installed.
219=======
220Added by bdubbs for curl-7.64.1:
221TESTDONE: 1022 tests out of 1025 reported OK: 99%
222TESTFAIL: These test cases failed: 323 1139 1140
223TESTDONE: 1242 tests were considered during 1483 seconds
224
225=======
226Added by renodr for curl-7.65.1:
227TESTDONE: 996 tests out of 997 reported OK: 99%
228TESTFAIL: These test cases failed: 1560
229TESTDONE: 1249 tests were considered during 1091 seconds.
230All dependencies except for externals installed.
231-->
232 </para>
233
234 <para>
235 Now, as the <systemitem class="username">root</systemitem>
236 user:
237 </para>
238
239<screen role="root"><userinput>make install &amp;&amp;
240
241rm -rf docs/examples/.deps &amp;&amp;
242
243find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
244
245install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
246cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
247
248 <para>
249 Simple tests to the new installed <command>curl</command>:
250 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
251 and
252 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
253 Inspect the locally created trace files <filename>debugdump.txt</filename>
254 and <filename>d.txt</filename>, which contain version downloaded
255 files information, etc. One file has the time for each action logged.
256 </para>
257 </sect2>
258
259 <sect2 role="commands">
260 <title>Command Explanations</title>
261
262 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
263 href="../../xincludes/static-libraries.xml"/>
264
265 <para>
266 <parameter>--enable-threaded-resolver</parameter>: This switch enables
267 <application>cURL</application>'s builtin threaded DNS resolver.
268 </para>
269
270 <para>
271 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
272 switch sets the location of the BLFS Certificate Authority store.
273 </para>
274
275 <para>
276 <option>--with-gssapi</option>: This parameter adds
277 <application>Kerberos 5</application> support to
278 <filename class="libraryfile">libcurl</filename>.
279 </para>
280
281 <para>
282 <option>--without-ssl --with-gnutls</option>: Use to
283 build with <application>GnuTLS</application> support
284 instead of <application>OpenSSL</application> for SSL/TLS.
285 </para>
286
287 <para>
288 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
289 this switch instead of <parameter>--with-ca-path</parameter> if
290 building with <application>GnuTLS</application> support
291 instead of <application>OpenSSL</application> for SSL/TLS.
292 </para>
293
294 <para>
295 <option>--with-libssh2</option>: This paramater adds
296 <application>SSH</application> support to cURL. This is disabled
297 by default.
298 </para>
299
300 <para>
301 <option>--enable-ares</option>: This paramater adds
302 support for DNS resolution through the c-ares library. It is disabled
303 by default, but does speed up DNS resolution queries.
304 </para>
305
306 <para>
307 <command>find docs ... -exec rm {} \;</command>: This command removes
308 <filename>Makefiles</filename> and man files from the documentation
309 directory that would otherwise be installed by the commands that follow.
310 </para>
311
312 </sect2>
313
314 <sect2 role="content">
315 <title>Contents</title>
316
317 <segmentedlist>
318 <segtitle>Installed Programs</segtitle>
319 <segtitle>Installed Library</segtitle>
320 <segtitle>Installed Directories</segtitle>
321
322 <seglistitem>
323 <seg>
324 curl and curl-config
325 </seg>
326 <seg>
327 libcurl.so
328 </seg>
329 <seg>
330 /usr/include/curl and
331 /usr/share/doc/curl-&curl-version;
332 </seg>
333 </seglistitem>
334 </segmentedlist>
335
336 <variablelist>
337 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
338 <?dbfo list-presentation="list"?>
339 <?dbhtml list-presentation="table"?>
340
341 <varlistentry id="curl-prog">
342 <term><command>curl</command></term>
343 <listitem>
344 <para>
345 is a command line tool for transferring files with URL syntax.
346 </para>
347 <indexterm zone="curl curl-prog">
348 <primary sortas="b-curl">curl</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="curl-config">
354 <term><command>curl-config</command></term>
355 <listitem>
356 <para>
357 prints information about the last compile, like libraries
358 linked to and prefix setting.
359 </para>
360 <indexterm zone="curl curl-config">
361 <primary sortas="b-curl-config">curl-config</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="libcurl">
367 <term><filename class="libraryfile">libcurl.so</filename></term>
368 <listitem>
369 <para>
370 provides the API functions required by
371 <command>curl</command> and other programs.
372 </para>
373 <indexterm zone="curl libcurl">
374 <primary sortas="c-libcurl">libcurl.so</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 </variablelist>
380
381 </sect2>
382
383</sect1>
Note: See TracBrowser for help on using the repository browser.