source: chapter06/glibc.xml@ 797ada6

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 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 797ada6 was 797ada6, checked in by Xi Ruoyao <xry111@…>, 5 years ago

Use GCC option -ffile-prefix-map to simplify chapter 6 Glibc instruction

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

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