source: chapter08/glibc.xml@ 5d0219fd

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 5d0219fd was d7a9421, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!

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