source: chapter06/glibc.xml@ 54e422c1

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 54e422c1 was 40abfd5, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Modify chapter 6 Glibc's make install command to allow test-installation.pl to run.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7307 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 26.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-glibc" role="wrap">
7<title>Glibc-&glibc-version;</title>
8<?dbhtml filename="glibc.html"?>
9
10<indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Glibc package contains the main C library. This library provides
14the basic routines for allocating memory, searching directories, opening and
15closing files, reading and writing files, string handling, pattern matching,
16arithmetic, and so on.</para>
17
18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>16.7 SBU</seg><seg>500 MB</seg></seglistitem>
22</segmentedlist>
23
24<segmentedlist>
25<segtitle>&dependencies;</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
27Gawk, GCC, Gettext, Grep, Make, Perl, Sed, and Texinfo</seg></seglistitem>
28</segmentedlist>
29</sect2>
30
31<sect2 role="installation">
32<title>Installation of Glibc</title>
33
34<note><para>Some packages outside of LFS suggest installing GNU libiconv in
35order to translate data from one encoding to another. The project's home page
36(<ulink url="http://www.gnu.org/software/libiconv/"/>) says <quote>This library
37provides an <function>iconv()</function> implementation, for use on systems
38which don't have one, or whose implementation cannot convert from/to Unicode.
39</quote> Glibc provides an <function>iconv()</function> implementation and can
40convert from/to Unicode, therefore libiconv is not required on an LFS
41system.</para></note>
42
43<para>The Glibc build system is self-contained and will install
44perfectly, even though the compiler specs file and linker are still
45pointing at <filename class="directory">/tools</filename>. The specs
46and linker cannot be adjusted before the Glibc install because the
47Glibc autoconf tests would give false results and defeat the goal
48of achieving a clean build.</para>
49
50<para>The glibc-libidn tarball adds support for internationalized
51domain names (IDN) to Glibc. Many programs that
52support IDN require the full libidn library (see
53<ulink url="&blfs-root;view/svn/general/libidn.html"/>),
54not this add-on.
55Unpack the tarball from within the Glibc source
56directory:</para>
57
58<screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
59
60<para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
61at startup. It is unknown whether this is a <command>bash</command> bug or a
62Glibc problem. Disable installation of this locale in order to avoid the
63problem:</para>
64
65<screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
66
67<para>When running <command>make install</command>, a script called
68<filename>test-installation.pl</filename> performs a small sanity test
69on our newly installed Glibc. However, because our toolchain still points to the
70<filename class="directory">/tools</filename> directory, the sanity test would
71be carried out against the wrong Glibc. We can force the script to check the
72Glibc we have just installed with the following:</para>
73
74<screen><userinput>sed -i \
75's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
76 scripts/test-installation.pl</userinput></screen>
77
78<para>The Glibc documentation recommends building Glibc outside of the source
79directory in a dedicated build directory:</para>
80
81<screen><userinput>mkdir -v ../glibc-build
82cd ../glibc-build</userinput></screen>
83
84<para>Prepare Glibc for compilation:</para>
85
86<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
87 --disable-profile --enable-add-ons \
88 --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
89
90<para>The meaning of the new configure options:</para>
91
92<variablelist>
93<varlistentry>
94<term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
95<listitem><para>This changes the location of the
96<command>pt_chown</command> program from its default of <filename
97class="directory">/usr/libexec</filename> to <filename
98class="directory">/usr/lib/glibc</filename>.</para></listitem>
99</varlistentry>
100</variablelist>
101
102<para>Compile the package:</para>
103
104<screen><userinput>make</userinput></screen>
105
106<important><para>In this section, the test suite for Glibc is
107considered critical. Do not skip it under any
108circumstance.</para></important>
109
110<para>Test the results:</para>
111
112<screen><userinput>make -k check &gt;glibc-check-log 2&gt;&amp;1
113grep Error glibc-check-log</userinput></screen>
114
115<para>On at least i686 you can expect to see failures in the <emphasis>test-double
116</emphasis> and <emphasis>test-idouble</emphasis> math tests with
117gcc-&gcc-version;, as well as an expected (ignored) failure in <emphasis>
118posix/annexc</emphasis>. These two failures in the math tests appear to be
119harmless.</para>
120
121<para>The Glibc test suite is highly dependent on certain functions of
122the host system, in particular the kernel. In certain circumstances,
123some failures are unavoidable. This is a list of the most common
124issues:</para>
125
126<itemizedlist>
127<listitem><para>The <emphasis>math</emphasis> tests sometimes fail in other tests
128when running
129on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
130Certain optimization settings are also known to be a factor here.</para></listitem>
131
132<listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
133host system issues. The exact reasons are not yet clear.</para></listitem>
134
135<listitem><para>If you have mounted the LFS partition with the
136<parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test will
137fail. As mentioned in <xref linkend="space-mounting"/>, do not use the
138<parameter>noatime</parameter> option while building LFS.</para></listitem>
139
140<listitem><para>When running on older and slower hardware, some tests
141can fail because of test timeouts being exceeded.</para></listitem>
142</itemizedlist>
143
144<para>Though it is a harmless message, the install stage of Glibc will
145complain about the absence of <filename>/etc/ld.so.conf</filename>.
146Prevent this warning with:</para>
147
148<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
149
150<para>Install the package:</para>
151
152<screen><userinput>make install</userinput></screen>
153
154<para>The locales that can make the system respond in a different
155language were not installed by the above command. None of the
156locales are required, but, if some of them are misssing, testuites of the
157future packages would skip important testcases.</para>
158
159<para>Individual locales can be installed using the <command>localedef</command>
160program. E.g., the first <command>localedef</command> command below combines
161the <filename>/usr/share/i18n/locales/de_DE</filename> charset-independent
162locale definition with the
163<filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename> charmap definition
164and appends the result to the
165<filename>/usr/lib/locale/locale-archive</filename> file. The following
166instructions will install the minimum set of locales necessary
167for the optimal coverage of tests:</para>
168
169<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
170localedef -i de_DE -f ISO-8859-1 de_DE
171localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
172localedef -i en_HK -f ISO-8859-1 en_HK
173localedef -i en_PH -f ISO-8859-1 en_PH
174localedef -i en_US -f ISO-8859-1 en_US
175localedef -i en_US -f UTF-8 en_US.UTF-8
176localedef -i es_MX -f ISO-8859-1 es_MX
177localedef -i fa_IR -f UTF-8 fa_IR
178localedef -i fr_FR -f ISO-8859-1 fr_FR
179localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
180localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
181localedef -i it_IT -f ISO-8859-1 it_IT
182localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
183
184<para>In addition, install the locale for your own country, language and
185character set.</para>
186
187<para>Alternatively, install all locales
188listed in the <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename>
189file (it includes every locale listed above and many more)
190at once with the following time-consuming command:</para>
191
192<screen><userinput>make localedata/install-locales</userinput></screen>
193
194<para>Then use the <command>localedef</command> command to create and
195install locales not listed in the
196<filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
197in the unlikely case if you need them.</para>
198<!-- The Live CD patches the localedata/SUPPORTED file instead of
199running localedef, the results are equivalent -->
200
201</sect2>
202
203<sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
204<indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
205<indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
206
207<para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
208because, although Glibc provides defaults when this file is missing or corrupt,
209the Glibc defaults do not work well in a networked environment. The time zone
210also needs to be configured.</para>
211
212<para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
213following:</para>
214
215<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
216<literal># Begin /etc/nsswitch.conf
217
218passwd: files
219group: files
220shadow: files
221
222hosts: files dns
223networks: files
224
225protocols: files
226services: files
227ethers: files
228rpc: files
229
230# End /etc/nsswitch.conf</literal>
231EOF</userinput></screen>
232
233<para>To determine the local time zone, run the following script:</para>
234
235<screen role="nodump"><userinput>tzselect</userinput></screen>
236
237<para>After answering a few questions about the location, the script
238will output the name of the time zone (e.g.,
239<emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>).
240Then create the <filename>/etc/localtime</filename> file by
241running:</para>
242
243<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
244 /etc/localtime</userinput></screen>
245
246<para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
247that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
248
249<para>The meaning of the cp option:</para>
250
251<variablelist>
252<varlistentry>
253<term><parameter>--remove-destination</parameter></term>
254<listitem><para>This is needed to force removal of the already
255existing symbolic link. The reason for copying the file instead of
256using a symlink is to cover the situation where <filename
257class="directory">/usr</filename> is on a separate partition. This
258could be important when booted into single user
259mode.</para></listitem>
260</varlistentry>
261</variablelist>
262
263</sect2>
264
265
266<sect2 id="conf-ld" role="configuration">
267<title>Configuring the Dynamic Loader</title>
268<indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
269
270<para>By default, the dynamic loader (<filename
271class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
272<filename class="directory">/lib</filename> and <filename
273class="directory">/usr/lib</filename> for dynamic libraries that are
274needed by programs as they are run. However, if there are libraries in
275directories other than <filename class="directory">/lib</filename> and
276<filename class="directory">/usr/lib</filename>, these need to be
277added to the <filename>/etc/ld.so.conf</filename> file in order
278for the dynamic loader to find them. Two directories that are commonly
279known to contain additional libraries are <filename
280class="directory">/usr/local/lib</filename> and <filename
281class="directory">/opt/lib</filename>, so add those directories to the
282dynamic loader's search path.</para>
283
284<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
285following:</para>
286
287<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
288<literal># Begin /etc/ld.so.conf
289
290/usr/local/lib
291/opt/lib
292
293# End /etc/ld.so.conf</literal>
294EOF</userinput></screen>
295
296</sect2>
297
298<sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
299
300<segmentedlist>
301<segtitle>Installed programs</segtitle>
302<segtitle>Installed libraries</segtitle>
303<seglistitem><seg>catchsegv, gencat, getconf,
304getent, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
305localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
306rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</seg>
307<seg>ld.so, libBrokenLocale.[a,so],
308libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so], libcidn.so,
309libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
310libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
311libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
312libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so],
313libthread_db.so, and libutil.[a,so]</seg></seglistitem>
314</segmentedlist>
315
316<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
317<?dbfo list-presentation="list"?>
318<?dbhtml list-presentation="table"?>
319
320<varlistentry id="catchsegv">
321<term><command>catchsegv</command></term>
322<listitem>
323<para>Can be used to create a stack trace when a program
324terminates with a segmentation fault</para>
325<indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
326</listitem>
327</varlistentry>
328
329<varlistentry id="gencat">
330<term><command>gencat</command></term>
331<listitem>
332<para>Generates message catalogues</para>
333<indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
334</listitem>
335</varlistentry>
336
337<varlistentry id="getconf">
338<term><command>getconf</command></term>
339<listitem>
340<para>Displays the system configuration values for file system specific variables</para>
341<indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
342</listitem>
343</varlistentry>
344
345<varlistentry id="getent">
346<term><command>getent</command></term>
347<listitem>
348<para>Gets entries from an administrative database</para>
349<indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
350</listitem>
351</varlistentry>
352
353<varlistentry id="iconv">
354<term><command>iconv</command></term>
355<listitem>
356<para>Performs character set conversion</para>
357<indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
358</listitem>
359</varlistentry>
360
361<varlistentry id="iconvconfig">
362<term><command>iconvconfig</command></term>
363<listitem>
364<para>Creates fastloading <command>iconv</command> module configuration files</para>
365<indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
366</listitem>
367</varlistentry>
368
369<varlistentry id="ldconfig">
370<term><command>ldconfig</command></term>
371<listitem>
372<para>Configures the dynamic linker runtime bindings</para>
373<indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
374</listitem>
375</varlistentry>
376
377<varlistentry id="ldd">
378<term><command>ldd</command></term>
379<listitem>
380<para>Reports which shared libraries are required
381by each given program or shared library</para>
382<indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
383</listitem>
384</varlistentry>
385
386<varlistentry id="lddlibc4">
387<term><command>lddlibc4</command></term>
388<listitem>
389<para>Assists <command>ldd</command> with object files</para>
390<indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
391</listitem>
392</varlistentry>
393
394<varlistentry id="locale">
395<term><command>locale</command></term>
396<listitem>
397<para>Prints various information about the current locale</para>
398<indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
399</listitem>
400</varlistentry>
401
402<varlistentry id="localedef">
403<term><command>localedef</command></term>
404<listitem>
405<para>Compiles locale specifications</para>
406<indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
407</listitem>
408</varlistentry>
409
410<varlistentry id="mtrace">
411<term><command>mtrace</command></term>
412<listitem>
413<para>Reads and interprets a memory trace file and displays a summary in human-readable format</para>
414<indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
415</listitem>
416</varlistentry>
417
418<varlistentry id="nscd">
419<term><command>nscd</command></term>
420<listitem>
421<para>A daemon that provides a cache for the most common name
422service requests</para>
423<indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
424</listitem>
425</varlistentry>
426
427<varlistentry id="nscd_nischeck">
428<term><command>nscd_nischeck</command></term>
429<listitem>
430<para>Checks whether or not secure mode is necessary for NIS+ lookup</para>
431<indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
432</listitem>
433</varlistentry>
434
435<varlistentry id="pcprofiledump">
436<term><command>pcprofiledump</command></term>
437<listitem>
438<para>Dumps information generated by PC profiling</para>
439<indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
440</listitem>
441</varlistentry>
442
443<varlistentry id="pt_chown">
444<term><command>pt_chown</command></term>
445<listitem>
446<para>A helper program for <command>grantpt</command> to set
447the owner, group and access permissions of a slave pseudo terminal</para>
448<indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
449</listitem>
450</varlistentry>
451
452<varlistentry id="rpcgen">
453<term><command>rpcgen</command></term>
454<listitem>
455<para>Generates C code to implement the Remote Procecure Call (RPC) protocol</para>
456<indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
457</listitem>
458</varlistentry>
459
460<varlistentry id="rpcinfo">
461<term><command>rpcinfo</command></term>
462<listitem>
463<para>Makes an RPC call to an RPC server</para>
464<indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
465</listitem>
466</varlistentry>
467
468<varlistentry id="sln">
469<term><command>sln</command></term>
470<listitem>
471<para>A statically linked <command>ln</command> program</para>
472<indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
473</listitem>
474</varlistentry>
475
476<varlistentry id="sprof">
477<term><command>sprof</command></term>
478<listitem>
479<para>Reads and displays shared object profiling data</para>
480<indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
481</listitem>
482</varlistentry>
483
484<varlistentry id="tzselect">
485<term><command>tzselect</command></term>
486<listitem>
487<para>Asks the user about the location of the
488system and reports the corresponding time zone description</para>
489<indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
490</listitem>
491</varlistentry>
492
493<varlistentry id="xtrace">
494<term><command>xtrace</command></term>
495<listitem>
496<para>Traces the execution of a program by
497printing the currently executed function</para>
498<indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
499</listitem>
500</varlistentry>
501
502<varlistentry id="zdump">
503<term><command>zdump</command></term>
504<listitem>
505<para>The time zone dumper</para>
506<indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
507</listitem>
508</varlistentry>
509
510<varlistentry id="zic">
511<term><command>zic</command></term>
512<listitem>
513<para>The time zone compiler</para>
514<indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
515</listitem>
516</varlistentry>
517
518<varlistentry id="ld.so">
519<term><filename class="libraryfile">ld.so</filename></term>
520<listitem>
521<para>The helper program for shared library executables</para>
522<indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
523</listitem>
524</varlistentry>
525
526<varlistentry id="libBrokenLocale">
527<term><filename class="libraryfile">libBrokenLocale</filename></term>
528<listitem>
529<para>Used internally by Glibc as a gross hack to get broken programs
530(e.g., some Motif applications) running. See comments in
531<filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename> for more
532information</para>
533<indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
534</listitem>
535</varlistentry>
536
537<varlistentry id="libSegFault">
538<term><filename class="libraryfile">libSegFault</filename></term>
539<listitem>
540<para>The segmentation fault signal handler, used by
541<command>catchsegv</command></para>
542<indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
543</listitem>
544</varlistentry>
545
546<varlistentry id="libanl">
547<term><filename class="libraryfile">libanl</filename></term>
548<listitem>
549<para>An asynchronous name lookup library</para>
550<indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
551</listitem>
552</varlistentry>
553
554<varlistentry id="libbsd-compat">
555<term><filename class="libraryfile">libbsd-compat</filename></term>
556<listitem>
557<para>Provides the portability needed
558in order to run certain Berkey Software Distribution (BSD) programs under Linux</para>
559<indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
560</listitem>
561</varlistentry>
562
563<varlistentry id="libc">
564<term><filename class="libraryfile">libc</filename></term>
565<listitem>
566<para>The main C library</para>
567<indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
568</listitem>
569</varlistentry>
570
571<varlistentry id="libcidn">
572<term><filename class="libraryfile">libcidn</filename></term>
573<listitem>
574<para>Used internally by Glibc for handling internationalized domain names in
575the <function>getaddrinfo()</function> function</para>
576<indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
577</listitem>
578</varlistentry>
579
580<varlistentry id="libcrypt">
581<term><filename class="libraryfile">libcrypt</filename></term>
582<listitem>
583<para>The cryptography library</para>
584<indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
585</listitem>
586</varlistentry>
587
588<varlistentry id="libdl">
589<term><filename class="libraryfile">libdl</filename></term>
590<listitem>
591<para>The dynamic linking interface library</para>
592<indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
593</listitem>
594</varlistentry>
595
596<varlistentry id="libg">
597<term><filename class="libraryfile">libg</filename></term>
598<listitem>
599<para>Dummy library containing no functions. Previously was a runtime library
600for <command>g++</command></para>
601<indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
602</listitem>
603</varlistentry>
604
605<varlistentry id="libieee">
606<term><filename class="libraryfile">libieee</filename></term>
607<listitem>
608<para>Linking in this module forces error handling rules for math functions as
609defined by the Institute of Electrical and Electronic Engineers (IEEE).
610The default is POSIX.1 error handling</para>
611<indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
612</listitem>
613</varlistentry>
614
615<varlistentry id="libm">
616<term><filename class="libraryfile">libm</filename></term>
617<listitem>
618<para>The mathematical library</para>
619<indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
620</listitem>
621</varlistentry>
622
623<varlistentry id="libmcheck">
624<term><filename class="libraryfile">libmcheck</filename></term>
625<listitem>
626<para>Turns on memory allocation checking when linked to</para>
627<indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
628</listitem>
629</varlistentry>
630
631<varlistentry id="libmemusage">
632<term><filename class="libraryfile">libmemusage</filename></term>
633<listitem>
634<para>Used by <command>memusage</command> to help collect
635information about the memory usage of a program</para>
636<indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
637</listitem>
638</varlistentry>
639
640<varlistentry id="libnsl">
641<term><filename class="libraryfile">libnsl</filename></term>
642<listitem>
643<para>The network services library</para>
644<indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
645</listitem>
646</varlistentry>
647
648<varlistentry id="libnss">
649<term><filename class="libraryfile">libnss</filename></term>
650<listitem>
651<para>The Name Service Switch libraries,
652containing functions for resolving host names, user names, group names,
653aliases, services, protocols, etc.</para>
654<indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss">libnss</primary></indexterm>
655</listitem>
656</varlistentry>
657
658<varlistentry id="libpcprofile">
659<term><filename class="libraryfile">libpcprofile</filename></term>
660<listitem>
661<para>Contains profiling functions used
662to track the amount of CPU time spent in specific source code lines</para>
663<indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
664</listitem>
665</varlistentry>
666
667<varlistentry id="libpthread">
668<term><filename class="libraryfile">libpthread</filename></term>
669<listitem>
670<para>The POSIX threads library</para>
671<indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
672</listitem>
673</varlistentry>
674
675<varlistentry id="libresolv">
676<term><filename class="libraryfile">libresolv</filename></term>
677<listitem>
678<para>Contains functions for creating,
679sending, and interpreting packets to the Internet domain name servers</para>
680<indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
681</listitem>
682</varlistentry>
683
684<varlistentry id="librpcsvc">
685<term><filename class="libraryfile">librpcsvc</filename></term>
686<listitem>
687<para>Contains functions providing miscellaneous RPC services</para>
688<indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
689</listitem>
690</varlistentry>
691
692<varlistentry id="librt">
693<term><filename class="libraryfile">librt</filename></term>
694<listitem>
695<para>Contains functions providing most of the
696interfaces specified by the POSIX.1b Realtime Extension</para>
697<indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
698</listitem>
699</varlistentry>
700
701<varlistentry id="libthread_db">
702<term><filename class="libraryfile">libthread_db</filename></term>
703<listitem>
704<para>Contains functions useful for
705building debuggers for multi-threaded programs</para>
706<indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
707</listitem>
708</varlistentry>
709
710<varlistentry id="libutil">
711<term><filename class="libraryfile">libutil</filename></term>
712<listitem>
713<para>Contains code for <quote>standard</quote> functions used in many different Unix utilities</para>
714<indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
715</listitem>
716</varlistentry>
717</variablelist>
718
719</sect2>
720
721</sect1>
722
Note: See TracBrowser for help on using the repository browser.