source: chapter06/glibc.xml@ 7f5a3b8

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 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 7f5a3b8 was 7f5a3b8, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Remove unneeded options from glibc

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

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