source: chapter08/glibc.xml@ d6796c8

xry111/clfs-ng
Last change on this file since d6796c8 was d6796c8, checked in by Xi Ruoyao <xry111@…>, 2 years ago

Merge branch 'trunk' into xry111/clfs-ng

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