source: chapter06/glibc.xml@ ddedde2

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 ddedde2 was 084db8d, checked in by Jeremy Utley <jeremy@…>, 20 years ago

Upgraded glibc to tarball based on CVS code from 2004-08-28. Simplified the configure instructions for glibc.

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

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