source: networking/netlibs/curl.xml@ 14726fe

10.1 11.0 11.1 11.2 11.3 12.0 12.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 14726fe was 14726fe, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to curl-7.73.0
Update to glib2-2.66.2 (time critical fix, see the mailing lists)
Fix a regression in avahi that affects systems with IPv6 enabled and multiple NICs.

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

  • Property mode set to 100644
File size: 15.7 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 "d7df02d3b78b625fee4dd765808a6eb6">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "94 MB (add 17 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (add 14 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 &lfs10_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="brotli"/>,
87 <xref linkend="c-ares"/>,
88 <xref linkend="gnutls"/>,
89 <xref linkend="libidn2"/>,
90 <xref linkend="libpsl"/>,
91 <xref linkend="libssh2"/>,
92 <xref linkend="mitkrb"/>,
93 <xref linkend="nghttp2"/>,
94 <xref linkend="openldap"/>,
95 <xref linkend="samba"/>,
96 <ulink url="https://www.secureauth.com/labs/open-source-tools/impacket/">impacket</ulink>,
97 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
98 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
99 <ulink url="https://github.com/ngtcp2/ngtcp2/">ngtcp2</ulink>,
100 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
101 PolarSSL), and -->
102 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
103 <ulink url="https://github.com/cloudflare/quiche">quiche</ulink>, and
104 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
105 </para>
106
107 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
108 <para role="optional">
109 <!-- stunnel is still listed in the docs as required, but 7.58.0
110 tests completed happily without it, although the test for unit1323
111 reported that the tool set in the test case does not exist - ken -->
112 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
113 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
114 </para>
115
116 <para condition="html" role="usernotes">User Notes:
117 <ulink url="&blfs-wiki;/curl"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of cURL</title>
123
124 <para>
125 Install <application>cURL</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>./configure --prefix=/usr \
130 --disable-static \
131 --enable-threaded-resolver \
132 --with-ca-path=/etc/ssl/certs &amp;&amp;
133make</userinput></screen>
134
135<!--
136 For version 7.54.1 I got:
137 TESTDONE: 869 tests out of 869 reported OK: 100%
138 TESTDONE: 1092 tests were considered during 1080 seconds
139
140 <para>
141 Running the test suite is optional. About 2% of the tests fail. Increase
142 in test time by each failed test is about 10%. Tests SBU above was
143 obtained disabling failing tests, with:
144 </para>
145
146 2017-10-29 - bdubbs
147 For version 7.56.1 I had a lot of test failures which included long
148 timeouts. Could not determine the cause of the timeouts or failures,
149 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
150 external packages.
151
152 2017-12-01 - bdubbs
153 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
154 installed this time. Best guess is that servers are not available.
155
156 2018-08-01 - renodr
157 No test failures, but I didn't have any of the optional dependencies except
158 for c-ares and libidn2. I might re-run this test suite before release with
159 all of the optional deps, but right now, it isn't a priority - rather
160 the security fix is.
161-->
162
163 <para>
164 To run the test suite, issue: <command>make test</command>.
165 <!-- Three tests, 1700, 1701, and 1702, are known to fail due to
166 missing executables from the nghttp2 package.-->
167 </para>
168<!-- Two (of 857) tests
169fail for unknown reasons, and all tests fail is valgrind is installed. Moving
170valgrind out of $PATH is recommended if you wish to run the test suite while
171it is installed.
172
173Added by Pierre for curl-7.59.0:
174no stunnel, no valgrind, no options
175Warning: smb server unexpectedly alive
176Warning: dict server unexpectedly alive
177TESTDONE: 950 tests out of 951 reported OK: 99%
178TESTFAIL: These test cases failed: 1148
179TESTDONE: 1189 tests were considered during 362 seconds.
180__________
181
182 if stunnel and valgrind are not installed, and also most options
183 (I had rtmpdump), the tests complete without problems.
184Warning: smb server unexpectedly alive
185Warning: dict server unexpectedly alive
186TESTDONE: 938 tests out of 938 reported OK: 100%
187TESTDONE: 1175 tests were considered during 355 seconds.
188 and no. I don't have smb - so commenting the rest of this:
189 To run the test suite, issue: <command>make test</command>. Many tests
190 may fail that depend on optional dependencies that may not be installed
191 or upstream servers that may not be available, especially for tests
192 numbered 700 and above.
193 Test time may be significantly increase due to hanging tests that fail.
194__________
195Added by Bruce for curl-7.60.0:
196TESTDONE: 957 tests out of 959 reported OK: 99%
197TESTFAIL: These test cases failed: 1139 1140
198TESTDONE: 1196 tests were considered during 1184 seconds.
199From the logs, both appear to be ipv6 releated.
200
201==========
202Added by Douglas for curl-7.61.0:
203TESTDONE: 961 tests out of 961 reported OK: 100%
204TESTDONE: 1202 tests were considered during 338 seconds.
205I only have c-ares and libidn2 installed, I will likely try before release
206with all optional dependencies in the book installed.
207
208=========
2097.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
210It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
211c-ares, libpsl, and libidn1/2 installed. - Doug
212
213========
2147.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
215All 1098 tests report OK.
216
217=======
218Added by Douglas for curl-7.64.0:
219TESTDONE: 1022 tests out of 1023 reported OK: 99%
220TESTFAIL: These tests cases failed: 323
221TESTDONE: 1235 tests were considered during 1279 seconds.
222For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
223OpenLDAP, Samba, stunnel, and Valgrind installed.
224=======
225Added by bdubbs for curl-7.64.1:
226TESTDONE: 1022 tests out of 1025 reported OK: 99%
227TESTFAIL: These test cases failed: 323 1139 1140
228TESTDONE: 1242 tests were considered during 1483 seconds
229
230=======
231Added by renodr for curl-7.65.1:
232TESTDONE: 996 tests out of 997 reported OK: 99%
233TESTFAIL: These test cases failed: 1560
234TESTDONE: 1249 tests were considered during 1091 seconds.
235All dependencies except for externals installed.
236=======
237Added by bdubbs for curl-7.65.2:
238TESTDONE: 1034 tests out of 1036 reported OK: 99%
239TESTFAIL: These test cases failed: 323 1560
240TESTDONE: 1254 tests were considered during 1362 seconds.
241Time above does not include test build time.
242All dependencies except for externals installed.
243=======
244Added by bdubbs for curl-7.65.3:
245TESTDONE: 1031 tests out of 1036 reported OK: 99%
246TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
247TESTDONE: 1254 tests were considered during 1364 seconds.
248
249The tests that fail seem to be somewhat random. What happened between
250yesterday and today that that tests 1139 1140 1173 now fail?
251
252=======
253Added by bdubbs for curl-7.68.0:
254TESTDONE: 1066 tests out of 1071 reported OK: 99%
255TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
256TESTDONE: 1290 tests were considered during 1515 seconds.
257
258=======
259Added by bdubbs for curl-7.69.0:
260TESTDONE: 074 tests out of 1079 reported OK: 99%
261TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
262TESTDONE: 1320 tests were considered during 1514 seconds.
263
264For curl-7.69.1, 1082 tests out of 1086 reported OK. 1560 now passes.
2651330 tests were considered during 1528 seconds.
266
267======
268Added by renodr for curl-7.70.0:
269TESTDONE: 1062 tests out of 1062 reported OK: 100%
270TESTDONE: 1352 tests were considered during 1218 seconds.
271Tests were ran with all dependencies present except for stunnel.
272impacket only seems to add one extra test to the mix as well.
273
274======
275Added by renodr for curl-7.71.0:
276TESTDONE: 1072 tests out of 1072 reported OK: 100%
277TESTDONE: 1364 tests were considered during 1202 seconds.
278Tests were run similarly to 7.70.0 - all deps except for stunnel.
279
280======
281Added by renodr for curl-7.71.1:
282TESTDONE: 1076 tests out of 1076 reported OK: 100%
283TESTDONE: 1368 tests were considered during 1207 seconds.
284Tests were run similarly to 7.71.0, including impacket, but no stunnel.
285
286======
287Added by renodr for curl-7.72.0:
288TESTDONE: 1094 tests out of 1097 reported OK: 99%
289TESTFAIL: These test cases failed: 1700 1701 1702
290TESTDONE: 1374 tests were considered during 1285 seconds.
291Tests have all BLFS dependencies with the exception of stunnel;
292and the optional impacket python module was installed.
293Tests seem to be failing due to a missing 'nghttpx' executable
294used to start a test server.
295
296======
297Added by renodr for curl-7.73.0:
298TESTDONE: 1121 tests out of 1121 reported OK: 100%
299TESTDONE: 1387 tests were considered during 1303 seconds.
300Tests have all BLFS dependencies installed with the exception of stunnel,
301as well as the optional impacket installed.
302-->
303
304 <para>
305 Now, as the <systemitem class="username">root</systemitem>
306 user:
307 </para>
308
309<screen role="root"><userinput>make install &amp;&amp;
310
311rm -rf docs/examples/.deps &amp;&amp;
312
313find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
314
315install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
316cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
317
318 <para>
319 Simple tests to the new installed <command>curl</command>:
320 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
321 and
322 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
323 Inspect the locally created trace files <filename>debugdump.txt</filename>
324 and <filename>d.txt</filename>, which contain version downloaded
325 files information, etc. One file has the time for each action logged.
326 </para>
327 </sect2>
328
329 <sect2 role="commands">
330 <title>Command Explanations</title>
331
332 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
333 href="../../xincludes/static-libraries.xml"/>
334
335 <para>
336 <parameter>--enable-threaded-resolver</parameter>: This switch enables
337 <application>cURL</application>'s builtin threaded DNS resolver.
338 </para>
339
340 <para>
341 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
342 switch sets the location of the BLFS Certificate Authority store.
343 </para>
344
345 <para>
346 <option>--with-gssapi</option>: This parameter adds
347 <application>Kerberos 5</application> support to
348 <filename class="libraryfile">libcurl</filename>.
349 </para>
350
351 <para>
352 <option>--without-ssl --with-gnutls</option>: Use to
353 build with <application>GnuTLS</application> support
354 instead of <application>OpenSSL</application> for SSL/TLS.
355 </para>
356
357 <para>
358 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
359 this switch instead of <parameter>--with-ca-path</parameter> if
360 building with <application>GnuTLS</application> support
361 instead of <application>OpenSSL</application> for SSL/TLS.
362 </para>
363
364 <para>
365 <option>--with-libssh2</option>: This paramater adds
366 <application>SSH</application> support to cURL. This is disabled
367 by default.
368 </para>
369
370 <para>
371 <option>--enable-ares</option>: This paramater adds
372 support for DNS resolution through the c-ares library. It is disabled
373 by default, but does speed up DNS resolution queries.
374 </para>
375
376 <para>
377 <command>find docs ... -exec rm {} \;</command>: This command removes
378 <filename>Makefiles</filename> and man files from the documentation
379 directory that would otherwise be installed by the commands that follow.
380 </para>
381
382 </sect2>
383
384 <sect2 role="content">
385 <title>Contents</title>
386
387 <segmentedlist>
388 <segtitle>Installed Programs</segtitle>
389 <segtitle>Installed Library</segtitle>
390 <segtitle>Installed Directories</segtitle>
391
392 <seglistitem>
393 <seg>
394 curl and curl-config
395 </seg>
396 <seg>
397 libcurl.so
398 </seg>
399 <seg>
400 /usr/include/curl and
401 /usr/share/doc/curl-&curl-version;
402 </seg>
403 </seglistitem>
404 </segmentedlist>
405
406 <variablelist>
407 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
408 <?dbfo list-presentation="list"?>
409 <?dbhtml list-presentation="table"?>
410
411 <varlistentry id="curl-prog">
412 <term><command>curl</command></term>
413 <listitem>
414 <para>
415 is a command line tool for transferring files with URL syntax.
416 </para>
417 <indexterm zone="curl curl-prog">
418 <primary sortas="b-curl">curl</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="curl-config">
424 <term><command>curl-config</command></term>
425 <listitem>
426 <para>
427 prints information about the last compile, like libraries
428 linked to and prefix setting.
429 </para>
430 <indexterm zone="curl curl-config">
431 <primary sortas="b-curl-config">curl-config</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="libcurl">
437 <term><filename class="libraryfile">libcurl.so</filename></term>
438 <listitem>
439 <para>
440 provides the API functions required by
441 <command>curl</command> and other programs.
442 </para>
443 <indexterm zone="curl libcurl">
444 <primary sortas="c-libcurl">libcurl.so</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 </variablelist>
450
451 </sect2>
452
453</sect1>
Note: See TracBrowser for help on using the repository browser.