source: clfs-sysroot/BOOK/cross-tools/common/glibc.xml@ 90e4737

Last change on this file since 90e4737 was 93fcbff, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Updated Glibc to 2.6.1.

  • Property mode set to 100644
File size: 32.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <title>Glibc-&glibc-version;</title>
12
13 <indexterm zone="ch-cross-tools-glibc">
14 <primary sortas="a-Glibc">Glibc</primary>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>The Glibc package contains the main C library. This library provides
22 the basic routines for allocating memory, searching directories, opening and
23 closing files, reading and writing files, string handling, pattern matching,
24 arithmetic, and so on.</para>
25
26 </sect2>
27
28 <sect2 role="installation">
29 <title>Installation of Glibc</title>
30
31 <note os="a">
32 <para>Some packages outside of CLFS suggest installing GNU libiconv in
33 order to translate data from one encoding to another. The project's
34 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
35 <quote>This library provides an <function>iconv()</function>
36 implementation, for use on systems which don't have one, or whose
37 implementation cannot convert from/to Unicode.</quote> Glibc provides
38 an <function>iconv()</function> implementation and can convert from/to
39 Unicode, therefore libiconv is not required on an CLFS system.</para>
40 </note>
41
42 <para os="p1">The Glibc build will expect to find
43 <filename>libgcc_eh</filename>, but this library is not installed when GCC
44 is built without "--enable-shared". As a result, the Glibc build will fail.
45 The following patch will force Glibc to check for the existance of
46 <filename>libgcc_eh</filename> and try to link to it only if it exists:</para>
47
48<screen os="p2"><userinput>patch -Np1 -i ../&glibc-libgcc_eh-patch;</userinput></screen>
49
50 <para os="p3">The following patch fixes an issue that can
51 cause <command>localdef</command> to segfault:</para>
52
53<screen os="p4"><userinput>patch -Np1 -i ../&glibc-localedef_segfault-patch;</userinput></screen>
54
55 <para os="p5">The following patch builds <filename>zic-native</filename>,
56 <filename>localedef-native</filename>, and
57 <filename>rpcgen-native</filename>. <filename>zic-native</filename> is used
58 to generate the zoneinfo, <filename>localedef-native</filename> is used to
59 generate the locale archive, and <filename>rpcgen-native</filename> is used
60 to generate part of <filename>librpcsvc.a</filename>. All of these programs
61 would normally not be available when cross-compiling:</para>
62
63<screen os="p6"><userinput>patch -Np1 -i ../&glibc-cross_hacks-patch;</userinput></screen>
64
65 <para os="b">The Glibc documentation recommends building Glibc outside of the
66 source directory in a dedicated build directory:</para>
67
68<screen os="c"><userinput>mkdir -v ../glibc-build
69cd ../glibc-build</userinput></screen>
70
71 <para os="d">The following lines need to be added to
72 <filename>config.cache</filename> for Glibc to support NPTL:</para>
73
74<screen os="e"><userinput>echo "libc_cv_forced_unwind=yes" &gt; config.cache
75echo "libc_cv_c_cleanup=yes" &gt;&gt; config.cache</userinput></screen>
76
77 <para os="f">The following line needs to be added to
78 <filename>configparms</filename> to adjust installation paths:</para>
79
80<screen os="g"><userinput>echo "install_root=${CLFS}" &gt; configparms</userinput></screen>
81
82 <para os="h">Prepare Glibc for compilation:</para>
83
84<screen os="i"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
85 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
86 ../glibc-&glibc-version;/configure --prefix=/usr \
87 --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET} --build=${CLFS_HOST} \
88 --disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 \
89 --with-__thread --with-binutils=${CLFS}/cross-tools/bin \
90 --with-headers=${CLFS}/usr/include --cache-file=config.cache</userinput></screen>
91
92 <variablelist os="j">
93 <title>The meaning of the new configure options:</title>
94
95 <varlistentry os="j1">
96 <term><parameter>BUILD_CC="gcc"</parameter></term>
97 <listitem>
98 <para>This tells Glibc to use the compiler on the host system. This is
99 used to create the tools Glibc uses during its build.</para>
100 </listitem>
101 </varlistentry>
102
103 <varlistentry os="j2">
104 <term><parameter>CC="${CLFS_TARGET}-gcc"</parameter></term>
105 <listitem>
106 <para>This forces Glibc to use the GCC compiler that we made for our target
107 architecture.</para>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry os="j3">
112 <term><parameter>AR="${CLFS_TARGET}-ar"</parameter></term>
113 <listitem>
114 <para>This forces Glibc to use the <command>ar</command> utility
115 we made for our target architecture.</para>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry os="j4">
120 <term><parameter>RANLIB="${CLFS_TARGET}-ranlib"</parameter></term>
121 <listitem>
122 <para>This forces Glibc to use the <command>ranlib</command> utility
123 we made for our target architecture.</para>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry os="j5">
128 <term><parameter>--disable-profile</parameter></term>
129 <listitem>
130 <para>This builds the libraries without profiling information.
131 Omit this option if profiling on the temporary tools is necessary.</para>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry os="j6">
136 <term><parameter>--enable-add-ons</parameter></term>
137 <listitem>
138 <para>This tells Glibc to utilize all add-ons that are
139 available.</para>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry os="j7">
144 <term><parameter>--with-tls</parameter></term>
145 <listitem>
146 <para>This tells Glibc to use Thread Local Storage.</para>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry os="j8">
151 <term><parameter>--with-__thread</parameter></term>
152 <listitem>
153 <para>This tells Glibc to use use the __thread for libc and
154 libpthread builds.</para>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry os="j9">
159 <term><parameter>--with-binutils=${CLFS}/cross-tools/bin</parameter></term>
160 <listitem>
161 <para>This tells Glibc to use the Binutils that are specific to
162 our target architecture.</para>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry os="j10">
167 <term><parameter>--cache-file=config.cache</parameter></term>
168 <listitem>
169 <para>This tells Glibc to utilize a premade cache file.</para>
170 </listitem>
171 </varlistentry>
172
173 </variablelist>
174
175 <para os="k">During this stage the following warning might appear:</para>
176
177<blockquote os="l"><screen><computeroutput>configure: WARNING:
178*** These auxiliary programs are missing or
179*** incompatible versions: msgfmt
180*** some features will be disabled.
181*** Check the INSTALL file for required versions.</computeroutput></screen></blockquote>
182
183 <para os="m">The missing or incompatible <command>msgfmt</command> program is
184 generally harmless. This <command>msgfmt</command> program is part of the
185 Gettext package which the host distribution should provide.</para>
186
187 <para os="n">Compile the package:</para>
188
189<screen os="o"><userinput>make</userinput></screen>
190
191 <para os="p">Install the package:</para>
192
193<screen os="q"><userinput>make install</userinput></screen>
194
195 </sect2>
196
197 <sect2 id="i18n-glibc" role="configuration">
198 <title>Internationalization</title>
199
200 <para>The locales that can make the system respond in a different
201 language were not installed by the above command. Install them
202 with:</para>
203
204<screen><userinput>make localedata/install-locales</userinput></screen>
205
206 <para>To save time, an alternative to running the previous command (which
207 generates and installs every locale listed in the
208 glibc-&glibc-version;/localedata/SUPPORTED file) is to install only
209 those locales that are wanted and needed. This can be achieved by using
210 the <command>localedef</command> command. Information on this command is
211 located in the <filename>INSTALL</filename> file in the Glibc source.
212 However, there are a number of locales that are essential in order for the
213 tests of future packages to pass, in particular, the
214 <emphasis>libstdc++</emphasis> tests from GCC. The following instructions,
215 instead of the <parameter>install-locales</parameter> target used above,
216 will install the minimum set of locales necessary for the tests to run
217 successfully:</para>
218
219<screen role="nodump"><userinput>mkdir -pv ${CLFS}/usr/lib/locale
220export I18NPATH=${PWD}/localedata
221export GCONV_PATH=${PWD}/iconvdata
222export LOCALEDEF="${PWD}/locale/localedef-native
223 --alias-file=../intl/locale.alias"
224cd ../glibc-&glibc-version;/localedata
225${LOCALEDEF} -i locales/de_DE -f charmaps/ISO-8859-1 --prefix=${CLFS} de_DE
226${LOCALEDEF} -i locales/de_DE@euro -f charmaps/ISO-8859-15 \
227 --prefix=${CLFS} de_DE@euro
228${LOCALEDEF} -i locales/en_HK -f charmaps/ISO-8859-1 --prefix=${CLFS} en_HK
229${LOCALEDEF} -i locales/en_PH -f charmaps/ISO-8859-1 --prefix=${CLFS} en_PH
230${LOCALEDEF} -i locales/en_US -f charmaps/ISO-8859-1 --prefix=${CLFS} en_US
231${LOCALEDEF} -i locales/es_MX -f charmaps/ISO-8859-1 --prefix=${CLFS} es_MX
232${LOCALEDEF} -i locales/fa_IR -f charmaps/UTF-8 --prefix=${CLFS} fa_IR
233${LOCALEDEF} -i locales/fr_FR -f charmaps/ISO-8859-1 --prefix=${CLFS} fr_FR
234${LOCALEDEF} -i locales/fr_FR@euro -f charmaps/ISO-8859-15 \
235 --prefix=${CLFS} fr_FR@euro
236${LOCALEDEF} -i locales/it_IT -f charmaps/ISO-8859-1 --prefix=${CLFS} it_IT
237${LOCALEDEF} -i locales/ja_JP -f charmaps/EUC-JP --prefix=${CLFS} ja_JP
238unset I18NPATH GCONV_PATH LOCALEDEF</userinput></screen>
239
240 <para>Some locales installed by the <command>make
241 localedata/install-locales</command> command above are not properly
242 supported by some applications that are in the CLFS and BLFS books. Because
243 of the various problems that arise due to application programmers making
244 assumptions that break in such locales, CLFS should not be used in locales
245 that utilize multibyte character sets (including UTF-8) or right-to-left
246 writing order. Numerous unofficial and unstable patches are required to
247 fix these problems, and it has been decided by the CLFS developers not to
248 support such complex locales at this time. This applies to the ja_JP and
249 fa_IR locales as well&mdash;they have been installed only for GCC and
250 Gettext tests to pass, and the <command>watch</command> program (part of
251 the Procps package) does not work properly in them. Various attempts to
252 circumvent these restrictions are documented in internationalization-related
253 hints.</para>
254
255 </sect2>
256
257 <sect2 id="conf-glibc" role="configuration">
258 <title>Configuring Glibc</title>
259
260 <indexterm zone="conf-glibc">
261 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
262 </indexterm>
263
264 <indexterm zone="conf-glibc">
265 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
266 </indexterm>
267
268 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
269 because, although Glibc provides defaults when this file is missing or
270 corrupt, the Glibc defaults do not work well in a networked environment.
271 The time zone also needs to be configured.</para>
272
273 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running
274 the following:</para>
275
276<screen><userinput>cat &gt; ${CLFS}/etc/nsswitch.conf &lt;&lt; "EOF"
277<literal># Begin /etc/nsswitch.conf
278
279passwd: files
280group: files
281shadow: files
282
283hosts: files dns
284networks: files
285
286protocols: files
287services: files
288ethers: files
289rpc: files
290
291# End /etc/nsswitch.conf</literal>
292EOF</userinput></screen>
293
294 <para>To determine the local time zone, run the following script:</para>
295
296<screen role="nodump"><userinput>TZDIR="${CLFS}/usr/share/zoneinfo" ${CLFS}/usr/bin/tzselect</userinput></screen>
297
298 <para>After answering a few questions about the location, the script will
299 output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
300 <emphasis>Canada/Eastern</emphasis>). Then create the
301 <filename>/etc/localtime</filename> file by running:</para>
302
303<screen><userinput>cp -v --remove-destination ${CLFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
304 ${CLFS}/etc/localtime</userinput></screen>
305
306 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
307 that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
308
309 <variablelist>
310 <title>The meaning of the cp option:</title>
311
312 <varlistentry>
313 <term><parameter>--remove-destination</parameter></term>
314 <listitem>
315 <para>This is needed to force removal of the already existing symbolic
316 link. The reason for copying the file instead of using a symlink is to
317 cover the situation where <filename class="directory">/usr</filename>
318 is on a separate partition. This could be important when booted into
319 single user mode.</para>
320 </listitem>
321 </varlistentry>
322 </variablelist>
323
324 </sect2>
325
326 <sect2 id="conf-ld" role="configuration">
327 <title>Configuring The Dynamic Loader</title>
328
329 <indexterm zone="conf-ld">
330 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
331 </indexterm>
332
333 <para>By default, the dynamic loader (<filename
334 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
335 <filename class="directory">/lib</filename> and <filename
336 class="directory">/usr/lib</filename> for dynamic libraries that are
337 needed by programs as they are run. However, if there are libraries in
338 directories other than <filename class="directory">/lib</filename> and
339 <filename class="directory">/usr/lib</filename>, these need to be
340 added to the <filename>/etc/ld.so.conf</filename> file in order
341 for the dynamic loader to find them. Two directories that are commonly
342 known to contain additional libraries are <filename
343 class="directory">/usr/local/lib</filename> and <filename
344 class="directory">/opt/lib</filename>, so add those directories to the
345 dynamic loader's search path.</para>
346
347 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
348 following:</para>
349
350<screen><userinput>cat &gt; ${CLFS}/etc/ld.so.conf &lt;&lt; "EOF"
351<literal># Begin /etc/ld.so.conf
352
353/usr/local/lib
354/opt/lib
355
356# End /etc/ld.so.conf</literal>
357EOF</userinput></screen>
358
359 </sect2>
360
361 <sect2 id="contents-glibc" role="content">
362 <title>Contents of Glibc</title>
363
364 <segmentedlist>
365 <segtitle>Installed programs</segtitle>
366 <segtitle>Installed libraries</segtitle>
367
368 <seglistitem>
369 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
370 ldd, lddlibc4, locale, localedef, mtrace, nscd,
371 pcprofiledump, pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace,
372 zdump, and zic</seg>
373 <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
374 libbsd-compat.a, libc.[a,so], libcrypt.[a,so], libdl.[a,so], libg.a,
375 libieee.a, libm.[a,so], libmcheck.a, libmemusage.so, libnsl.a,
376 libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
377 libnss_nis.so, libnss_nisplus.so, libpcprofile.so, libpthread.[a,so],
378 libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and
379 libutil.[a,so]</seg>
380 </seglistitem>
381 </segmentedlist>
382
383 <variablelist>
384 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
385 <?dbfo list-presentation="list"?>
386 <?dbhtml list-presentation="table"?>
387
388 <varlistentry id="catchsegv">
389 <term><command>catchsegv</command></term>
390 <listitem>
391 <para>Can be used to create a stack trace when a program
392 terminates with a segmentation fault</para>
393 <indexterm zone="ch-cross-tools-glibc catchsegv">
394 <primary sortas="b-catchsegv">catchsegv</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
399 <varlistentry id="gencat">
400 <term><command>gencat</command></term>
401 <listitem>
402 <para>Generates message catalogues</para>
403 <indexterm zone="ch-cross-tools-glibc gencat">
404 <primary sortas="b-gencat">gencat</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="getconf">
410 <term><command>getconf</command></term>
411 <listitem>
412 <para>Displays the system configuration values for file system specific
413 variables</para>
414 <indexterm zone="ch-cross-tools-glibc getconf">
415 <primary sortas="b-getconf">getconf</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="getent">
421 <term><command>getent</command></term>
422 <listitem>
423 <para>Gets entries from an administrative database</para>
424 <indexterm zone="ch-cross-tools-glibc getent">
425 <primary sortas="b-getent">getent</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
430 <varlistentry id="iconv">
431 <term><command>iconv</command></term>
432 <listitem>
433 <para>Performs character set conversion</para>
434 <indexterm zone="ch-cross-tools-glibc iconv">
435 <primary sortas="b-iconv">iconv</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="iconvconfig">
441 <term><command>iconvconfig</command></term>
442 <listitem>
443 <para>Creates fastloading <command>iconv</command> module configuration
444 files</para>
445 <indexterm zone="ch-cross-tools-glibc iconvconfig">
446 <primary sortas="b-iconvconfig">iconvconfig</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="ldconfig">
452 <term><command>ldconfig</command></term>
453 <listitem>
454 <para>Configures the dynamic linker runtime bindings</para>
455 <indexterm zone="ch-cross-tools-glibc ldconfig">
456 <primary sortas="b-ldconfig">ldconfig</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="ldd">
462 <term><command>ldd</command></term>
463 <listitem>
464 <para>Reports which shared libraries are required
465 by each given program or shared library</para>
466 <indexterm zone="ch-cross-tools-glibc ldd">
467 <primary sortas="b-ldd">ldd</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="lddlibc4">
473 <term><command>lddlibc4</command></term>
474 <listitem>
475 <para>Assists <command>ldd</command> with object files</para>
476 <indexterm zone="ch-cross-tools-glibc lddlibc4">
477 <primary sortas="b-lddlibc4">lddlibc4</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
482 <varlistentry id="locale">
483 <term><command>locale</command></term>
484 <listitem>
485 <para>Tells the compiler to enable or disable the use of POSIX locales
486 for built-in operations</para>
487 <indexterm zone="ch-cross-tools-glibc locale">
488 <primary sortas="b-locale">locale</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="localedef">
494 <term><command>localedef</command></term>
495 <listitem>
496 <para>Compiles locale specifications</para>
497 <indexterm zone="ch-cross-tools-glibc localedef">
498 <primary sortas="b-localedef">localedef</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
502
503 <varlistentry id="mtrace">
504 <term><command>mtrace</command></term>
505 <listitem>
506 <para>Reads and interprets a memory trace file and
507 displays a summary in human-readable format</para>
508 <indexterm zone="ch-cross-tools-glibc mtrace">
509 <primary sortas="b-mtrace">mtrace</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="nscd">
515 <term><command>nscd</command></term>
516 <listitem>
517 <para>A daemon that provides a cache for the most common name
518 service requests</para>
519 <indexterm zone="ch-cross-tools-glibc nscd">
520 <primary sortas="b-nscd">nscd</primary>
521 </indexterm>
522 </listitem>
523 </varlistentry>
524
525 <varlistentry id="pcprofiledump">
526 <term><command>pcprofiledump</command></term>
527 <listitem>
528 <para>Dumps information generated by PC profiling</para>
529 <indexterm zone="ch-cross-tools-glibc pcprofiledump">
530 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
531 </indexterm>
532 </listitem>
533 </varlistentry>
534
535 <varlistentry id="pt_chown">
536 <term><command>pt_chown</command></term>
537 <listitem>
538 <para>A helper program for <command>grantpt</command> to set the owner,
539 group and access permissions of a slave pseudo terminal</para>
540 <indexterm zone="ch-cross-tools-glibc pt_chown">
541 <primary sortas="b-pt_chown">pt_chown</primary>
542 </indexterm>
543 </listitem>
544 </varlistentry>
545
546 <varlistentry id="rpcgen">
547 <term><command>rpcgen</command></term>
548 <listitem>
549 <para>Generates C code to implement the Remote Procecure Call (RPC)
550 protocol</para>
551 <indexterm zone="ch-cross-tools-glibc rpcgen">
552 <primary sortas="b-rpcgen">rpcgen</primary>
553 </indexterm>
554 </listitem>
555 </varlistentry>
556
557 <varlistentry id="rpcinfo">
558 <term><command>rpcinfo</command></term>
559 <listitem>
560 <para>Makes an RPC call to an RPC server</para>
561 <indexterm zone="ch-cross-tools-glibc rpcinfo">
562 <primary sortas="b-rpcinfo">rpcinfo</primary>
563 </indexterm>
564 </listitem>
565 </varlistentry>
566
567 <varlistentry id="sln">
568 <term><command>sln</command></term>
569 <listitem>
570 <para>A statically linked program that creates symbolic links</para>
571 <indexterm zone="ch-cross-tools-glibc sln">
572 <primary sortas="b-sln">sln</primary>
573 </indexterm>
574 </listitem>
575 </varlistentry>
576
577 <varlistentry id="sprof">
578 <term><command>sprof</command></term>
579 <listitem>
580 <para>Reads and displays shared object profiling data</para>
581 <indexterm zone="ch-cross-tools-glibc sprof">
582 <primary sortas="b-sprof">sprof</primary>
583 </indexterm>
584 </listitem>
585 </varlistentry>
586
587 <varlistentry id="tzselect">
588 <term><command>tzselect</command></term>
589 <listitem>
590 <para>Asks the user about the location of the
591 system and reports the corresponding time zone description</para>
592 <indexterm zone="ch-cross-tools-glibc tzselect">
593 <primary sortas="b-tzselect">tzselect</primary>
594 </indexterm>
595 </listitem>
596 </varlistentry>
597
598 <varlistentry id="xtrace">
599 <term><command>xtrace</command></term>
600 <listitem>
601 <para>Traces the execution of a program by
602 printing the currently executed function</para>
603 <indexterm zone="ch-cross-tools-glibc xtrace">
604 <primary sortas="b-xtrace">xtrace</primary>
605 </indexterm>
606 </listitem>
607 </varlistentry>
608
609 <varlistentry id="zdump">
610 <term><command>zdump</command></term>
611 <listitem>
612 <para>The time zone dumper</para>
613 <indexterm zone="ch-cross-tools-glibc zdump">
614 <primary sortas="b-zdump">zdump</primary>
615 </indexterm>
616 </listitem>
617 </varlistentry>
618
619 <varlistentry id="zic">
620 <term><command>zic</command></term>
621 <listitem>
622 <para>The time zone compiler</para>
623 <indexterm zone="ch-cross-tools-glibc zic">
624 <primary sortas="b-zic">zic</primary>
625 </indexterm>
626 </listitem>
627 </varlistentry>
628
629 <varlistentry id="ld.so">
630 <term><filename class="libraryfile">ld.so</filename></term>
631 <listitem>
632 <para>The helper program for shared library executables</para>
633 <indexterm zone="ch-cross-tools-glibc ld.so">
634 <primary sortas="c-ld.so">ld.so</primary>
635 </indexterm>
636 </listitem>
637 </varlistentry>
638
639 <varlistentry id="libBrokenLocale">
640 <term><filename class="libraryfile">libBrokenLocale</filename></term>
641 <listitem>
642 <para>Used by programs, such as Mozilla, to solve broken locales</para>
643 <indexterm zone="ch-cross-tools-glibc libBrokenLocale">
644 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
645 </indexterm>
646 </listitem>
647 </varlistentry>
648
649 <varlistentry id="libSegFault">
650 <term><filename class="libraryfile">libSegFault</filename></term>
651 <listitem>
652 <para>The segmentation fault signal handler</para>
653 <indexterm zone="ch-cross-tools-glibc libSegFault">
654 <primary sortas="c-libSegFault">libSegFault</primary>
655 </indexterm>
656 </listitem>
657 </varlistentry>
658
659 <varlistentry id="libanl">
660 <term><filename class="libraryfile">libanl</filename></term>
661 <listitem>
662 <para>An asynchronous name lookup library</para>
663 <indexterm zone="ch-cross-tools-glibc libanl">
664 <primary sortas="c-libanl">libanl</primary>
665 </indexterm>
666 </listitem>
667 </varlistentry>
668
669 <varlistentry id="libbsd-compat">
670 <term><filename class="libraryfile">libbsd-compat</filename></term>
671 <listitem>
672 <para>Provides the portability needed
673 in order to run certain Berkey Software Distribution (BSD) programs
674 under Linux</para>
675 <indexterm zone="ch-cross-tools-glibc libbsd-compat">
676 <primary sortas="c-libbsd-compat">libbsd-compat</primary>
677 </indexterm>
678 </listitem>
679 </varlistentry>
680
681 <varlistentry id="libc">
682 <term><filename class="libraryfile">libc</filename></term>
683 <listitem>
684 <para>The main C library</para>
685 <indexterm zone="ch-cross-tools-glibc libc">
686 <primary sortas="c-libc">libc</primary>
687 </indexterm>
688 </listitem>
689 </varlistentry>
690
691 <varlistentry id="libcrypt">
692 <term><filename class="libraryfile">libcrypt</filename></term>
693 <listitem>
694 <para>The cryptography library</para>
695 <indexterm zone="ch-cross-tools-glibc libcrypt">
696 <primary sortas="c-libcrypt">libcrypt</primary>
697 </indexterm>
698 </listitem>
699 </varlistentry>
700
701 <varlistentry id="libdl">
702 <term><filename class="libraryfile">libdl</filename></term>
703 <listitem>
704 <para>The dynamic linking interface library</para>
705 <indexterm zone="ch-cross-tools-glibc libdl">
706 <primary sortas="c-libdl">libdl</primary>
707 </indexterm>
708 </listitem>
709 </varlistentry>
710
711 <varlistentry id="libg">
712 <term><filename class="libraryfile">libg</filename></term>
713 <listitem>
714 <para>A runtime library for <command>g++</command></para>
715 <indexterm zone="ch-cross-tools-glibc libg">
716 <primary sortas="c-libg">libg</primary>
717 </indexterm>
718 </listitem>
719 </varlistentry>
720
721 <varlistentry id="libieee">
722 <term><filename class="libraryfile">libieee</filename></term>
723 <listitem>
724 <para>The Institute of Electrical and Electronic Engineers (IEEE)
725 floating point library</para>
726 <indexterm zone="ch-cross-tools-glibc libieee">
727 <primary sortas="c-libieee">libieee</primary>
728 </indexterm>
729 </listitem>
730 </varlistentry>
731
732 <varlistentry id="libm">
733 <term><filename class="libraryfile">libm</filename></term>
734 <listitem>
735 <para>The mathematical library</para>
736 <indexterm zone="ch-cross-tools-glibc libm">
737 <primary sortas="c-libm">libm</primary>
738 </indexterm>
739 </listitem>
740 </varlistentry>
741
742 <varlistentry id="libmcheck">
743 <term><filename class="libraryfile">libmcheck</filename></term>
744 <listitem>
745 <para>Contains code run at boot</para>
746 <indexterm zone="ch-cross-tools-glibc libmcheck">
747 <primary sortas="c-libmcheck">libmcheck</primary>
748 </indexterm>
749 </listitem>
750 </varlistentry>
751
752 <varlistentry id="libmemusage">
753 <term><filename class="libraryfile">libmemusage</filename></term>
754 <listitem>
755 <para>Used by <command>memusage</command> (included in Glibc, but
756 not built in a base CLFS system as it has additional dependencies)
757 to help collect information about the memory usage of a program</para>
758 <indexterm zone="ch-cross-tools-glibc libmemusage">
759 <primary sortas="c-libmemusage">libmemusage</primary>
760 </indexterm>
761 </listitem>
762 </varlistentry>
763
764 <varlistentry id="libnsl">
765 <term><filename class="libraryfile">libnsl</filename></term>
766 <listitem>
767 <para>The network services library</para>
768 <indexterm zone="ch-cross-tools-glibc libnsl">
769 <primary sortas="c-libnsl">libnsl</primary>
770 </indexterm>
771 </listitem>
772 </varlistentry>
773
774 <varlistentry id="libnss">
775 <term><filename class="libraryfile">libnss</filename></term>
776 <listitem>
777 <para>The Name Service Switch libraries, containing functions for
778 resolving host names, user names, group names, aliases, services,
779 protocols, etc.</para>
780 <indexterm zone="ch-cross-tools-glibc libnss">
781 <primary sortas="c-libnss">libnss</primary>
782 </indexterm>
783 </listitem>
784 </varlistentry>
785
786 <varlistentry id="libpcprofile">
787 <term><filename class="libraryfile">libpcprofile</filename></term>
788 <listitem>
789 <para>Contains profiling functions used to track the amount of CPU
790 time spent in specific source code lines</para>
791 <indexterm zone="ch-cross-tools-glibc libpcprofile">
792 <primary sortas="c-libpcprofile">libpcprofile</primary>
793 </indexterm>
794 </listitem>
795 </varlistentry>
796
797 <varlistentry id="libpthread">
798 <term><filename class="libraryfile">libpthread</filename></term>
799 <listitem>
800 <para>The POSIX threads library</para>
801 <indexterm zone="ch-cross-tools-glibc libpthread">
802 <primary sortas="c-libpthread">libpthread</primary>
803 </indexterm>
804 </listitem>
805 </varlistentry>
806
807 <varlistentry id="libresolv">
808 <term><filename class="libraryfile">libresolv</filename></term>
809 <listitem>
810 <para>Contains functions for creating, sending, and interpreting
811 packets to the Internet domain name servers</para>
812 <indexterm zone="ch-cross-tools-glibc libresolv">
813 <primary sortas="c-libresolv">libresolv</primary>
814 </indexterm>
815 </listitem>
816 </varlistentry>
817
818 <varlistentry id="librpcsvc">
819 <term><filename class="libraryfile">librpcsvc</filename></term>
820 <listitem>
821 <para>Contains functions providing miscellaneous RPC services</para>
822 <indexterm zone="ch-cross-tools-glibc librpcsvc">
823 <primary sortas="c-librpcsvc">librpcsvc</primary>
824 </indexterm>
825 </listitem>
826 </varlistentry>
827
828 <varlistentry id="librt">
829 <term><filename class="libraryfile">librt</filename></term>
830 <listitem>
831 <para>Contains functions providing most of the interfaces specified by
832 the POSIX.1b Realtime Extension</para>
833 <indexterm zone="ch-cross-tools-glibc librt">
834 <primary sortas="c-librt">librt</primary>
835 </indexterm>
836 </listitem>
837 </varlistentry>
838
839 <varlistentry id="libthread_db">
840 <term><filename class="libraryfile">libthread_db</filename></term>
841 <listitem>
842 <para>Contains functions useful for
843 building debuggers for multi-threaded programs</para>
844 <indexterm zone="ch-cross-tools-glibc libthread_db">
845 <primary sortas="c-libthread_db">libthread_db</primary>
846 </indexterm>
847 </listitem>
848 </varlistentry>
849
850 <varlistentry id="libutil">
851 <term><filename class="libraryfile">libutil</filename></term>
852 <listitem>
853 <para>Contains code for <quote>standard</quote> functions used in
854 many different Unix utilities</para>
855 <indexterm zone="ch-cross-tools-glibc libutil">
856 <primary sortas="c-libutil">libutil</primary>
857 </indexterm>
858 </listitem>
859 </varlistentry>
860
861 </variablelist>
862
863 </sect2>
864
865</sect1>
Note: See TracBrowser for help on using the repository browser.