source: chapter08/glibc.xml@ 7f25c84

11.0 11.0-rc1 11.0-rc2 11.0-rc3 ml-11.0 multilib trunk xry111/glibc-2.34 xry111/tester-nohack
Last change on this file since 7f25c84 was 7f25c84, checked in by Xi Ruoyao <xry111@…>, 7 months ago

glibc: remove libc_cv_rtlddir override for now

Back to use the sed. Need to investigate later.

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