source: chapter06/glibc.xml@ ac9c87b

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 ac9c87b was ac9c87b, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Add an option to glibc to allow building of nfs packages.

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

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