source: chapter06/glibc.xml@ efcb393

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 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 efcb393 was efcb393, checked in by Pierre Labastie <pieere@…>, 4 years ago

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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