source: networking/netlibs/curl.xml@ 5a66d6ac

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind 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 5a66d6ac was 5a66d6ac, checked in by Douglas R. Reno <renodr@…>, 6 years ago

Update to libuv-1.23.1

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

  • Property mode set to 100644
File size: 11.5 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 " ">
[2d8ad23]9 <!ENTITY curl-md5sum "feb1856fcdb79ba0386c8e41b02e487d">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "69 MB (add 13 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (add 5.6 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
[048b9a46]41 &lfs83_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>
[dc775a26]76
[3e89149]77 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
[dc775a26]78
[355495ce]79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
[2198a32]81 <xref role="runtime" linkend="make-ca"/> (runtime)
[355495ce]82 </para>
83
[bf8ac01]84 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]85 <para role="optional">
[4464d405]86 <xref linkend="c-ares"/>,
[2eb903f]87 <xref linkend="gnutls"/>,
[531f138]88 <xref linkend="libidn2"/>,
[1ad3510e]89 <xref linkend="libpsl"/>,
[fee79e2]90 <xref linkend="libssh2"/>,
[355495ce]91 <xref linkend="mitkrb"/>,
[0c702b61]92 <xref linkend="nghttp2"/>,
[fad8db2]93 <xref linkend="openldap"/>,
[4949bda0]94 <xref linkend="samba"/>,
[fad8db2]95 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
[67cc05e]96 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
[4c3c7f43]97 <ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
98 PolarSSL), and
[c18fd2e6]99 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
[355495ce]100 </para>
101
[d714f22]102 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
[355495ce]103 <para role="optional">
[d714f22]104 <!-- stunnel is still listed in the docs as required, but 7.58.0
105 tests completed happily without it, although the test for unit1323
106 reported that the tool set in the test case does not exist - ken -->
[f346a49]107 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
[1ad3510e]108 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
[355495ce]109 </para>
[c5e7d76]110
[061ec9d]111 <para condition="html" role="usernotes">User Notes:
[355495ce]112 <ulink url="&blfs-wiki;/curl"/>
113 </para>
[bf8ac01]114 </sect2>
[dc775a26]115
[bf8ac01]116 <sect2 role="installation">
[3e89149]117 <title>Installation of cURL</title>
[dc775a26]118
[355495ce]119 <para>
120 Install <application>cURL</application> by running the following
121 commands:
122 </para>
[dc775a26]123
[58d5000]124<screen><userinput>./configure --prefix=/usr \
[30b7db74]125 --disable-static \
126 --enable-threaded-resolver \
[038b4c75]127 --with-ca-path=/etc/ssl/certs &amp;&amp;
[bf8ac01]128make</userinput></screen>
[dc775a26]129
[8ffdb08]130<!--
[58d5000]131 For version 7.54.1 I got:
132 TESTDONE: 869 tests out of 869 reported OK: 100%
133 TESTDONE: 1092 tests were considered during 1080 seconds
[8ffdb08]134
135 <para>
[2ca3997]136 Running the test suite is optional. About 2% of the tests fail. Increase
137 in test time by each failed test is about 10%. Tests SBU above was
138 obtained disabling failing tests, with:
[355495ce]139 </para>
[bfc3945]140
141 2017-10-29 - bdubbs
142 For version 7.56.1 I had a lot of test failures which included long
143 timeouts. Could not determine the cause of the timeouts or failures,
144 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
145 external packages.
[e024fe4]146
147 2017-12-01 - bdubbs
148 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
149 installed this time. Best guess is that servers are not available.
[7549592]150
151 2018-08-01 - renodr
152 No test failures, but I didn't have any of the optional dependencies except
153 for c-ares and libidn2. I might re-run this test suite before release with
154 all of the optional deps, but right now, it isn't a priority - rather
155 the security fix is.
[8ffdb08]156-->
[ffa8c7f]157
158 <para>
[85d14e15]159 To run the test suite, issue: <command>make test</command>. Two (of 857) tests
[1ad3510e]160 fail for unknown reasons, and all tests fail is valgrind is installed. Moving
[5a66d6ac]161 valgrind out of $PATH is recommended if you wish to run the test suite while
[1ad3510e]162 it is installed.
163<!--
[c18fd2e6]164Added by Pierre for curl-7.59.0:
165no stunnel, no valgrind, no options
166Warning: smb server unexpectedly alive
167Warning: dict server unexpectedly alive
168TESTDONE: 950 tests out of 951 reported OK: 99%
169TESTFAIL: These test cases failed: 1148
170TESTDONE: 1189 tests were considered during 362 seconds.
171__________
172
[d714f22]173 if stunnel and valgrind are not installed, and also most options
174 (I had rtmpdump), the tests complete without problems.
175Warning: smb server unexpectedly alive
176Warning: dict server unexpectedly alive
177TESTDONE: 938 tests out of 938 reported OK: 100%
178TESTDONE: 1175 tests were considered during 355 seconds.
179 and no. I don't have smb - so commenting the rest of this:
[5b62526]180 To run the test suite, issue: <command>make test</command>. Many tests
[e024fe4]181 may fail that depend on optional dependencies that may not be installed
182 or upstream servers that may not be available, especially for tests
183 numbered 700 and above.
[1ad3510e]184 Test time may be significantly increase due to hanging tests that fail.
[85d14e15]185__________
186Added by Bruce for curl-7.60.0:
187TESTDONE: 957 tests out of 959 reported OK: 99%
188TESTFAIL: These test cases failed: 1139 1140
189TESTDONE: 1196 tests were considered during 1184 seconds.
190From the logs, both appear to be ipv6 releated.
[7549592]191
192==========
193Added by Douglas for curl-7.61.0:
194TESTDONE: 961 tests out of 961 reported OK: 100%
195TESTDONE: 1202 tests were considered during 338 seconds.
196I only have c-ares and libidn2 installed, I will likely try before release
197with all optional dependencies in the book installed.
[5a66d6ac]198
199=========
2007.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
201It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
202c-ares, libpsl, and libidn1/2 installed. - Doug
[85d14e15]203-->
[2ca3997]204 </para>
[f346a49]205
[355495ce]206 <para>
207 Now, as the <systemitem class="username">root</systemitem>
208 user:
209 </para>
[dc775a26]210
[874fec7f]211<screen role="root"><userinput>make install &amp;&amp;
[5ee1266]212
[b5969599]213rm -rf docs/examples/.deps &amp;&amp;
214
[e024fe4]215find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
216
[e4ca0af7]217install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[d832a872]218cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
[0c02dcb]219
220 <para>
221 Simple tests to the new installed <command>curl</command>:
222 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
223 and
224 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
225 Inspect the locally created trace files <filename>debugdump.txt</filename>
226 and <filename>d.txt</filename>, which contain version downloaded
227 files information, etc. One file has the time for each action logged.
228 </para>
[bf8ac01]229 </sect2>
[dc775a26]230
[bf8ac01]231 <sect2 role="commands">
232 <title>Command Explanations</title>
[dc775a26]233
[c627795]234 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
235 href="../../xincludes/static-libraries.xml"/>
[5ee1266]236
[fdd7a91]237 <para>
238 <parameter>--enable-threaded-resolver</parameter>: This switch enables
239 <application>cURL</application>'s builtin threaded DNS resolver.
240 </para>
241
[30b7db74]242 <para>
[038b4c75]243 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
[2198a32]244 switch sets the location of the BLFS Certificate Authority store.
[30b7db74]245 </para>
246
[355495ce]247 <para>
248 <option>--with-gssapi</option>: This parameter adds
249 <application>Kerberos 5</application> support to
250 <filename class="libraryfile">libcurl</filename>.
251 </para>
252
253 <para>
254 <option>--without-ssl --with-gnutls</option>: Use to
255 build with <application>GnuTLS</application> support
256 instead of <application>OpenSSL</application> for SSL/TLS.
257 </para>
[b834dfc7]258
[038b4c75]259 <para>
[0e29df6]260 <option>--with-ca-bundle=/etc/ssl/ca-bundle.crt</option>: Use
[038b4c75]261 this switch instead of <parameter>--with-ca-path</parameter> if
262 building with <application>GnuTLS</application> support
263 instead of <application>OpenSSL</application> for SSL/TLS.
264 </para>
265
[355495ce]266 <para>
[5ee1266]267 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]268 <filename>Makefiles</filename> and man files from the documentation
[4949bda0]269 directory that would otherwise be installed by the commands that follow.
[355495ce]270 </para>
[32a8ca3]271
[bf8ac01]272 </sect2>
[dc775a26]273
[bf8ac01]274 <sect2 role="content">
275 <title>Contents</title>
[dc775a26]276
[bf8ac01]277 <segmentedlist>
278 <segtitle>Installed Programs</segtitle>
279 <segtitle>Installed Library</segtitle>
280 <segtitle>Installed Directories</segtitle>
[dc775a26]281
[bf8ac01]282 <seglistitem>
[355495ce]283 <seg>
[c18fd2e6]284 curl and curl-config
[355495ce]285 </seg>
286 <seg>
287 libcurl.so
288 </seg>
289 <seg>
290 /usr/include/curl and
291 /usr/share/doc/curl-&curl-version;
292 </seg>
[bf8ac01]293 </seglistitem>
294 </segmentedlist>
[dc775a26]295
[bf8ac01]296 <variablelist>
297 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
298 <?dbfo list-presentation="list"?>
299 <?dbhtml list-presentation="table"?>
[dc775a26]300
[bf8ac01]301 <varlistentry id="curl-prog">
302 <term><command>curl</command></term>
303 <listitem>
[355495ce]304 <para>
305 is a command line tool for transferring files with URL syntax.
[32a8ca3]306 </para>
[bf8ac01]307 <indexterm zone="curl curl-prog">
308 <primary sortas="b-curl">curl</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
[dc775a26]312
[bf8ac01]313 <varlistentry id="curl-config">
314 <term><command>curl-config</command></term>
315 <listitem>
[355495ce]316 <para>
317 prints information about the last compile, like libraries
318 linked to and prefix setting.
319 </para>
[bf8ac01]320 <indexterm zone="curl curl-config">
321 <primary sortas="b-curl-config">curl-config</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
[dc775a26]325
[bf8ac01]326 <varlistentry id="libcurl">
[874fec7f]327 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]328 <listitem>
[355495ce]329 <para>
330 provides the API functions required by
331 <command>curl</command> and other programs.
332 </para>
[bf8ac01]333 <indexterm zone="curl libcurl">
[874fec7f]334 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]335 </indexterm>
336 </listitem>
337 </varlistentry>
[355495ce]338
[bf8ac01]339 </variablelist>
[355495ce]340
[bf8ac01]341 </sect2>
[355495ce]342
[f45b1953]343</sect1>
Note: See TracBrowser for help on using the repository browser.