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

Last change on this file since 2b41e4b was b47f947, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

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