source: chapter06/glibc.xml@ d9ddcb3

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 7.7 7.8 7.9 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 d9ddcb3 was 5d1f0157, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Added perl patch to fix CVE-2014-4330.

Update to grub-2.02~beta2. It's been in beta for over 9 months
and a 'stable' does not seem to be forthcoming.

Document glibc tests known to sometimes fail.

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

  • Property mode set to 100644
File size: 34.3 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6a82dd9]7
[81fd230]8<sect1 id="ch-system-glibc" role="wrap">
[6a82dd9]9 <?dbhtml filename="glibc.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>glibc</productname>
13 <productnumber>&glibc-version;</productnumber>
14 <address>&glibc-url;</address>
15 </sect1info>
16
[6a82dd9]17 <title>Glibc-&glibc-version;</title>
18
19 <indexterm zone="ch-system-glibc">
20 <primary sortas="a-Glibc">Glibc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Glibc package contains the main C library. This library provides
27 the basic routines for allocating memory, searching directories, opening and
28 closing files, reading and writing files, string handling, pattern matching,
29 arithmetic, and so on.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
[e4a5635]36 <seg>&glibc-ch6-sbu;</seg>
37 <seg>&glibc-ch6-du;</seg>
[6a82dd9]38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
45
46 <note>
47 <para>Some packages outside of LFS suggest installing GNU libiconv in
48 order to translate data from one encoding to another. The project's
49 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
50 <quote>This library provides an <function>iconv()</function>
51 implementation, for use on systems which don't have one, or whose
52 implementation cannot convert from/to Unicode.</quote> Glibc provides
53 an <function>iconv()</function> implementation and can convert from/to
54 Unicode, therefore libiconv is not required on an LFS system.</para>
55 </note>
56
[4028929]57 <para>Some of the Glibc programs use non-FHS compilant
58 <filename class="directory">/var/db</filename> directory to store
59 their runtime data. Apply the following patch to make such programs
60 store their runtime data in the FHS-compliant locations:</para>
61
62<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
63
[6a82dd9]64 <para>The Glibc build system is self-contained and will install
65 perfectly, even though the compiler specs file and linker are still
66 pointing at <filename class="directory">/tools</filename>. The specs
67 and linker cannot be adjusted before the Glibc install because the
68 Glibc autoconf tests would give false results and defeat the goal
69 of achieving a clean build.</para>
70
71 <para>The Glibc documentation recommends building Glibc outside of the source
72 directory in a dedicated build directory:</para>
[73aedd1d]73
[0445a3d]74<screen><userinput remap="pre">mkdir -v ../glibc-build
[73aedd1d]75cd ../glibc-build</userinput></screen>
[c906b7e]76
[6a82dd9]77 <para>Prepare Glibc for compilation:</para>
[73aedd1d]78
[3dc9543]79<screen><userinput remap="configure">../glibc-&glibc-version;/configure \
80 --prefix=/usr \
81 --disable-profile \
82 --enable-kernel=&min-kernel; \
[8b69ae4]83 --enable-obsolete-rpc</userinput></screen>
[73aedd1d]84
[6a82dd9]85 <variablelist>
86 <title>The meaning of the new configure options:</title>
87
[8b69ae4]88 <varlistentry>
89 <term><parameter>--enable-obsolete-rpc</parameter></term>
90 <listitem>
91 <para>Installs NIS and RPC related headers that are not installed by
92 default; these are required to rebuild Glibc and by several BLFS
93 packages.</para>
94 </listitem>
95 </varlistentry>
96
[6a82dd9]97 </variablelist>
[81fd230]98
[6a82dd9]99 <para>Compile the package:</para>
[73aedd1d]100
[0445a3d]101<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]102
[6a82dd9]103 <important>
104 <para>In this section, the test suite for Glibc is considered critical.
105 Do not skip it under any circumstance.</para>
106 </important>
[81fd230]107
[d9c836bb]108 <para>Generally a few tests do not pass, but you can generally ignore
109 any of the test failures listed below. Now test the build results:</para>
110
[33d8236]111<screen><userinput remap="test">make check</userinput></screen>
[2e02c35]112
[3b66f6a]113 <para>You will probably see some test failures. The Glibc test suite is
114 somewhat dependent on the host system. This is a list of the most common
115 issues seen for this version of LFS:</para>
[6a82dd9]116
117 <itemizedlist>
[5d1f0157]118
[d9c836bb]119 <listitem>
[5d1f0157]120 <para>The <emphasis>tst/tst-cputimer1</emphasis> test has been known to
121 fail. The reason is not completely understood, but indications are
122 that minor timing issues can trigger this failure.</para>
[6a82dd9]123 </listitem>
[d9c836bb]124
[6a82dd9]125 <listitem>
[a0ec869]126 <para>The math tests sometimes fail when running on
127 systems where the CPU is not a relatively new genuine Intel or
128 authentic AMD processor.</para>
[6a82dd9]129 </listitem>
[5d1f0157]130<!--
[6a82dd9]131 <listitem>
[a0ec869]132 <para>When running on older and slower hardware or on systems under
[1d20dae]133 load, some tests can fail because of test timeouts being exceeded.
[2ca8941]134 Modifying the make check command to set a TIMEOUTFACTOR is reported to
[fbd81b7]135 help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16
[1d20dae]136 make -k check</command>).</para>
[6a82dd9]137 </listitem>
[3b66f6a]138-->
[bdde021]139 <listitem>
140 <para>posix/tst-getaddrinfo4 will always fail due to not having a network
141 connection when the test is run.</para>
142 </listitem>
[3b66f6a]143<!--
[d02c56d]144 <listitem>
145 <para>libio/tst-ftell-partial-wide.out fails because it needs a locale
146 that has not yet been generated.</para>
147 </listitem>
[5d1f0157]148-->
[ee321a46]149 <listitem>
[5d1f0157]150 <para>Other tests known to fail on some architectures are
151 malloc/tst-malloc-usable and nptl/tst-cleanupx4. </para>
[ee321a46]152 </listitem>
[5d1f0157]153
[6a82dd9]154 </itemizedlist>
155
156 <para>Though it is a harmless message, the install stage of Glibc will
157 complain about the absence of <filename>/etc/ld.so.conf</filename>.
158 Prevent this warning with:</para>
[1caa48e]159
[0445a3d]160<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
[1caa48e]161
[6a82dd9]162 <para>Install the package:</para>
[73aedd1d]163
[0445a3d]164<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]165
[4028929]166 <para>Install the configuration file and runtime directory for
167 <command>nscd</command>:</para>
168
169<screen><userinput remap="install">cp -v ../glibc-&glibc-version;/nscd/nscd.conf /etc/nscd.conf
170mkdir -pv /var/cache/nscd</userinput></screen>
171
[6a82dd9]172 <para>The locales that can make the system respond in a different language
173 were not installed by the above command. None of the locales are required,
[0ebe029b]174 but if some of them are missing, test suites of the future packages would
[6a82dd9]175 skip important testcases.</para>
176
177 <para>Individual locales can be installed using the
178 <command>localedef</command> program. E.g., the first
179 <command>localedef</command> command below combines the
[fffccab]180 <filename>/usr/share/i18n/locales/cs_CZ</filename>
[6a82dd9]181 charset-independent locale definition with the
[fffccab]182 <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
[6a82dd9]183 charmap definition and appends the result to the
184 <filename>/usr/lib/locale/locale-archive</filename> file.
185 The following instructions will install the minimum set of
186 locales necessary for the optimal coverage of tests:</para>
[3f0c882]187
[0445a3d]188<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
[1e77f0c]189localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
[73aedd1d]190localedef -i de_DE -f ISO-8859-1 de_DE
191localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
[1e77f0c]192localedef -i de_DE -f UTF-8 de_DE.UTF-8
[e9aabce]193localedef -i en_GB -f UTF-8 en_GB.UTF-8
[73aedd1d]194localedef -i en_HK -f ISO-8859-1 en_HK
195localedef -i en_PH -f ISO-8859-1 en_PH
196localedef -i en_US -f ISO-8859-1 en_US
[3a35b11]197localedef -i en_US -f UTF-8 en_US.UTF-8
[73aedd1d]198localedef -i es_MX -f ISO-8859-1 es_MX
[673b0d8]199localedef -i fa_IR -f UTF-8 fa_IR
[73aedd1d]200localedef -i fr_FR -f ISO-8859-1 fr_FR
201localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
[d93d1c90]202localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
[73aedd1d]203localedef -i it_IT -f ISO-8859-1 it_IT
[5b36d32]204localedef -i it_IT -f UTF-8 it_IT.UTF-8
[1e77f0c]205localedef -i ja_JP -f EUC-JP ja_JP
[5b36d32]206localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
207localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
[fffccab]208localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
[8399b37]209localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
[73aedd1d]210
[6a82dd9]211 <para>In addition, install the locale for your own country, language and
212 character set.</para>
[fa21b3d]213
[6a82dd9]214 <para>Alternatively, install all locales listed in the
215 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
216 (it includes every locale listed above and many more) at once with the
217 following time-consuming command:</para>
[fa21b3d]218
[0445a3d]219<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
[fa21b3d]220
[6a82dd9]221 <para>Then use the <command>localedef</command> command to create and
222 install locales not listed in the
223 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
[5a25e0a]224 in the unlikely case you need them.</para>
[6a82dd9]225
226 </sect2>
[94aa6621]227
[6a82dd9]228 <sect2 id="conf-glibc" role="configuration">
229 <title>Configuring Glibc</title>
[5888299]230
[6a82dd9]231 <indexterm zone="conf-glibc">
232 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
233 </indexterm>
[81fd230]234
[6a82dd9]235 <indexterm zone="conf-glibc">
236 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
237 </indexterm>
[342b176]238
[6a82dd9]239 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
240 because, although Glibc provides defaults when this file is missing or corrupt,
241 the Glibc defaults do not work well in a networked environment. The time zone
242 also needs to be configured.</para>
243
244 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
245 following:</para>
[342b176]246
[bb55064]247<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
[d72e04a]248<literal># Begin /etc/nsswitch.conf
[342b176]249
250passwd: files
251group: files
252shadow: files
253
254hosts: files dns
255networks: files
256
[4a80bec]257protocols: files
258services: files
259ethers: files
260rpc: files
[342b176]261
[d72e04a]262# End /etc/nsswitch.conf</literal>
[bb55064]263EOF</userinput></screen>
[342b176]264
[f1c177f]265 <para>Install timezone data:</para>
266<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
267
[ea31e92]268ZONEINFO=/usr/share/zoneinfo
[2ca8941]269mkdir -pv $ZONEINFO/{posix,right}
[ea31e92]270
271for tz in etcetera southamerica northamerica europe africa antarctica \
[fabfe841]272 asia australasia backward pacificnew systemv; do
[2ca8941]273 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
274 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
[ea31e92]275 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
[287a36b4]276done
[f0f7ea0]277
[f1d755b]278cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
[ea31e92]279zic -d $ZONEINFO -p America/New_York
280unset ZONEINFO</userinput></screen>
[f1c177f]281
[7a6bcf9]282 <variablelist>
283 <title>The meaning of the zic commands:</title>
284
285 <varlistentry>
286 <term><parameter>zic -L /dev/null ...</parameter></term>
287 <listitem>
288 <para>This creates posix timezones, without any leap seconds. It is
289 conventional to put these in both
290 <filename class="directory">zoneinfo</filename> and
291 <filename class="directory">zoneinfo/posix</filename>. It is
292 necessary to put the POSIX timezones in
293 <filename class="directory">zoneinfo</filename>, otherwise various
294 test-suites will report errors. On an embedded system, where space is
295 tight and you do not intend to ever update the timezones, you could save
296 1.9MB by not using the <filename class="directory">posix</filename>
297 directory, but some applications or test-suites might give less good
298 results</para>
299 </listitem>
300 </varlistentry>
301 <varlistentry>
302 <term><parameter>zic -L leapseconds ...</parameter></term>
303 <listitem>
304 <para>This creates right timezones, including leap seconds. On an
305 embedded system, where space is tight and you do not intend to
306 ever update the timezones, or care about the correct time, you could
307 save 1.9MB by omitting the <filename class="directory">right</filename>
308 directory.</para>
309 </listitem>
310 </varlistentry>
311 <varlistentry>
312 <term><parameter>zic ... -p ...</parameter></term>
313 <listitem>
[d7f2eb0]314 <para>This creates the <filename>posixrules</filename> file. We use
[cb02946]315 New York because POSIX requires the daylight savings time rules
[e7134f1]316 to be in accordance with US rules.</para>
[7a6bcf9]317 </listitem>
318 </varlistentry>
319 </variablelist>
320
321
322 <para>One way to determine the local time zone is to run the following
[e1060de]323 script:</para>
[342b176]324
[be4be92]325<screen role="nodump"><userinput>tzselect</userinput></screen>
[342b176]326
[6a82dd9]327 <para>After answering a few questions about the location, the script will
[e1060de]328 output the name of the time zone (e.g.,
329 <emphasis>America/Edmonton</emphasis>). There are also some other possible
330 timezones listed in <filename
331 class='directory'>/usr/share/zoneinfo</filename> such as
332 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
333 are not identified by the script but can be used.</para>
334
335 <para>Then create the <filename>/etc/localtime</filename> file by
336 running:</para>
[342b176]337
[8b69ae4]338<screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
[342b176]339
[e1060de]340 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
341 time zone selected (e.g., Canada/Eastern).</para>
[6a82dd9]342
343 </sect2>
344
345 <sect2 id="conf-ld" role="configuration">
346 <title>Configuring the Dynamic Loader</title>
347
348 <indexterm zone="conf-ld">
349 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
350 </indexterm>
351
352 <para>By default, the dynamic loader (<filename
353 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
354 <filename class="directory">/lib</filename> and <filename
355 class="directory">/usr/lib</filename> for dynamic libraries that are
356 needed by programs as they are run. However, if there are libraries in
357 directories other than <filename class="directory">/lib</filename> and
358 <filename class="directory">/usr/lib</filename>, these need to be added
359 to the <filename>/etc/ld.so.conf</filename> file in order for the
360 dynamic loader to find them. Two directories that are commonly known
361 to contain additional libraries are <filename
362 class="directory">/usr/local/lib</filename> and <filename
363 class="directory">/opt/lib</filename>, so add those directories to the
364 dynamic loader's search path.</para>
365
366 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
367 following:</para>
[342b176]368
[bb55064]369<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[d72e04a]370<literal># Begin /etc/ld.so.conf
[342b176]371/usr/local/lib
372/opt/lib
[50f648b]373</literal>
[bb55064]374EOF</userinput></screen>
[342b176]375
[50f648b]376 <para>If desired, the dynamic loader can also search a directory and
[2ca8941]377 include the contents of files found there. Generally the files in
[50f648b]378 this include directory are one line specifying the desired library path.
379 To add this capability run the following commands:</para>
380
381<screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
382<literal># Add an include directory
383include /etc/ld.so.conf.d/*.conf
384</literal>
385EOF
[3d086301]386mkdir -pv /etc/ld.so.conf.d</userinput></screen>
[50f648b]387
[6a82dd9]388 </sect2>
389
390 <sect2 id="contents-glibc" role="content">
391 <title>Contents of Glibc</title>
392
393 <segmentedlist>
394 <segtitle>Installed programs</segtitle>
395 <segtitle>Installed libraries</segtitle>
[fe05b08]396 <segtitle>Installed directories</segtitle>
[6a82dd9]397
398 <seglistitem>
399 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[ca101ad]400 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, pcprofiledump,
[b5b97081]401 pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
[6a82dd9]402 zdump, and zic</seg>
[5ef820b]403 <seg>ld-&glibc-version;.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
[a713e43]404 libc.{a,so}, libc_nonshared.a, libcidn.so,
[90aae6b]405 libcrypt.{a,so}, libdl.{a,so}, libg.a, libieee.a, libm.{a,so},
406 libmcheck.a, libmemusage.so, libnsl.{a,so}, libnss_compat.so,
407 libnss_dns.so, libnss_files.so, libnss_hesiod.so, libnss_nis.so,
408 libnss_nisplus.so, libpcprofile.so, libpthread.{a,so},
409 libpthread_nonshared.a, libresolv.{a,so}, librpcsvc.a, librt.{a,so},
[2791a8e]410 libthread_db.so, and libutil.{a,so}</seg>
[fe05b08]411 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
412 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
413 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
414 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
415 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
416 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
[4028929]417 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
418 /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
419 /var/cache/nscd, and /var/lib/nss_db</seg>
[6a82dd9]420 </seglistitem>
421 </segmentedlist>
422
423 <variablelist>
424 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
425 <?dbfo list-presentation="list"?>
426 <?dbhtml list-presentation="table"?>
427
428 <varlistentry id="catchsegv">
429 <term><command>catchsegv</command></term>
430 <listitem>
431 <para>Can be used to create a stack trace when a program
432 terminates with a segmentation fault</para>
433 <indexterm zone="ch-system-glibc catchsegv">
434 <primary sortas="b-catchsegv">catchsegv</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
438
439 <varlistentry id="gencat">
440 <term><command>gencat</command></term>
441 <listitem>
442 <para>Generates message catalogues</para>
443 <indexterm zone="ch-system-glibc gencat">
444 <primary sortas="b-gencat">gencat</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="getconf">
450 <term><command>getconf</command></term>
451 <listitem>
452 <para>Displays the system configuration values for file system
453 specific variables</para>
454 <indexterm zone="ch-system-glibc getconf">
455 <primary sortas="b-getconf">getconf</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="getent">
461 <term><command>getent</command></term>
462 <listitem>
463 <para>Gets entries from an administrative database</para>
464 <indexterm zone="ch-system-glibc getent">
465 <primary sortas="b-getent">getent</primary>
466 </indexterm>
467 </listitem>
468 </varlistentry>
469
470 <varlistentry id="iconv">
471 <term><command>iconv</command></term>
472 <listitem>
473 <para>Performs character set conversion</para>
474 <indexterm zone="ch-system-glibc iconv">
475 <primary sortas="b-iconv">iconv</primary>
476 </indexterm>
477 </listitem>
478 </varlistentry>
479
480 <varlistentry id="iconvconfig">
481 <term><command>iconvconfig</command></term>
482 <listitem>
483 <para>Creates fastloading <command>iconv</command> module configuration
484 files</para>
485 <indexterm zone="ch-system-glibc iconvconfig">
486 <primary sortas="b-iconvconfig">iconvconfig</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="ldconfig">
492 <term><command>ldconfig</command></term>
493 <listitem>
494 <para>Configures the dynamic linker runtime bindings</para>
495 <indexterm zone="ch-system-glibc ldconfig">
496 <primary sortas="b-ldconfig">ldconfig</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="ldd">
502 <term><command>ldd</command></term>
503 <listitem>
504 <para>Reports which shared libraries are required
505 by each given program or shared library</para>
506 <indexterm zone="ch-system-glibc ldd">
507 <primary sortas="b-ldd">ldd</primary>
508 </indexterm>
509 </listitem>
510 </varlistentry>
511
512 <varlistentry id="lddlibc4">
513 <term><command>lddlibc4</command></term>
514 <listitem>
515 <para>Assists <command>ldd</command> with object files</para>
516 <indexterm zone="ch-system-glibc lddlibc4">
517 <primary sortas="b-lddlibc4">lddlibc4</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="locale">
523 <term><command>locale</command></term>
524 <listitem>
525 <para>Prints various information about the current locale</para>
526 <indexterm zone="ch-system-glibc locale">
527 <primary sortas="b-locale">locale</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
532 <varlistentry id="localedef">
533 <term><command>localedef</command></term>
534 <listitem>
535 <para>Compiles locale specifications</para>
536 <indexterm zone="ch-system-glibc localedef">
537 <primary sortas="b-localedef">localedef</primary>
538 </indexterm>
539 </listitem>
540 </varlistentry>
541
[ca101ad]542 <varlistentry id="makedb">
543 <term><command>makedb</command></term>
544 <listitem>
545 <para>Creates a simple database from textual input</para>
546 <indexterm zone="ch-system-glibc makedb">
547 <primary sortas="b-makedb">makedb</primary>
548 </indexterm>
549 </listitem>
550 </varlistentry>
551
[6a82dd9]552 <varlistentry id="mtrace">
553 <term><command>mtrace</command></term>
554 <listitem>
555 <para>Reads and interprets a memory trace file and displays a summary
556 in human-readable format</para>
557 <indexterm zone="ch-system-glibc mtrace">
558 <primary sortas="b-mtrace">mtrace</primary>
559 </indexterm>
560 </listitem>
561 </varlistentry>
562
563 <varlistentry id="nscd">
564 <term><command>nscd</command></term>
565 <listitem>
566 <para>A daemon that provides a cache for the most common name
567 service requests</para>
568 <indexterm zone="ch-system-glibc nscd">
569 <primary sortas="b-nscd">nscd</primary>
570 </indexterm>
571 </listitem>
572 </varlistentry>
573
574 <varlistentry id="pcprofiledump">
575 <term><command>pcprofiledump</command></term>
576 <listitem>
577 <para>Dumps information generated by PC profiling</para>
578 <indexterm zone="ch-system-glibc pcprofiledump">
579 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
580 </indexterm>
581 </listitem>
582 </varlistentry>
583
[ca101ad]584 <varlistentry id="pldd">
585 <term><command>pldd</command></term>
586 <listitem>
587 <para>Lists dynamic shared objects used by running processes</para>
588 <indexterm zone="ch-system-glibc pldd">
589 <primary sortas="b-pldd">pldd</primary>
590 </indexterm>
591 </listitem>
592 </varlistentry>
[b5b97081]593<!--
[6a82dd9]594 <varlistentry id="pt_chown">
595 <term><command>pt_chown</command></term>
596 <listitem>
597 <para>A helper program for <command>grantpt</command> to set the owner,
598 group and access permissions of a slave pseudo terminal</para>
599 <indexterm zone="ch-system-glibc pt_chown">
600 <primary sortas="b-pt_chown">pt_chown</primary>
601 </indexterm>
602 </listitem>
603 </varlistentry>
[b5b97081]604-->
[6a82dd9]605 <varlistentry id="rpcgen">
606 <term><command>rpcgen</command></term>
607 <listitem>
[7a8d7c6]608 <para>Generates C code to implement the Remote Procedure Call (RPC)
[6a82dd9]609 protocol</para>
610 <indexterm zone="ch-system-glibc rpcgen">
611 <primary sortas="b-rpcgen">rpcgen</primary>
612 </indexterm>
613 </listitem>
614 </varlistentry>
615
616 <varlistentry id="sln">
617 <term><command>sln</command></term>
618 <listitem>
619 <para>A statically linked <command>ln</command> program</para>
620 <indexterm zone="ch-system-glibc sln">
621 <primary sortas="b-sln">sln</primary>
622 </indexterm>
623 </listitem>
624 </varlistentry>
625
[3119ddc]626 <varlistentry id="sotruss">
627 <term><command>sotruss</command></term>
628 <listitem>
629 <para>Traces shared library procedure calls of a specified command</para>
630 <indexterm zone="ch-system-glibc sotruss">
631 <primary sortas="b-sotruss">sotruss</primary>
632 </indexterm>
633 </listitem>
634 </varlistentry>
635
[6a82dd9]636 <varlistentry id="sprof">
637 <term><command>sprof</command></term>
638 <listitem>
639 <para>Reads and displays shared object profiling data</para>
640 <indexterm zone="ch-system-glibc sprof">
641 <primary sortas="b-sprof">sprof</primary>
642 </indexterm>
643 </listitem>
644 </varlistentry>
645
646 <varlistentry id="tzselect">
647 <term><command>tzselect</command></term>
648 <listitem>
649 <para>Asks the user about the location of the system and reports
650 the corresponding time zone description</para>
651 <indexterm zone="ch-system-glibc tzselect">
652 <primary sortas="b-tzselect">tzselect</primary>
653 </indexterm>
654 </listitem>
655 </varlistentry>
656
657 <varlistentry id="xtrace">
658 <term><command>xtrace</command></term>
659 <listitem>
660 <para>Traces the execution of a program by printing the currently
661 executed function</para>
662 <indexterm zone="ch-system-glibc xtrace">
663 <primary sortas="b-xtrace">xtrace</primary>
664 </indexterm>
665 </listitem>
666 </varlistentry>
667
668 <varlistentry id="zdump">
669 <term><command>zdump</command></term>
670 <listitem>
671 <para>The time zone dumper</para>
672 <indexterm zone="ch-system-glibc zdump">
673 <primary sortas="b-zdump">zdump</primary>
674 </indexterm>
675 </listitem>
676 </varlistentry>
677
678 <varlistentry id="zic">
679 <term><command>zic</command></term>
680 <listitem>
681 <para>The time zone compiler</para>
682 <indexterm zone="ch-system-glibc zic">
683 <primary sortas="b-zic">zic</primary>
684 </indexterm>
685 </listitem>
686 </varlistentry>
687
688 <varlistentry id="ld.so">
[5ef820b]689 <term><filename class="libraryfile">ld-&glibc-version;.so</filename></term>
[6a82dd9]690 <listitem>
691 <para>The helper program for shared library executables</para>
692 <indexterm zone="ch-system-glibc ld.so">
[5ef820b]693 <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
[6a82dd9]694 </indexterm>
695 </listitem>
696 </varlistentry>
697
698 <varlistentry id="libBrokenLocale">
699 <term><filename class="libraryfile">libBrokenLocale</filename></term>
700 <listitem>
701 <para>Used internally by Glibc as a gross hack to get broken programs
702 (e.g., some Motif applications) running. See comments in
703 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
704 for more information</para>
705 <indexterm zone="ch-system-glibc libBrokenLocale">
706 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
707 </indexterm>
708 </listitem>
709 </varlistentry>
710
711 <varlistentry id="libSegFault">
712 <term><filename class="libraryfile">libSegFault</filename></term>
713 <listitem>
714 <para>The segmentation fault signal handler, used by
715 <command>catchsegv</command></para>
716 <indexterm zone="ch-system-glibc libSegFault">
717 <primary sortas="c-libSegFault">libSegFault</primary>
718 </indexterm>
719 </listitem>
720 </varlistentry>
721
722 <varlistentry id="libanl">
723 <term><filename class="libraryfile">libanl</filename></term>
724 <listitem>
725 <para>An asynchronous name lookup library</para>
726 <indexterm zone="ch-system-glibc libanl">
727 <primary sortas="c-libanl">libanl</primary>
728 </indexterm>
729 </listitem>
730 </varlistentry>
731
732 <varlistentry id="libc">
733 <term><filename class="libraryfile">libc</filename></term>
734 <listitem>
735 <para>The main C library</para>
736 <indexterm zone="ch-system-glibc libc">
737 <primary sortas="c-libc">libc</primary>
738 </indexterm>
739 </listitem>
740 </varlistentry>
741
742 <varlistentry id="libcidn">
743 <term><filename class="libraryfile">libcidn</filename></term>
744 <listitem>
745 <para>Used internally by Glibc for handling internationalized domain
746 names in the <function>getaddrinfo()</function> function</para>
[5f7456b]747 <indexterm zone="ch-system-glibc libcidn">
748 <primary sortas="c-libcidn">libcidn</primary>
[6a82dd9]749 </indexterm>
750 </listitem>
751 </varlistentry>
752
753 <varlistentry id="libcrypt">
754 <term><filename class="libraryfile">libcrypt</filename></term>
755 <listitem>
756 <para>The cryptography library</para>
757 <indexterm zone="ch-system-glibc libcrypt">
758 <primary sortas="c-libcrypt">libcrypt</primary>
759 </indexterm>
760 </listitem>
761 </varlistentry>
762
763 <varlistentry id="libdl">
764 <term><filename class="libraryfile">libdl</filename></term>
765 <listitem>
766 <para>The dynamic linking interface library</para>
767 <indexterm zone="ch-system-glibc libdl">
768 <primary sortas="c-libdl">libdl</primary>
769 </indexterm>
770 </listitem>
771 </varlistentry>
772
773 <varlistentry id="libg">
774 <term><filename class="libraryfile">libg</filename></term>
775 <listitem>
776 <para>Dummy library containing no functions. Previously was a runtime
777 library for <command>g++</command></para>
778 <indexterm zone="ch-system-glibc libg">
779 <primary sortas="c-libg">libg</primary>
780 </indexterm>
781 </listitem>
782 </varlistentry>
783
784 <varlistentry id="libieee">
785 <term><filename class="libraryfile">libieee</filename></term>
786 <listitem>
787 <para>Linking in this module forces error handling rules for math
788 functions as defined by the Institute of Electrical and Electronic
789 Engineers (IEEE). The default is POSIX.1 error handling</para>
790 <indexterm zone="ch-system-glibc libieee">
791 <primary sortas="c-libieee">libieee</primary>
792 </indexterm>
793 </listitem>
794 </varlistentry>
795
796 <varlistentry id="libm">
797 <term><filename class="libraryfile">libm</filename></term>
798 <listitem>
799 <para>The mathematical library</para>
800 <indexterm zone="ch-system-glibc libm">
801 <primary sortas="c-libm">libm</primary>
802 </indexterm>
803 </listitem>
804 </varlistentry>
805
806 <varlistentry id="libmcheck">
807 <term><filename class="libraryfile">libmcheck</filename></term>
808 <listitem>
809 <para>Turns on memory allocation checking when linked to</para>
810 <indexterm zone="ch-system-glibc libmcheck">
811 <primary sortas="c-libmcheck">libmcheck</primary>
812 </indexterm>
813 </listitem>
814 </varlistentry>
815
816 <varlistentry id="libmemusage">
817 <term><filename class="libraryfile">libmemusage</filename></term>
818 <listitem>
819 <para>Used by <command>memusage</command> to help collect
820 information about the memory usage of a program</para>
821 <indexterm zone="ch-system-glibc libmemusage">
822 <primary sortas="c-libmemusage">libmemusage</primary>
823 </indexterm>
824 </listitem>
825 </varlistentry>
826
827 <varlistentry id="libnsl">
828 <term><filename class="libraryfile">libnsl</filename></term>
829 <listitem>
830 <para>The network services library</para>
831 <indexterm zone="ch-system-glibc libnsl">
832 <primary sortas="c-libnsl">libnsl</primary>
833 </indexterm>
834 </listitem>
835 </varlistentry>
836
837 <varlistentry id="libnss">
838 <term><filename class="libraryfile">libnss</filename></term>
839 <listitem>
840 <para>The Name Service Switch libraries, containing functions for
841 resolving host names, user names, group names, aliases, services,
842 protocols, etc.</para>
843 <indexterm zone="ch-system-glibc libnss">
844 <primary sortas="c-libnss">libnss</primary>
845 </indexterm>
846 </listitem>
847 </varlistentry>
848
849 <varlistentry id="libpcprofile">
850 <term><filename class="libraryfile">libpcprofile</filename></term>
851 <listitem>
852 <para>Contains profiling functions used to track the amount of CPU
853 time spent in specific source code lines</para>
854 <indexterm zone="ch-system-glibc libpcprofile">
855 <primary sortas="c-libpcprofile">libpcprofile</primary>
856 </indexterm>
857 </listitem>
858 </varlistentry>
859
860 <varlistentry id="libpthread">
861 <term><filename class="libraryfile">libpthread</filename></term>
862 <listitem>
863 <para>The POSIX threads library</para>
864 <indexterm zone="ch-system-glibc libpthread">
865 <primary sortas="c-libpthread">libpthread</primary>
866 </indexterm>
867 </listitem>
868 </varlistentry>
869
870 <varlistentry id="libresolv">
871 <term><filename class="libraryfile">libresolv</filename></term>
872 <listitem>
873 <para>Contains functions for creating, sending, and interpreting
874 packets to the Internet domain name servers</para>
875 <indexterm zone="ch-system-glibc libresolv">
876 <primary sortas="c-libresolv">libresolv</primary>
877 </indexterm>
878 </listitem>
879 </varlistentry>
880
881 <varlistentry id="librpcsvc">
882 <term><filename class="libraryfile">librpcsvc</filename></term>
883 <listitem>
884 <para>Contains functions providing miscellaneous RPC services</para>
885 <indexterm zone="ch-system-glibc librpcsvc">
886 <primary sortas="c-librpcsvc">librpcsvc</primary>
887 </indexterm>
888 </listitem>
889 </varlistentry>
890
891 <varlistentry id="librt">
892 <term><filename class="libraryfile">librt</filename></term>
893 <listitem>
894 <para>Contains functions providing most of the interfaces specified
895 by the POSIX.1b Realtime Extension</para>
896 <indexterm zone="ch-system-glibc librt">
897 <primary sortas="c-librt">librt</primary>
898 </indexterm>
899 </listitem>
900 </varlistentry>
901
902 <varlistentry id="libthread_db">
903 <term><filename class="libraryfile">libthread_db</filename></term>
904 <listitem>
905 <para>Contains functions useful for building debuggers for
906 multi-threaded programs</para>
907 <indexterm zone="ch-system-glibc libthread_db">
908 <primary sortas="c-libthread_db">libthread_db</primary>
909 </indexterm>
910 </listitem>
911 </varlistentry>
912
913 <varlistentry id="libutil">
914 <term><filename class="libraryfile">libutil</filename></term>
915 <listitem>
916 <para>Contains code for <quote>standard</quote> functions used in
917 many different Unix utilities</para>
918 <indexterm zone="ch-system-glibc libutil">
919 <primary sortas="c-libutil">libutil</primary>
920 </indexterm>
921 </listitem>
922 </varlistentry>
923
924 </variablelist>
925
926 </sect2>
[673b0d8]927
928</sect1>
Note: See TracBrowser for help on using the repository browser.