source: chapter08/glibc.xml@ 2df066c9

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

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