source: chapter06/glibc.xml@ 546f9ee

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 12.2 12.2-rc1 6.1 6.1.1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 546f9ee was 7e2b777, checked in by Jim Gifford <jim@…>, 20 years ago

Updated glibc instructions to include --with-thread for TLS, --enable-kernel=2.6.0 for 2.6.x kernel support, and added pt_chown for Unix 98 pty support

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

  • Property mode set to 100644
File size: 24.7 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-glibc" xreflabel="Glibc" role="wrap">
[673b0d8]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>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The Glibc package contains the main C library. This library provides all
14the basic routines for allocating memory, searching directories, opening and
15closing files, reading and writing them, string handling, pattern matching,
16arithmetic, and so on.</para>
17
[a001133]18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem>
22</segmentedlist>
[673b0d8]23
[a001133]24<segmentedlist>
25<segtitle>Glibc installation depends on</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
27Gawk, GCC, Gettext, Grep, Make, Perl, Sed, Texinfo</seg></seglistitem>
28</segmentedlist>
29</sect2>
[3554fa3a]30
[a001133]31<sect2 role="installation">
[5888299]32<title>Installation of Glibc</title>
[73aedd1d]33
34<para>The Glibc build system is very well self-contained and will install
35perfectly, even though our compiler specs file and linker are still pointing
[bb55064]36at <filename class="directory">/tools</filename>. We cannot adjust the specs and linker before
[73aedd1d]37the Glibc install, because the Glibc autoconf tests would then give bogus
38results and thus defeat our goal of achieving a clean build.</para>
39
[d0a6c4c]40<para>Before starting to build Glibc, remember to unset any environment
41variables that override the default optimization flags.</para>
[73aedd1d]42
43<para>The Glibc documentation recommends building Glibc outside of the source
44directory in a dedicated build directory:</para>
45
46<screen><userinput>mkdir ../glibc-build
47cd ../glibc-build</userinput></screen>
48
49<para>Now prepare Glibc for compilation:</para>
50
[9dfc02f]51<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
52 --disable-profile --enable-add-ons=nptl --with-tls \
[7e2b777]53 --with-__thread --enable-kernel=2.6.0 --without-cvs \
[9dfc02f]54 --with-headers=/tools/glibc-kernheaders</userinput></screen>
[73aedd1d]55
56<para>Compile the package:</para>
57
58<screen><userinput>make</userinput></screen>
59
[90afe40d]60<important><para>The test suite for Glibc in this section is considered
61<emphasis>critical</emphasis>. Our advice is to not skip it under any
62circumstance.</para></important>
63
[73aedd1d]64<para>Test the results:</para>
65
66<screen><userinput>make check</userinput></screen>
67
[d878ce3]68<para>The Glibc test suite is highly dependent on certain functions of your host
69system, in particular the kernel. In general, the Glibc test suite is always
70expected to pass. However, in certain circumstances some failures are
71unavoidable. Here is a list of the most common issues we are aware of:</para>
72
73<itemizedlist>
74<listitem><para>The <emphasis>math</emphasis> tests sometimes fail when running
75on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
76Certain optimization settings are also known to be a factor here.</para></listitem>
77
78<listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
79host system issues. The exact reasons are not yet clear.</para></listitem>
80
81<listitem><para>The <emphasis>atime</emphasis> test sometimes fails when the
82LFS partition is mounted with the <parameter>noatime</parameter> option, or due
83to other file system quirks.</para></listitem>
84
85<listitem><para>The <emphasis>shm</emphasis> test might fail when the host
86system is running the devfs file system but doesn't have the <systemitem class="filesystem">tmpfs</systemitem> file system
87mounted at <filename class="directory">/dev/shm</filename> due to lack of support for tmpfs in
88the kernel.</para></listitem>
89
90<listitem><para>When running on older and slower hardware, some tests might
91fail due to test timeouts being exceeded.</para></listitem>
92</itemizedlist>
[73aedd1d]93
[1caa48e]94<para>Though it is a harmless message, the install stage of Glibc will
95complain about the absence of <filename>/etc/ld.so.conf</filename>. Fix this
96annoying little warning with:</para>
97
98<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
99
[73aedd1d]100<para>And install the package:</para>
101
102<screen><userinput>make install</userinput></screen>
103
104<para>The locales that can make your system respond in a different language
105weren't installed by the above command. Do it with this:</para>
106
107<screen><userinput>make localedata/install-locales</userinput></screen>
108
109<para>An alternative to running the previous command is to install only those
[d0a6c4c]110locales which you need or want. This can be achieved by using the
[90e3cb3]111<command>localedef</command> command. Information on this can be found in
[d0a6c4c]112the <filename>INSTALL</filename> file in the Glibc source. However, there are
113a number of locales that are essential for the tests of future packages to
114pass, in particular, the <emphasis>libstdc++</emphasis> tests from GCC. The
115following instructions, instead of the install-locales target above, will
116install the minimum set of locales necessary for the tests to run
117successfully:</para>
[73aedd1d]118
119<screen><userinput>mkdir -p /usr/lib/locale
120localedef -i de_DE -f ISO-8859-1 de_DE
121localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
122localedef -i en_HK -f ISO-8859-1 en_HK
123localedef -i en_PH -f ISO-8859-1 en_PH
124localedef -i en_US -f ISO-8859-1 en_US
125localedef -i es_MX -f ISO-8859-1 es_MX
[673b0d8]126localedef -i fa_IR -f UTF-8 fa_IR
[73aedd1d]127localedef -i fr_FR -f ISO-8859-1 fr_FR
128localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
129localedef -i it_IT -f ISO-8859-1 it_IT
130localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
131
[b32e803]132<para>In fact, some locales installed by the
133<command>make localedata/install-locales</command>
134command above are not properly
135supported by some applications that are in LFS and BLFS books. Because
136of various problems that arise
137due to application programmers making
138assumptions that break in such locales, LFS <emphasis>should not</emphasis>
139be used in locales that utilize
140multibyte character sets (including UTF-8) or
141right-to-left writing order.
142Numerous unofficial and unstable patches are required to fix these problems,
143and it has been decided not to support such complex locales.
144This applies to the ja_JP and fa_IR locales as well:
145they have been installed only
[bb55064]146for GCC and Gettext tests to pass, and e.g.
[e4bf4c7]147the <command>watch</command> program (part of Procps)
[b32e803]148compiled according to this book doesn't work properly in them.
149Various attempts to circumvent these
150restrictions are documented in internationalization-related hints.</para>
151
[9dfc02f]152<para>Finally, build the linuxthreads man pages, which are a great reference
153on the threading API (applicable to NPTL as well):</para>
[73aedd1d]154
[9dfc02f]155<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
[73aedd1d]156
157<para>And install these pages:</para>
158
[9dfc02f]159<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
[73aedd1d]160
161</sect2>
[5888299]162
[342b176]163
[8c16bf7]164<sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
[673b0d8]165<indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
166<indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
[342b176]167
168<para>We need to create the <filename>/etc/nsswitch.conf</filename> file,
169because, although Glibc provides defaults when this file is missing or corrupt,
170the Glibc defaults don't work well with networking. Also, our time zone needs
171to be set up.</para>
172
173<para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
174following:</para>
175
[bb55064]176<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
[342b176]177# Begin /etc/nsswitch.conf
178
179passwd: files
180group: files
181shadow: files
182
183hosts: files dns
184networks: files
185
[4a80bec]186protocols: files
187services: files
188ethers: files
189rpc: files
[342b176]190
191# End /etc/nsswitch.conf
[bb55064]192EOF</userinput></screen>
[342b176]193
194<para>To find out what time zone you're in, run the following script:</para>
195
196<screen><userinput>tzselect</userinput></screen>
197
198<para>When you've answered a few questions about your location, the script will
199output the name of your time zone, something like <emphasis>EST5EDT</emphasis>
200or <emphasis>Canada/Eastern</emphasis>. Then create the
201<filename>/etc/localtime</filename> file by running:</para>
202
203<screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime</userinput></screen>
204
205<para>The meaning of the option:</para>
206
[b8a819f]207<variablelist>
208<varlistentry>
[bb55064]209<term><parameter>--remove-destination</parameter></term>
[b8a819f]210<listitem><para>This is needed to force removal of the already existing symbolic
211link. The reason why we copy instead of symlink is to cover the situation where
[bb55064]212<filename class="directory">/usr</filename> is on a separate partition. This could matter, for
[b8a819f]213example, when booted into single user mode.</para></listitem>
214</varlistentry>
215</variablelist>
[342b176]216
217<para>Of course, instead of <emphasis>Canada/Eastern</emphasis>, fill in
218the name of the time zone that the <command>tzselect</command> script
219gave you.</para>
220
221</sect2>
222
223
[8c16bf7]224<sect2 id="conf-ld" role="configuration">
[342b176]225<title>Configuring Dynamic Loader</title>
[673b0d8]226<indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
[342b176]227
228<para>By default, the dynamic loader
[bb55064]229(<filename class="libraryfile">/lib/ld-linux.so.2</filename>) searches through <filename
[673b0d8]230class="directory">/lib</filename> and <filename class="directory">/usr/lib</filename>
231for dynamic libraries that are needed
[342b176]232by programs when you run them. However, if there are libraries in
233directories other than <filename class="directory">/lib</filename> and
234<filename class="directory">/usr/lib</filename>, you need to add them to
235the <filename>/etc/ld.so.conf</filename> file for the dynamic
236loader to find them. Two directories that are commonly known to contain
[673b0d8]237additional libraries are <filename class="directory">/usr/local/lib</filename>
238and <filename class="directory">/opt/lib</filename>, so we add those directories to the
[342b176]239dynamic loader's search path.</para>
240
241<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
242following:</para>
243
[bb55064]244<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[342b176]245# Begin /etc/ld.so.conf
246
247/usr/local/lib
248/opt/lib
249
250# End /etc/ld.so.conf
[bb55064]251EOF</userinput></screen>
[342b176]252
253</sect2>
[5888299]254
255
[c6cb3aa]256<sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
[673b0d8]257
[c6cb3aa]258<segmentedlist>
259<segtitle>Installed programs</segtitle>
260<segtitle>Installed libraries</segtitle>
261<seglistitem><seg>catchsegv, gencat, getconf,
[673b0d8]262getent, glibcbug, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
263localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
[c6cb3aa]264rpcinfo, sln, sprof, tzselect, xtrace, zdump and zic</seg>
265<seg>ld.so, libBrokenLocale.[a,so],
[673b0d8]266libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so], libc_nonshared.a,
267libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
268libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
269libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
270libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so
[c6cb3aa]271and libutil.[a,so]</seg></seglistitem>
272</segmentedlist>
[673b0d8]273
[c6cb3aa]274<variablelist><title>Short descriptions</title>
[673b0d8]275
[b8a819f]276<varlistentry id="catchsegv">
277<term><command>catchsegv</command></term>
[c6cb3aa]278<listitem>
[673b0d8]279<indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
[c6cb3aa]280<para>can be used to create a stack trace
[673b0d8]281when a program terminates with a segmentation fault.</para>
[c6cb3aa]282</listitem>
283</varlistentry>
[673b0d8]284
[b8a819f]285<varlistentry id="gencat">
286<term><command>gencat</command></term>
[c6cb3aa]287<listitem>
[673b0d8]288<indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
[c6cb3aa]289<para>generates message catalogues.</para>
290</listitem>
291</varlistentry>
[673b0d8]292
[b8a819f]293<varlistentry id="getconf">
294<term><command>getconf</command></term>
[c6cb3aa]295<listitem>
[673b0d8]296<indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
[c6cb3aa]297<para>displays the system configuration values for file system specific variables.</para>
298</listitem>
299</varlistentry>
[673b0d8]300
[b8a819f]301<varlistentry id="getent">
302<term><command>getent</command></term>
[c6cb3aa]303<listitem>
[673b0d8]304<indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
[c6cb3aa]305<para>gets entries from an administrative database.</para>
306</listitem>
307</varlistentry>
[673b0d8]308
[b8a819f]309<varlistentry id="glibcbug">
310<term><command>glibcbug</command></term>
[c6cb3aa]311<listitem>
[673b0d8]312<indexterm zone="ch-system-glibc glibcbug"><primary sortas="b-glibcbug">glibcbug</primary></indexterm>
[c6cb3aa]313<para>creates a bug report and mails it to the bug email address.</para>
314</listitem>
315</varlistentry>
[673b0d8]316
[b8a819f]317<varlistentry id="iconv">
318<term><command>iconv</command></term>
[c6cb3aa]319<listitem>
[673b0d8]320<indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
[c6cb3aa]321<para>performs character set conversion.</para>
322</listitem>
323</varlistentry>
[673b0d8]324
[b8a819f]325<varlistentry id="iconvconfig">
326<term><command>iconvconfig</command></term>
[c6cb3aa]327<listitem>
[673b0d8]328<indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
[bb55064]329<para>creates fastloading <command>iconv</command> module configuration file.</para>
[c6cb3aa]330</listitem>
331</varlistentry>
[673b0d8]332
[b8a819f]333<varlistentry id="ldconfig">
334<term><command>ldconfig</command></term>
[c6cb3aa]335<listitem>
[673b0d8]336<indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
[c6cb3aa]337<para>configures the dynamic linker runtime bindings.</para>
338</listitem>
339</varlistentry>
[673b0d8]340
[b8a819f]341<varlistentry id="ldd">
342<term><command>ldd</command></term>
[c6cb3aa]343<listitem>
[673b0d8]344<indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
[c6cb3aa]345<para>reports which shared libraries are required
[673b0d8]346by each given program or shared library.</para>
[c6cb3aa]347</listitem>
348</varlistentry>
[673b0d8]349
[b8a819f]350<varlistentry id="lddlibc4">
351<term><command>lddlibc4</command></term>
[c6cb3aa]352<listitem>
[673b0d8]353<indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
[bb55064]354<para>assists <command>ldd</command> with object files.</para>
[c6cb3aa]355</listitem>
356</varlistentry>
[673b0d8]357
[b8a819f]358<varlistentry id="locale">
359<term><command>locale</command></term>
[c6cb3aa]360<listitem>
[673b0d8]361<indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
[c6cb3aa]362<para>is a Perl program that tells the compiler
[673b0d8]363to enable or disable the use of POSIX locales for built-in operations.</para>
[c6cb3aa]364</listitem>
365</varlistentry>
[673b0d8]366
[b8a819f]367<varlistentry id="localedef">
368<term><command>localedef</command></term>
[c6cb3aa]369<listitem>
[673b0d8]370<indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
[c6cb3aa]371<para>compiles locale specifications.</para>
372</listitem>
373</varlistentry>
[673b0d8]374
[b8a819f]375<varlistentry id="mtrace">
376<term><command>mtrace</command></term>
[c6cb3aa]377<listitem>
[673b0d8]378<indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
[c6cb3aa]379<para>...</para>
380</listitem>
381</varlistentry>
[673b0d8]382
[b8a819f]383<varlistentry id="nscd">
384<term><command>nscd</command></term>
[c6cb3aa]385<listitem>
[673b0d8]386<indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
[c6cb3aa]387<para>is a name service cache daemon providing a
[673b0d8]388cache for the most common name service requests.</para>
[c6cb3aa]389</listitem>
390</varlistentry>
[673b0d8]391
[b8a819f]392<varlistentry id="nscd_nischeck">
393<term><command>nscd_nischeck</command></term>
[c6cb3aa]394<listitem>
[673b0d8]395<indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
[c6cb3aa]396<para>checks whether or not secure mode is necessary for NIS+ lookup.</para>
397</listitem>
398</varlistentry>
[673b0d8]399
[b8a819f]400<varlistentry id="pcprofiledump">
401<term><command>pcprofiledump</command></term>
[c6cb3aa]402<listitem>
[673b0d8]403<indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
[c6cb3aa]404<para>dumps information generated by PC profiling.</para>
405</listitem>
406</varlistentry>
[673b0d8]407
[b8a819f]408<varlistentry id="pt_chown">
409<term><command>pt_chown</command></term>
[c6cb3aa]410<listitem>
[673b0d8]411<indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
[c6cb3aa]412<para>is a helper program for grantpt to set
[673b0d8]413the owner, group and access permissions of a slave pseudo terminal.</para>
[c6cb3aa]414</listitem>
415</varlistentry>
[673b0d8]416
[b8a819f]417<varlistentry id="rpcgen">
418<term><command>rpcgen</command></term>
[c6cb3aa]419<listitem>
[673b0d8]420<indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
[c6cb3aa]421<para>generates C code to implement the RPC protocol.</para>
422</listitem>
423</varlistentry>
[673b0d8]424
[b8a819f]425<varlistentry id="rpcinfo">
426<term><command>rpcinfo</command></term>
[c6cb3aa]427<listitem>
[673b0d8]428<indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
[c6cb3aa]429<para>makes an RPC call to an RPC server.</para>
430</listitem>
431</varlistentry>
[673b0d8]432
[b8a819f]433<varlistentry id="sln">
434<term><command>sln</command></term>
[c6cb3aa]435<listitem>
[673b0d8]436<indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
[c6cb3aa]437<para>is used to make symbolic links. The program
[673b0d8]438is statically linked, so it is useful for making symbolic links to dynamic
439libraries if the dynamic linking system for some reason is nonfunctional.</para>
[c6cb3aa]440</listitem>
441</varlistentry>
[673b0d8]442
[b8a819f]443<varlistentry id="sprof">
444<term><command>sprof</command></term>
[c6cb3aa]445<listitem>
[673b0d8]446<indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
[c6cb3aa]447<para>reads and displays shared object profiling data.</para>
448</listitem>
449</varlistentry>
[4931dd3]450
[b8a819f]451<varlistentry id="tzselect">
452<term><command>tzselect</command></term>
[c6cb3aa]453<listitem>
[673b0d8]454<indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
[c6cb3aa]455<para>asks the user about the location of the
[673b0d8]456system and reports the corresponding time zone description.</para>
[c6cb3aa]457</listitem>
458</varlistentry>
[673b0d8]459
[b8a819f]460<varlistentry id="xtrace">
461<term><command>xtrace</command></term>
[c6cb3aa]462<listitem>
[673b0d8]463<indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
[c6cb3aa]464<para>traces the execution of a program by
[673b0d8]465printing the currently executed function.</para>
[c6cb3aa]466</listitem>
467</varlistentry>
[673b0d8]468
[b8a819f]469<varlistentry id="zdump">
470<term><command>zdump</command></term>
[c6cb3aa]471<listitem>
[673b0d8]472<indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
[c6cb3aa]473<para>is the time zone dumper.</para>
474</listitem>
475</varlistentry>
[673b0d8]476
[b8a819f]477<varlistentry id="zic">
478<term><command>zic</command></term>
[c6cb3aa]479<listitem>
[673b0d8]480<indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
[c6cb3aa]481<para>is the time zone compiler.</para>
482</listitem>
483</varlistentry>
[673b0d8]484
[b8a819f]485<varlistentry id="ld.so">
[bb55064]486<term><filename class="libraryfile">ld.so</filename></term>
[c6cb3aa]487<listitem>
[673b0d8]488<indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
[c6cb3aa]489<para>is the helper program for shared library executables.</para>
490</listitem>
491</varlistentry>
[673b0d8]492
[b8a819f]493<varlistentry id="libBrokenLocale">
[bb55064]494<term><filename class="libraryfile">libBrokenLocale</filename></term>
[c6cb3aa]495<listitem>
[673b0d8]496<indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
[c6cb3aa]497<para>is used by programs, such as Mozilla, to solve broken locales.</para>
498</listitem>
499</varlistentry>
[673b0d8]500
[b8a819f]501<varlistentry id="libSegFault">
[bb55064]502<term><filename class="libraryfile">libSegFault</filename></term>
[c6cb3aa]503<listitem>
[673b0d8]504<indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
[c6cb3aa]505<para>is a segmentation fault signal handler. It tries to catch segfaults.</para>
506</listitem>
507</varlistentry>
[673b0d8]508
[b8a819f]509<varlistentry id="libanl">
[bb55064]510<term><filename class="libraryfile">libanl</filename></term>
[c6cb3aa]511<listitem>
[673b0d8]512<indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
[c6cb3aa]513<para>is an asynchronous name lookup library.</para>
514</listitem>
515</varlistentry>
[673b0d8]516
[b8a819f]517<varlistentry id="libbsd-compat">
[bb55064]518<term><filename class="libraryfile">libbsd-compat</filename></term>
[c6cb3aa]519<listitem>
[673b0d8]520<indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
[c6cb3aa]521<para>provides the portability needed
[673b0d8]522in order to run certain BSD programs under Linux.</para>
[c6cb3aa]523</listitem>
524</varlistentry>
[673b0d8]525
[b8a819f]526<varlistentry id="libc">
[bb55064]527<term><filename class="libraryfile">libc</filename></term>
[c6cb3aa]528<listitem>
[673b0d8]529<indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
[c6cb3aa]530<para>is the main C library -- a collection of commonly used functions.</para>
531</listitem>
532</varlistentry>
[673b0d8]533
[b8a819f]534<varlistentry id="libcrypt">
[bb55064]535<term><filename class="libraryfile">libcrypt</filename></term>
[c6cb3aa]536<listitem>
[673b0d8]537<indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
[c6cb3aa]538<para>is the cryptography library.</para>
539</listitem>
540</varlistentry>
[673b0d8]541
[b8a819f]542<varlistentry id="libdl">
[bb55064]543<term><filename class="libraryfile">libdl</filename></term>
[c6cb3aa]544<listitem>
[673b0d8]545<indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
[c6cb3aa]546<para>is the dynamic linking interface library.</para>
547</listitem>
548</varlistentry>
[673b0d8]549
[b8a819f]550<varlistentry id="libg">
[bb55064]551<term><filename class="libraryfile">libg</filename></term>
[c6cb3aa]552<listitem>
[673b0d8]553<indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
[bb55064]554<para>is a runtime library for <command>g++</command>.</para>
[c6cb3aa]555</listitem>
556</varlistentry>
[673b0d8]557
[b8a819f]558<varlistentry id="libieee">
[bb55064]559<term><filename class="libraryfile">libieee</filename></term>
[c6cb3aa]560<listitem>
[673b0d8]561<indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
[c6cb3aa]562<para>is the IEEE floating point library.</para>
563</listitem>
564</varlistentry>
[673b0d8]565
[b8a819f]566<varlistentry id="libm">
[bb55064]567<term><filename class="libraryfile">libm</filename></term>
[c6cb3aa]568<listitem>
[673b0d8]569<indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
[c6cb3aa]570<para>is the mathematical library.</para>
571</listitem>
572</varlistentry>
[673b0d8]573
[b8a819f]574<varlistentry id="libmcheck">
[bb55064]575<term><filename class="libraryfile">libmcheck</filename></term>
[c6cb3aa]576<listitem>
[673b0d8]577<indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
[c6cb3aa]578<para>contains code run at boot.</para>
579</listitem>
580</varlistentry>
[673b0d8]581
[b8a819f]582<varlistentry id="libmemusage">
[bb55064]583<term><filename class="libraryfile">libmemusage</filename></term>
[c6cb3aa]584<listitem>
[673b0d8]585<indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
[bb55064]586<para>is used by <command>memusage</command> to help collect
[673b0d8]587information about the memory usage of a program.</para>
[c6cb3aa]588</listitem>
589</varlistentry>
[673b0d8]590
[b8a819f]591<varlistentry id="libnsl">
[bb55064]592<term><filename class="libraryfile">libnsl</filename></term>
[c6cb3aa]593<listitem>
[673b0d8]594<indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
[c6cb3aa]595<para>is the network services library.</para>
596</listitem>
597</varlistentry>
[673b0d8]598
[b8a819f]599<varlistentry id="libnss">
[bb55064]600<term><filename class="libraryfile">libnss*</filename></term>
[c6cb3aa]601<listitem>
[673b0d8]602<indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss*">libnss*</primary></indexterm>
[c6cb3aa]603<para>are the Name Service Switch libraries,
[673b0d8]604containing functions for resolving host names, user names, group names,
[bb55064]605aliases, services, protocols, and the like.</para>
[c6cb3aa]606</listitem>
607</varlistentry>
[673b0d8]608
[b8a819f]609<varlistentry id="libpcprofile">
[bb55064]610<term><filename class="libraryfile">libpcprofile</filename></term>
[c6cb3aa]611<listitem>
[673b0d8]612<indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
[c6cb3aa]613<para>contains profiling functions used
[673b0d8]614to track the amount of CPU time spent in which source code lines.</para>
[c6cb3aa]615</listitem>
616</varlistentry>
[673b0d8]617
[b8a819f]618<varlistentry id="libpthread">
[bb55064]619<term><filename class="libraryfile">libpthread</filename></term>
[c6cb3aa]620<listitem>
[673b0d8]621<indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
[c6cb3aa]622<para>is the POSIX threads library.</para>
623</listitem>
624</varlistentry>
[673b0d8]625
[b8a819f]626<varlistentry id="libresolv">
[bb55064]627<term><filename class="libraryfile">libresolv</filename></term>
[c6cb3aa]628<listitem>
[673b0d8]629<indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
[c6cb3aa]630<para>contains functions for creating,
[673b0d8]631sending, and interpreting packets to the Internet domain name servers.</para>
[c6cb3aa]632</listitem>
633</varlistentry>
[673b0d8]634
[b8a819f]635<varlistentry id="librpcsvc">
[bb55064]636<term><filename class="libraryfile">librpcsvc</filename></term>
[c6cb3aa]637<listitem>
[673b0d8]638<indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
[c6cb3aa]639<para>contains functions providing miscellaneous RPC services.</para>
640</listitem>
641</varlistentry>
[673b0d8]642
[b8a819f]643<varlistentry id="librt">
[bb55064]644<term><filename class="libraryfile">librt</filename></term>
[c6cb3aa]645<listitem>
[673b0d8]646<indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
[c6cb3aa]647<para>contains functions providing most of the
[673b0d8]648interfaces specified by the POSIX.1b Realtime Extension.</para>
[c6cb3aa]649</listitem>
650</varlistentry>
[673b0d8]651
[b8a819f]652<varlistentry id="libthread_db">
[bb55064]653<term><filename class="libraryfile">libthread_db</filename></term>
[c6cb3aa]654<listitem>
[673b0d8]655<indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
[c6cb3aa]656<para>contains functions useful for
[673b0d8]657building debuggers for multi-threaded programs.</para>
[c6cb3aa]658</listitem>
659</varlistentry>
[673b0d8]660
[b8a819f]661<varlistentry id="libutil">
[bb55064]662<term><filename class="libraryfile">libutil</filename></term>
[c6cb3aa]663<listitem>
[673b0d8]664<indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
[bb55064]665<para>contains code for <quote>standard</quote> functions used in many different Unix utilities.</para>
[c6cb3aa]666</listitem>
667</varlistentry>
668</variablelist>
[673b0d8]669
670</sect2>
671
672</sect1>
Note: See TracBrowser for help on using the repository browser.