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

Last change on this file since fabddfd was af447da, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Convert the glibc echos for the config.cache file to a cat command.

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