source: chapter08/glibc.xml@ 075d35fb

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 075d35fb was 075d35fb, checked in by Ken Moffat <ken@…>, 3 years ago

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