source: networking/netlibs/curl.xml@ b115946

10.0 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 b115946 was b115946, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to curl-7.69.0.
Update to ntp-4.2.8p14.
Update to vala-0.48.0.
Update to fribidi-1.0.9.

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

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