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

Last change on this file since aee11f5 was 5229469, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Simplified glibc copying of localtime

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