source: networking/netlibs/curl.xml@ 7549592

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 7549592 was 7549592, checked in by Douglas R. Reno <renodr@…>, 6 years ago

Update to curl-7.61.0 (security fix for SMTP users)

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

  • Property mode set to 100644
File size: 11.2 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 "7ed6a932de56c870c42c33906a3eb69c">
10 <!ENTITY curl-size "2.2 MB">
11 <!ENTITY curl-buildsize "43 MB (add 14 MB for tests)">
12 <!ENTITY curl-time "0.2 SBU (add 3.2 SBU for tests)">
13 <!-- Note that I did this package with minimal optional dependencies. I can
14 retest later if needed. -->
15]>
16
17<sect1 id="curl" xreflabel="cURL-&curl-version;">
18 <?dbhtml filename="curl.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>cURL-&curl-version;</title>
26
27 <indexterm zone="curl">
28 <primary sortas="a-cURL">cURL</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to cURL</title>
33
34 <para>
35 The <application>cURL</application> package contains an utility
36 and a library used for transferring files with URL syntax to any of
37 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
38 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
39 and upload files can be incorporated into other programs to support
40 functions like streaming media.
41 </para>
42
43 &lfs82_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&curl-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&curl-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &curl-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &curl-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &curl-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &curl-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref role="runtime" linkend="make-ca"/> (runtime)
84 </para>
85
86 <bridgehead renderas="sect4">Optional</bridgehead>
87 <para role="optional">
88 <xref linkend="c-ares"/>,
89 <xref linkend="gnutls"/>,
90 <xref linkend="libidn2"/>,
91 <xref linkend="libssh2"/>,
92 <xref linkend="mitkrb"/>,
93 <xref linkend="nghttp2"/>,
94 <xref linkend="openldap"/>,
95 <xref linkend="samba"/>,
96 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
97 <ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
98 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
99 <ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
100 PolarSSL), and
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)
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>. Two (of 857) tests
162 fail for unknown reasons.<!--
163Added by Pierre for curl-7.59.0:
164no stunnel, no valgrind, no options
165Warning: smb server unexpectedly alive
166Warning: dict server unexpectedly alive
167TESTDONE: 950 tests out of 951 reported OK: 99%
168TESTFAIL: These test cases failed: 1148
169TESTDONE: 1189 tests were considered during 362 seconds.
170__________
171
172 if stunnel and valgrind are not installed, and also most options
173 (I had rtmpdump), the tests complete without problems.
174Warning: smb server unexpectedly alive
175Warning: dict server unexpectedly alive
176TESTDONE: 938 tests out of 938 reported OK: 100%
177TESTDONE: 1175 tests were considered during 355 seconds.
178 and no. I don't have smb - so commenting the rest of this:
179 To run the test suite, issue: <command>make test</command>. Many tests
180 may fail that depend on optional dependencies that may not be installed
181 or upstream servers that may not be available, especially for tests
182 numbered 700 and above.
183 Test time may be significantly increase due to hanging tests that fail. i
184__________
185Added by Bruce for curl-7.60.0:
186TESTDONE: 957 tests out of 959 reported OK: 99%
187TESTFAIL: These test cases failed: 1139 1140
188TESTDONE: 1196 tests were considered during 1184 seconds.
189From the logs, both appear to be ipv6 releated.
190
191==========
192Added by Douglas for curl-7.61.0:
193TESTDONE: 961 tests out of 961 reported OK: 100%
194TESTDONE: 1202 tests were considered during 338 seconds.
195I only have c-ares and libidn2 installed, I will likely try before release
196with all optional dependencies in the book installed.
197-->
198 </para>
199
200 <para>
201 Now, as the <systemitem class="username">root</systemitem>
202 user:
203 </para>
204
205<screen role="root"><userinput>make install &amp;&amp;
206
207rm -rf docs/examples/.deps &amp;&amp;
208
209find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
210
211install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
212cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
213
214 <para>
215 Simple tests to the new installed <command>curl</command>:
216 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
217 and
218 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
219 Inspect the locally created trace files <filename>debugdump.txt</filename>
220 and <filename>d.txt</filename>, which contain version downloaded
221 files information, etc. One file has the time for each action logged.
222 </para>
223 </sect2>
224
225 <sect2 role="commands">
226 <title>Command Explanations</title>
227
228 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
229 href="../../xincludes/static-libraries.xml"/>
230
231 <para>
232 <parameter>--enable-threaded-resolver</parameter>: This switch enables
233 <application>cURL</application>'s builtin threaded DNS resolver.
234 </para>
235
236 <para>
237 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
238 switch sets the location of the BLFS Certificate Authority store.
239 </para>
240
241 <para>
242 <option>--with-gssapi</option>: This parameter adds
243 <application>Kerberos 5</application> support to
244 <filename class="libraryfile">libcurl</filename>.
245 </para>
246
247 <para>
248 <option>--without-ssl --with-gnutls</option>: Use to
249 build with <application>GnuTLS</application> support
250 instead of <application>OpenSSL</application> for SSL/TLS.
251 </para>
252
253 <para>
254 <option>--with-ca-bundle=/etc/ssl/ca-bundle.crt</option>: Use
255 this switch instead of <parameter>--with-ca-path</parameter> if
256 building with <application>GnuTLS</application> support
257 instead of <application>OpenSSL</application> for SSL/TLS.
258 </para>
259
260 <para>
261 <command>find docs ... -exec rm {} \;</command>: This command removes
262 <filename>Makefiles</filename> and man files from the documentation
263 directory that would otherwise be installed by the commands that follow.
264 </para>
265
266 </sect2>
267
268 <sect2 role="content">
269 <title>Contents</title>
270
271 <segmentedlist>
272 <segtitle>Installed Programs</segtitle>
273 <segtitle>Installed Library</segtitle>
274 <segtitle>Installed Directories</segtitle>
275
276 <seglistitem>
277 <seg>
278 curl and curl-config
279 </seg>
280 <seg>
281 libcurl.so
282 </seg>
283 <seg>
284 /usr/include/curl and
285 /usr/share/doc/curl-&curl-version;
286 </seg>
287 </seglistitem>
288 </segmentedlist>
289
290 <variablelist>
291 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
292 <?dbfo list-presentation="list"?>
293 <?dbhtml list-presentation="table"?>
294
295 <varlistentry id="curl-prog">
296 <term><command>curl</command></term>
297 <listitem>
298 <para>
299 is a command line tool for transferring files with URL syntax.
300 </para>
301 <indexterm zone="curl curl-prog">
302 <primary sortas="b-curl">curl</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="curl-config">
308 <term><command>curl-config</command></term>
309 <listitem>
310 <para>
311 prints information about the last compile, like libraries
312 linked to and prefix setting.
313 </para>
314 <indexterm zone="curl curl-config">
315 <primary sortas="b-curl-config">curl-config</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="libcurl">
321 <term><filename class="libraryfile">libcurl.so</filename></term>
322 <listitem>
323 <para>
324 provides the API functions required by
325 <command>curl</command> and other programs.
326 </para>
327 <indexterm zone="curl libcurl">
328 <primary sortas="c-libcurl">libcurl.so</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 </variablelist>
334
335 </sect2>
336
337</sect1>
Note: See TracBrowser for help on using the repository browser.