source: chapter08/glibc.xml@ 0ceb295

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 0ceb295 was 0ceb295, checked in by Xi Ruoyao <xry111@…>, 3 years ago

document x86 ISA level related breakage and workaround

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12133 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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