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

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

Update the libgcc_eh patch to -2.

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