source: chapter08/glibc.xml@ 58ccce5

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 58ccce5 was 58ccce5, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Clean up glibc list of test failures

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