source: chapter08/glibc.xml@ fcc02767

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 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 fcc02767 was fcc02767, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Initial commit of alternative cross LFS

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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