source: BOOK/final-system/common/glibc.xml@ 3401bc47

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3401bc47 was aeb5c611, checked in by William Harrington <kb0iic@…>, 11 years ago

libbsd-compat is no longer installed.

  • Property mode set to 100644
File size: 34.4 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 <title>GLIBC-&glibc-version;</title>
12
13 <indexterm zone="ch-system-glibc">
14 <primary sortas="a-GLIBC">GLIBC</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The GLIBC package contains the main C library. This library provides
21 the basic routines for allocating memory, searching directories, opening and
22 closing files, reading and writing files, string handling, pattern matching,
23 arithmetic, and so on.</para>
24
25 </sect2>
26
27 <sect2 role="installation">
28 <title>Installation of GLIBC</title>
29
30 <note os="z">
31 <para>Some packages outside of CLFS suggest installing GNU libiconv in
32 order to translate data from one encoding to another. The project's
33 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
34 <quote>This library provides an <function>iconv()</function>
35 implementation, for use on systems which don't have one, or whose
36 implementation cannot convert from/to Unicode.</quote> GLIBC provides
37 an <function>iconv()</function> implementation and can convert from/to
38 Unicode, therefore libiconv is not required on a CLFS system.</para>
39 </note>
40
41 <para os="l1">At the end of the installation, the build system will run
42 a sanity test to make sure everything installed properly. This script will
43 attempt to test for a library that is only used in the test suite and is
44 never installed. Prevent the script from testing for this library with the
45 following command:</para>
46
47<screen os="l2"><userinput>sed -i 's/\(&amp;&amp; $name ne\) "db1"/ &amp; \1 "nss_test1"/' scripts/test-installation.pl</userinput></screen>
48
49 <para os="l3">This same script performs its tests by attempting to compile
50 test programs against certain libraries. However it does not specify the
51 ld.so, and our toolchain is still configured to use the one in /tools. The
52 following set of commands will force the script to use the complete path
53 of the new ld.so that was just installed:</para>
54
55<screen os="l4"><userinput>LINKER=$(readelf -l /tools/bin/bash | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
56sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
57 scripts/test-installation.pl
58unset LINKER</userinput></screen>
59
60 <para os="b">The GLIBC build system is self-contained and will install
61 perfectly, even though the compiler specs file and linker are still
62 pointing at <filename class="directory">/tools</filename>. The specs
63 and linker cannot be adjusted before the GLIBC install because the
64 GLIBC Autoconf tests would give false results and defeat the goal
65 of achieving a clean build.</para>
66
67 <para os="s1">Apply the following sed so the <command>tzselect</command> script works properly:</para>
68
69<screen os="s2"><userinput>sed -i 's/\\$$(pwd)/`pwd`/' timezone/Makefile</userinput></screen>
70
71 <para os="e">The GLIBC documentation recommends building GLIBC outside of the source directory in a dedicated build directory:</para>
72
73<screen os="f"><userinput>mkdir -v ../glibc-build
74cd ../glibc-build</userinput></screen>
75
76 <para os="g">Prepare GLIBC for compilation:</para>
77
78<screen os="h"><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
79 --disable-profile --enable-kernel=2.6.32 --libexecdir=/usr/lib/glibc \
80 --enable-obsolete-rpc</userinput></screen>
81
82 <variablelist os="i">
83 <title>The meaning of the new configure option:</title>
84
85 <varlistentry>
86 <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
87 <listitem>
88 <para>This changes the location of the <command>getconf</command>
89 utility from its default of <filename
90 class="directory">/usr/libexec</filename> to <filename
91 class="directory">/usr/lib/glibc</filename>.</para>
92 </listitem>
93 </varlistentry>
94 </variablelist>
95
96 <para os="j">Compile the package:</para>
97
98<screen os="k"><userinput>make</userinput></screen>
99
100 <important os="l">
101 <para>The test suite for GLIBC is considered critical.
102 Do not skip it under any circumstance.</para>
103 </important>
104
105 <para os="m">Before running the tests, copy a file from the source tree into our
106 build tree to prevent a couple of test failures, then run the tests:</para>
107
108<!-- items n,o,p no longer the master, use x86_64 which has no failures -->
109
110<screen os="n"><userinput remap="test">cp -v ../glibc-&glibc-version;/iconvdata/gconv-modules iconvdata
111make -k check 2&gt;&amp;1 | tee glibc-check-log; grep Error glibc-check-log</userinput></screen>
112
113 <para os="o">The GLIBC test suite is highly dependent on certain functions of
114 the host system, in particular the kernel. The posix/annexc test normally fails
115 and you should see <literal>Error 1 (ignored)</literal> in the output. Apart
116 from this, the GLIBC test suite is always expected to pass. However, in certain
117 circumstances, some failures are unavoidable. If a test fails because of a missing
118 program (or missing symbolic link), or a segfault, you will see an error code
119 greater than 127 and the details will be in the log. More commonly, tests will
120 fail with <literal>Error 2</literal> - for these, the contents of the corresponding
121 <filename>.out</filename> file, e.g. <filename>posix/annexc.out</filename> may be
122 informative. Here is a list of the most common issues:</para>
123
124 <itemizedlist os="p">
125 <listitem>
126 <para>The <emphasis>math</emphasis> tests sometimes fail.
127 Certain optimization settings are known to be a
128 factor here.</para>
129 </listitem>
130 <listitem>
131 <para>If you have mounted the CLFS partition with the
132 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test
133 will fail. As mentioned in <xref linkend="ch-partitioning-mounting"/>,
134 do not use the <parameter>noatime</parameter> option while building
135 CLFS.</para>
136 </listitem>
137 <listitem>
138 <para>When running on older and slower hardware, some tests
139 can fail because of test timeouts being exceeded.</para>
140 </listitem>
141 </itemizedlist>
142
143 <para os="q">Though it is a harmless message, the install stage of GLIBC will
144 complain about the absence of <filename>/etc/ld.so.conf</filename>.
145 Prevent this warning with:</para>
146
147<screen os="r"><userinput>touch /etc/ld.so.conf</userinput></screen>
148
149 <para os="s">Install the package, and remove unneeded files from
150 <filename class="directory">/usr/include/rpcsvc</filename>:</para>
151
152<screen os="t"><userinput>make install &amp;&amp;
153rm -v /usr/include/rpcsvc/*.x</userinput></screen>
154
155 </sect2>
156
157 <sect2 id="i18n-glibc" role="configuration">
158 <title>Internationalization</title>
159
160 <para>The locales that can make the system respond in a different
161 language were not installed by the above command. Install them
162 with:</para>
163
164<screen><userinput>make localedata/install-locales</userinput></screen>
165
166 <para>To save time, an alternative to running the previous command (which
167 generates and installs every locale listed in the
168 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file) is
169 to install only those locales that are wanted and needed. This can be
170 achieved by using the <command>localedef</command> command. Information on
171 this command is located in the <filename>INSTALL</filename> file in the
172 GLIBC source. However, there are a number of locales that are essential in
173 order for the tests of future packages to pass, in particular, the
174 <emphasis>libstdc++</emphasis> tests from GCC. The following instructions,
175 instead of the <parameter>install-locales</parameter> target used above,
176 will install the minimum set of locales necessary for the tests to run
177 successfully:</para>
178
179<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
180localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
181localedef -i de_DE -f ISO-8859-1 de_DE
182localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
183localedef -i en_HK -f ISO-8859-1 en_HK
184localedef -i en_PH -f ISO-8859-1 en_PH
185localedef -i en_US -f ISO-8859-1 en_US
186localedef -i es_MX -f ISO-8859-1 es_MX
187localedef -i fa_IR -f UTF-8 fa_IR
188localedef -i fr_FR -f ISO-8859-1 fr_FR
189localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
190localedef -i it_IT -f ISO-8859-1 it_IT
191localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
192
193 <para>Some locales installed by the <command>make
194 localedata/install-locales</command> command above are not properly
195 supported by some applications that are in CLFS and CBLFS. Because
196 of the various problems that arise due to application programmers making
197 assumptions that break in such locales, CLFS should not be used in locales
198 that utilize multibyte character sets (including UTF-8) or right-to-left
199 writing order. Numerous unofficial and unstable patches are required to
200 fix these problems, and it has been decided by the CLFS developers not to
201 support such complex locales at this time. This applies to the ja_JP and
202 fa_IR locales as well&mdash;they have been installed only for GCC and
203 Gettext tests to pass, and the <command>watch</command> program (part of
204 the Procps-ng package) does not work properly in them. Various attempts to
205 circumvent these restrictions are documented in internationalization-related
206 hints.</para>
207
208 </sect2>
209
210 <sect2 id="conf-glibc" role="configuration">
211 <title>Configuring GLIBC</title>
212
213 <indexterm zone="conf-glibc">
214 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
215 </indexterm>
216
217 <indexterm zone="conf-glibc">
218 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
219 </indexterm>
220
221 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
222 because, although GLIBC provides defaults when this file is missing or
223 corrupt, the GLIBC defaults do not work well in a networked environment.
224 The time zone also needs to be configured.</para>
225
226 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running
227 the following:</para>
228
229<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
230<literal># Begin /etc/nsswitch.conf
231
232passwd: files
233group: files
234shadow: files
235
236hosts: files dns
237networks: files
238
239protocols: files
240services: files
241ethers: files
242rpc: files
243
244# End /etc/nsswitch.conf</literal>
245EOF</userinput></screen>
246
247 <para>Install timezone data:</para>
248<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
249
250ZONEINFO=/usr/share/zoneinfo
251mkdir -pv $ZONEINFO/{posix,right}
252
253for tz in etcetera southamerica northamerica europe africa antarctica \
254 asia australasia backward pacificnew \
255 systemv; do
256 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
257 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
258 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
259done
260
261cp -v zone.tab iso3166.tab $ZONEINFO
262zic -d $ZONEINFO -p America/New_York
263unset ZONEINFO</userinput></screen>
264
265 <variablelist>
266 <title>The meaning of the zic commands:</title>
267
268 <varlistentry>
269 <term><parameter>zic -L /dev/null ...</parameter></term>
270 <listitem>
271 <para>This creates posix timezones, without any leap seconds. It is
272 conventional to put these in both
273 <filename class="directory">zoneinfo</filename> and
274 <filename class="directory">zoneinfo/posix</filename>. It is
275 necessary to put the POSIX timezones in
276 <filename class="directory">zoneinfo</filename>, otherwise various
277 test-suites will report errors. On an embedded system, where space is
278 tight and you do not intend to ever update the timezones, you could save
279 1.9MB by not using the <filename class="directory">posix</filename>
280 directory, but some applications or test-suites might give less good
281 results</para>
282 </listitem>
283 </varlistentry>
284 <varlistentry>
285 <term><parameter>zic -L leapseconds ...</parameter></term>
286 <listitem>
287 <para>This creates right timezones, including leap seconds. On an
288 embedded system, where space is tight and you do not intend to
289 ever update the timezones, or care about the correct time, you could
290 save 1.9MB by omitting the <filename class="directory">right</filename>
291 directory.</para>
292 </listitem>
293 </varlistentry>
294 <varlistentry>
295 <term><parameter>zic ... -p ...</parameter></term>
296 <listitem>
297 <para>This creates the <filename>posixrules</filename> file. We use
298 New York because POSIX requires the daylight savings time rules
299 to be in accordance with US rules.</para>
300 </listitem>
301 </varlistentry>
302 </variablelist>
303
304 <para>To determine the local time zone, run the following script:</para>
305
306<screen role="nodump"><userinput>tzselect</userinput></screen>
307
308 <para>After answering a few questions about the location, the script will
309 output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
310 <emphasis>Canada/Eastern</emphasis>). Then create the
311 <filename>/etc/localtime</filename> file by running:</para>
312
313<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
314 /etc/localtime</userinput></screen>
315
316 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
317 that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
318
319 <variablelist>
320 <title>The meaning of the cp option:</title>
321
322 <varlistentry>
323 <term><parameter>--remove-destination</parameter></term>
324 <listitem>
325 <para>This is needed to force removal of the already existing symbolic
326 link. The reason for copying the file instead of using a symlink is to
327 cover the situation where <filename class="directory">/usr</filename>
328 is on a separate partition. This could be important when booted into
329 single user mode.</para>
330 </listitem>
331 </varlistentry>
332 </variablelist>
333
334 </sect2>
335
336 <sect2 id="conf-ld" role="configuration">
337 <title>Configuring The Dynamic Loader</title>
338
339 <indexterm zone="conf-ld">
340 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
341 </indexterm>
342
343 <para os="ld-a">By default, the dynamic loader (<filename
344 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
345 <filename class="directory">/lib</filename> and <filename
346 class="directory">/usr/lib</filename> for dynamic libraries that are
347 needed by programs as they are run. However, if there are libraries in
348 directories other than <filename class="directory">/lib</filename> and
349 <filename class="directory">/usr/lib</filename>, these need to be
350 added to the <filename>/etc/ld.so.conf</filename> file in order
351 for the dynamic loader to find them. Two directories that are commonly
352 known to contain additional libraries are <filename
353 class="directory">/usr/local/lib</filename> and <filename
354 class="directory">/opt/lib</filename>, so add those directories to the
355 dynamic loader's search path.</para>
356
357 <para os="ld-b">Create a new file <filename>/etc/ld.so.conf</filename> by running the
358 following:</para>
359
360<screen os="ld-c"><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
361<literal># Begin /etc/ld.so.conf
362
363/usr/local/lib
364/opt/lib
365
366# End /etc/ld.so.conf</literal>
367EOF</userinput></screen>
368
369 </sect2>
370
371 <sect2 id="contents-glibc" role="content">
372 <title>Contents of GLIBC</title>
373
374 <segmentedlist>
375 <segtitle>Installed programs</segtitle>
376 <segtitle>Installed libraries</segtitle>
377 <segtitle>Installed directories</segtitle>
378
379 <seglistitem>
380 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
381 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
382 pcprofiledump, pldd, rpcgen, sln, sprof, tzselect, xtrace,zdump,
383 and zic</seg>
384 <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
385 libc.[a,so], libc_nonshared.a, libcidn.[a,so], libcrypt.[a,so],
386 libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
387 libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so,
388 libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so,
389 libpcprofile.so, libpthread.[a,so], libpthread_nonshared.a,
390 libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and
391 libutil.[a,so]</seg>
392 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
393 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
394 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
395 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
396 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
397 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
398 /usr/include/sys, /usr/lib/gconv, /usr/lib/glibc, /usr/lib/locale,
399 /usr/share/i18n, /usr/share/zoneinfo, /var/cache/ldconfig</seg>
400 </seglistitem>
401 </segmentedlist>
402
403 <variablelist>
404 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
405 <?dbfo list-presentation="list"?>
406 <?dbhtml list-presentation="table"?>
407
408 <varlistentry id="catchsegv">
409 <term><command>catchsegv</command></term>
410 <listitem>
411 <para>Can be used to create a stack trace when a program
412 terminates with a segmentation fault</para>
413 <indexterm zone="ch-system-glibc catchsegv">
414 <primary sortas="b-catchsegv">catchsegv</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="gencat">
420 <term><command>gencat</command></term>
421 <listitem>
422 <para>Generates message catalogues</para>
423 <indexterm zone="ch-system-glibc gencat">
424 <primary sortas="b-gencat">gencat</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="getconf">
430 <term><command>getconf</command></term>
431 <listitem>
432 <para>Displays the system configuration values for file system specific
433 variables</para>
434 <indexterm zone="ch-system-glibc getconf">
435 <primary sortas="b-getconf">getconf</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="getent">
441 <term><command>getent</command></term>
442 <listitem>
443 <para>Gets entries from an administrative database</para>
444 <indexterm zone="ch-system-glibc getent">
445 <primary sortas="b-getent">getent</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
449
450 <varlistentry id="iconv">
451 <term><command>iconv</command></term>
452 <listitem>
453 <para>Performs character set conversion</para>
454 <indexterm zone="ch-system-glibc iconv">
455 <primary sortas="b-iconv">iconv</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="iconvconfig">
461 <term><command>iconvconfig</command></term>
462 <listitem>
463 <para>Creates fastloading <command>iconv</command> module configuration
464 files</para>
465 <indexterm zone="ch-system-glibc iconvconfig">
466 <primary sortas="b-iconvconfig">iconvconfig</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="ldconfig">
472 <term><command>ldconfig</command></term>
473 <listitem>
474 <para>Configures the dynamic linker runtime bindings</para>
475 <indexterm zone="ch-system-glibc ldconfig">
476 <primary sortas="b-ldconfig">ldconfig</primary>
477 </indexterm>
478 </listitem>
479 </varlistentry>
480
481 <varlistentry id="ldd">
482 <term><command>ldd</command></term>
483 <listitem>
484 <para>Reports which shared libraries are required
485 by each given program or shared library</para>
486 <indexterm zone="ch-system-glibc ldd">
487 <primary sortas="b-ldd">ldd</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 <varlistentry id="lddlibc4">
493 <term><command>lddlibc4</command></term>
494 <listitem>
495 <para>Assists <command>ldd</command> with object files</para>
496 <indexterm zone="ch-system-glibc lddlibc4">
497 <primary sortas="b-lddlibc4">lddlibc4</primary>
498 </indexterm>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry id="locale">
503 <term><command>locale</command></term>
504 <listitem>
505 <para>Tells the compiler to enable or disable the use of POSIX locales
506 for built-in operations</para>
507 <indexterm zone="ch-system-glibc locale">
508 <primary sortas="b-locale">locale</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="localedef">
514 <term><command>localedef</command></term>
515 <listitem>
516 <para>Compiles locale specifications</para>
517 <indexterm zone="ch-system-glibc localedef">
518 <primary sortas="b-localedef">localedef</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="makedb">
524 <term><command>makedb</command></term>
525 <listitem>
526 <para>Creates a simple database from textual input</para>
527 <indexterm zone="ch-system-glibc makedb">
528 <primary sortas="b-makedb">makedb</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="mtrace">
534 <term><command>mtrace</command></term>
535 <listitem>
536 <para>Reads and interprets a memory trace file and
537 displays a summary in human-readable format</para>
538 <indexterm zone="ch-system-glibc mtrace">
539 <primary sortas="b-mtrace">mtrace</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="nscd">
545 <term><command>nscd</command></term>
546 <listitem>
547 <para>A daemon that provides a cache for the most common name
548 service requests</para>
549 <indexterm zone="ch-system-glibc nscd">
550 <primary sortas="b-nscd">nscd</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554
555 <varlistentry id="pcprofiledump">
556 <term><command>pcprofiledump</command></term>
557 <listitem>
558 <para>Dumps information generated by PC profiling</para>
559 <indexterm zone="ch-system-glibc pcprofiledump">
560 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
565 <varlistentry id="pldd">
566 <term><command>pldd</command></term>
567 <listitem>
568 <para>Lists dynamic shared objects used by running processes</para>
569 <indexterm zone="ch-system-glibc pldd">
570 <primary sortas="b-pldd">pldd</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="rpcgen">
576 <term><command>rpcgen</command></term>
577 <listitem>
578 <para>Generates C code to implement the Remote Procecure Call (RPC)
579 protocol</para>
580 <indexterm zone="ch-system-glibc rpcgen">
581 <primary sortas="b-rpcgen">rpcgen</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585
586 <varlistentry id="sln">
587 <term><command>sln</command></term>
588 <listitem>
589 <para>A statically linked program that creates symbolic links</para>
590 <indexterm zone="ch-system-glibc sln">
591 <primary sortas="b-sln">sln</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="sotruss">
597 <term><command>sotruss</command></term>
598 <listitem>
599 <para>Traces shared library procedure calls of a specified command</para>
600 <indexterm zone="ch-system-glibc sotruss">
601 <primary sortas="b-sotruss">sotruss</primary>
602 </indexterm>
603 </listitem>
604 </varlistentry>
605
606 <varlistentry id="sprof">
607 <term><command>sprof</command></term>
608 <listitem>
609 <para>Reads and displays shared object profiling data</para>
610 <indexterm zone="ch-system-glibc sprof">
611 <primary sortas="b-sprof">sprof</primary>
612 </indexterm>
613 </listitem>
614 </varlistentry>
615
616 <varlistentry id="tzselect">
617 <term><command>tzselect</command></term>
618 <listitem>
619 <para>Asks the user about the location of the
620 system and reports the corresponding time zone description</para>
621 <indexterm zone="ch-system-glibc tzselect">
622 <primary sortas="b-tzselect">tzselect</primary>
623 </indexterm>
624 </listitem>
625 </varlistentry>
626
627 <varlistentry id="xtrace">
628 <term><command>xtrace</command></term>
629 <listitem>
630 <para>Traces the execution of a program by
631 printing the currently executed function</para>
632 <indexterm zone="ch-system-glibc xtrace">
633 <primary sortas="b-xtrace">xtrace</primary>
634 </indexterm>
635 </listitem>
636 </varlistentry>
637
638 <varlistentry id="zdump">
639 <term><command>zdump</command></term>
640 <listitem>
641 <para>The time zone dumper</para>
642 <indexterm zone="ch-system-glibc zdump">
643 <primary sortas="b-zdump">zdump</primary>
644 </indexterm>
645 </listitem>
646 </varlistentry>
647
648 <varlistentry id="zic">
649 <term><command>zic</command></term>
650 <listitem>
651 <para>The time zone compiler</para>
652 <indexterm zone="ch-system-glibc zic">
653 <primary sortas="b-zic">zic</primary>
654 </indexterm>
655 </listitem>
656 </varlistentry>
657
658 <varlistentry id="ld.so">
659 <term><filename class="libraryfile">ld.so</filename></term>
660 <listitem>
661 <para>The helper program for shared library executables</para>
662 <indexterm zone="ch-system-glibc ld.so">
663 <primary sortas="c-ld.so">ld.so</primary>
664 </indexterm>
665 </listitem>
666 </varlistentry>
667
668 <varlistentry id="libBrokenLocale">
669 <term><filename class="libraryfile">libBrokenLocale</filename></term>
670 <listitem>
671 <para>Used by programs, such as Mozilla, to solve broken locales</para>
672 <indexterm zone="ch-system-glibc libBrokenLocale">
673 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
674 </indexterm>
675 </listitem>
676 </varlistentry>
677
678 <varlistentry id="libSegFault">
679 <term><filename class="libraryfile">libSegFault</filename></term>
680 <listitem>
681 <para>The segmentation fault signal handler</para>
682 <indexterm zone="ch-system-glibc libSegFault">
683 <primary sortas="c-libSegFault">libSegFault</primary>
684 </indexterm>
685 </listitem>
686 </varlistentry>
687
688 <varlistentry id="libanl">
689 <term><filename class="libraryfile">libanl</filename></term>
690 <listitem>
691 <para>An asynchronous name lookup library</para>
692 <indexterm zone="ch-system-glibc libanl">
693 <primary sortas="c-libanl">libanl</primary>
694 </indexterm>
695 </listitem>
696 </varlistentry>
697
698 <varlistentry id="libc">
699 <term><filename class="libraryfile">libc</filename></term>
700 <listitem>
701 <para>The main C library</para>
702 <indexterm zone="ch-system-glibc libc">
703 <primary sortas="c-libc">libc</primary>
704 </indexterm>
705 </listitem>
706 </varlistentry>
707
708 <varlistentry id="libcidn">
709 <term><filename class="libraryfile">libcidn</filename></term>
710 <listitem>
711 <para>Used internally by GLIBC for handling internationalized domain
712 names in the <function>getaddrinfo()</function> function</para>
713 <indexterm zone="ch-system-glibc libcidn">
714 <primary sortas="c-libcidn">libcidn</primary>
715 </indexterm>
716 </listitem>
717 </varlistentry>
718
719 <varlistentry id="libcrypt">
720 <term><filename class="libraryfile">libcrypt</filename></term>
721 <listitem>
722 <para>The cryptography library</para>
723 <indexterm zone="ch-system-glibc libcrypt">
724 <primary sortas="c-libcrypt">libcrypt</primary>
725 </indexterm>
726 </listitem>
727 </varlistentry>
728
729 <varlistentry id="libdl">
730 <term><filename class="libraryfile">libdl</filename></term>
731 <listitem>
732 <para>The dynamic linking interface library</para>
733 <indexterm zone="ch-system-glibc libdl">
734 <primary sortas="c-libdl">libdl</primary>
735 </indexterm>
736 </listitem>
737 </varlistentry>
738
739 <varlistentry id="libg">
740 <term><filename class="libraryfile">libg</filename></term>
741 <listitem>
742 <para>A runtime library for <command>g++</command></para>
743 <indexterm zone="ch-system-glibc libg">
744 <primary sortas="c-libg">libg</primary>
745 </indexterm>
746 </listitem>
747 </varlistentry>
748
749 <varlistentry id="libieee">
750 <term><filename class="libraryfile">libieee</filename></term>
751 <listitem>
752 <para>The Institute of Electrical and Electronic Engineers (IEEE)
753 floating point library</para>
754 <indexterm zone="ch-system-glibc libieee">
755 <primary sortas="c-libieee">libieee</primary>
756 </indexterm>
757 </listitem>
758 </varlistentry>
759
760 <varlistentry id="libm">
761 <term><filename class="libraryfile">libm</filename></term>
762 <listitem>
763 <para>The mathematical library</para>
764 <indexterm zone="ch-system-glibc libm">
765 <primary sortas="c-libm">libm</primary>
766 </indexterm>
767 </listitem>
768 </varlistentry>
769
770 <varlistentry id="libmcheck">
771 <term><filename class="libraryfile">libmcheck</filename></term>
772 <listitem>
773 <para>Contains code run at boot</para>
774 <indexterm zone="ch-system-glibc libmcheck">
775 <primary sortas="c-libmcheck">libmcheck</primary>
776 </indexterm>
777 </listitem>
778 </varlistentry>
779
780 <varlistentry id="libmemusage">
781 <term><filename class="libraryfile">libmemusage</filename></term>
782 <listitem>
783 <para>Used by <command>memusage</command> (included in GLIBC, but
784 not built in a base CLFS system as it has additional dependencies)
785 to help collect information about the memory usage of a program</para>
786 <indexterm zone="ch-system-glibc libmemusage">
787 <primary sortas="c-libmemusage">libmemusage</primary>
788 </indexterm>
789 </listitem>
790 </varlistentry>
791
792 <varlistentry id="libnsl">
793 <term><filename class="libraryfile">libnsl</filename></term>
794 <listitem>
795 <para>The network services library</para>
796 <indexterm zone="ch-system-glibc libnsl">
797 <primary sortas="c-libnsl">libnsl</primary>
798 </indexterm>
799 </listitem>
800 </varlistentry>
801
802 <varlistentry id="libnss">
803 <term><filename class="libraryfile">libnss</filename></term>
804 <listitem>
805 <para>The Name Service Switch libraries, containing functions for
806 resolving host names, user names, group names, aliases, services,
807 protocols, etc.</para>
808 <indexterm zone="ch-system-glibc libnss">
809 <primary sortas="c-libnss">libnss</primary>
810 </indexterm>
811 </listitem>
812 </varlistentry>
813
814 <varlistentry id="libpcprofile">
815 <term><filename class="libraryfile">libpcprofile</filename></term>
816 <listitem>
817 <para>Contains profiling functions used to track the amount of CPU
818 time spent in specific source code lines</para>
819 <indexterm zone="ch-system-glibc libpcprofile">
820 <primary sortas="c-libpcprofile">libpcprofile</primary>
821 </indexterm>
822 </listitem>
823 </varlistentry>
824
825 <varlistentry id="libpthread">
826 <term><filename class="libraryfile">libpthread</filename></term>
827 <listitem>
828 <para>The POSIX threads library</para>
829 <indexterm zone="ch-system-glibc libpthread">
830 <primary sortas="c-libpthread">libpthread</primary>
831 </indexterm>
832 </listitem>
833 </varlistentry>
834
835 <varlistentry id="libresolv">
836 <term><filename class="libraryfile">libresolv</filename></term>
837 <listitem>
838 <para>Contains functions for creating, sending, and interpreting
839 packets to the Internet domain name servers</para>
840 <indexterm zone="ch-system-glibc libresolv">
841 <primary sortas="c-libresolv">libresolv</primary>
842 </indexterm>
843 </listitem>
844 </varlistentry>
845
846 <varlistentry id="librpcsvc">
847 <term><filename class="libraryfile">librpcsvc</filename></term>
848 <listitem>
849 <para>Contains functions providing miscellaneous RPC services</para>
850 <indexterm zone="ch-system-glibc librpcsvc">
851 <primary sortas="c-librpcsvc">librpcsvc</primary>
852 </indexterm>
853 </listitem>
854 </varlistentry>
855
856 <varlistentry id="librt">
857 <term><filename class="libraryfile">librt</filename></term>
858 <listitem>
859 <para>Contains functions providing most of the interfaces specified by
860 the POSIX.1b Realtime Extension</para>
861 <indexterm zone="ch-system-glibc librt">
862 <primary sortas="c-librt">librt</primary>
863 </indexterm>
864 </listitem>
865 </varlistentry>
866
867 <varlistentry id="libthread_db">
868 <term><filename class="libraryfile">libthread_db</filename></term>
869 <listitem>
870 <para>Contains functions useful for
871 building debuggers for multi-threaded programs</para>
872 <indexterm zone="ch-system-glibc libthread_db">
873 <primary sortas="c-libthread_db">libthread_db</primary>
874 </indexterm>
875 </listitem>
876 </varlistentry>
877
878 <varlistentry id="libutil">
879 <term><filename class="libraryfile">libutil</filename></term>
880 <listitem>
881 <para>Contains code for <quote>standard</quote> functions used in
882 many different Unix utilities</para>
883 <indexterm zone="ch-system-glibc libutil">
884 <primary sortas="c-libutil">libutil</primary>
885 </indexterm>
886 </listitem>
887 </varlistentry>
888
889 </variablelist>
890
891 </sect2>
892
893</sect1>
Note: See TracBrowser for help on using the repository browser.