source: chapter06/glibc.xml@ 2de963ba

Last change on this file since 2de963ba was 2de963ba, checked in by Ken Moffat <ken@…>, 19 years ago

add glibc patch to fix some math tests on x86

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

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