source: chapter06/glibc.xml@ f65c459

Last change on this file since f65c459 was 0d2c43f, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Use --with-arch on GCC instead of -march on Glibc

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8330 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 32.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <title>Glibc-&glibc-version;</title>
12
13 <indexterm zone="ch-system-glibc">
14 <primary sortas="a-Glibc">Glibc</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Glibc package contains the main C library. This library provides
21 the basic routines for allocating memory, searching directories, opening and
22 closing files, reading and writing files, string handling, pattern matching,
23 arithmetic, and so on.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>&glibc-ch6-sbu;</seg>
31 <seg>&glibc-ch6-du;</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 </sect2>
36
37 <sect2 role="installation">
38 <title>Installation of Glibc</title>
39
40 <note>
41 <para>Some packages outside of LFS suggest installing GNU libiconv in
42 order to translate data from one encoding to another. The project's
43 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
44 <quote>This library provides an <function>iconv()</function>
45 implementation, for use on systems which don't have one, or whose
46 implementation cannot convert from/to Unicode.</quote> Glibc provides
47 an <function>iconv()</function> implementation and can convert from/to
48 Unicode, therefore libiconv is not required on an LFS system.</para>
49 </note>
50
51 <para>The Glibc build system is self-contained and will install
52 perfectly, even though the compiler specs file and linker are still
53 pointing at <filename class="directory">/tools</filename>. The specs
54 and linker cannot be adjusted before the Glibc install because the
55 Glibc autoconf tests would give false results and defeat the goal
56 of achieving a clean build.</para>
57
58 <para>The glibc-libidn tarball adds support for internationalized domain
59 names (IDN) to Glibc. Many programs that support IDN require the full
60 <filename class="libraryfile">libidn</filename> library, not this add-on (see
61 <ulink url="&blfs-root;view/svn/general/libidn.html"/>).
62 Unpack the tarball from within the Glibc source directory:</para>
63
64<screen><userinput>tar -xvf ../glibc-libidn-&glibc-version;.tar.gz
65mv glibc-libidn-&glibc-version; libidn</userinput></screen>
66
67 <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
68 at startup. It is unknown whether this is a <command>bash</command> bug or a
69 Glibc problem. Disable installation of this locale in order to avoid the
70 problem:</para>
71
72<screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
73
74 <para>When running <command>make install</command>, a script called
75 <filename>test-installation.pl</filename> performs a small sanity test on
76 our newly installed Glibc. However, because our toolchain still points to
77 the <filename class="directory">/tools</filename> directory, the sanity
78 test would be carried out against the wrong Glibc. We can force the script
79 to check the Glibc we have just installed with the following:</para>
80
81<screen><userinput>DL=$(readelf -l /bin/sh | grep interpreter | \
82awk '{print $4}' | sed -e 's@/tools@@' -e 's@]$@@')
83sed -i &quot;s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|&quot; \
84 scripts/test-installation.pl
85unset DL</userinput></screen>
86
87 <para>The <command>ldd</command> shell script contains Bash-specific
88 syntax. Change it's default program interpreter to <command>/bin/bash</command>
89 in case another <command>/bin/sh</command> is installed as described in the
90 <ulink url="&blfs-root;view/svn/postlfs/shells.html">Shells</ulink>
91 chapter of the BLFS book:</para>
92
93<screen><userinput>sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
94
95 <para>The Glibc documentation recommends building Glibc outside of the source
96 directory in a dedicated build directory:</para>
97
98<screen><userinput>mkdir -v ../glibc-build
99cd ../glibc-build</userinput></screen>
100
101 <para>Prepare Glibc for compilation:</para>
102
103<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
104 --disable-profile --enable-add-ons \
105 --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
106
107 <variablelist>
108 <title>The meaning of the new configure options:</title>
109
110 <varlistentry>
111 <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
112 <listitem>
113 <para>This changes the location of the <command>pt_chown</command>
114 program from its default of <filename
115 class="directory">/usr/libexec</filename> to <filename
116 class="directory">/usr/lib/glibc</filename>.</para>
117 </listitem>
118 </varlistentry>
119
120 </variablelist>
121
122 <para>Compile the package:</para>
123
124<screen><userinput>make</userinput></screen>
125
126 <important>
127 <para>In this section, the test suite for Glibc is considered critical.
128 Do not skip it under any circumstance.</para>
129 </important>
130
131 <para>Test the results:</para>
132
133<screen><userinput>make -k check 2&gt;&amp;1 | tee glibc-check-log
134grep Error glibc-check-log</userinput></screen>
135
136 <para>You will probably see an expected (ignored) failure in the
137 <emphasis>posix/annexc</emphasis> test. In addition the Glibc test suite
138 is somewhat dependent on the host system. This is a list of the most
139 common issues:</para>
140
141 <itemizedlist>
142 <!-- Check again after updating from gcc-4.1.x -->
143 <listitem>
144 <para>The <emphasis>nptl/tst-cancel1</emphasis> test will fail when
145 using the 4.1 series of GCC.</para>
146 </listitem>
147 <!-- Was true in glibc-2.3.6 -->
148 <listitem>
149 <para>The <emphasis>nptl/tst-clock2</emphasis> and
150 <emphasis>tst-attr3</emphasis> tests sometimes
151 fail. The reason is not completely understood, but indications
152 are that a heavy system load can trigger these failures.</para>
153 </listitem>
154 <listitem>
155 <para>The math tests sometimes fail when running on
156 systems where the CPU is not a relatively new genuine Intel or
157 authentic AMD processor.</para>
158 </listitem>
159 <listitem>
160 <para>If you have mounted the LFS partition with the
161 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis>
162 test will fail. As mentioned in <xref linkend="space-mounting"/>, do not
163 use the <parameter>noatime</parameter> option while building LFS.</para>
164 </listitem>
165 <listitem>
166 <para>When running on older and slower hardware or on systems under
167 load, some tests can fail because of test timeouts being exceeded.</para>
168 </listitem>
169 </itemizedlist>
170
171 <para>Though it is a harmless message, the install stage of Glibc will
172 complain about the absence of <filename>/etc/ld.so.conf</filename>.
173 Prevent this warning with:</para>
174
175<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
176
177 <para>Install the package:</para>
178
179<screen><userinput>make install</userinput></screen>
180
181 <para>The locales that can make the system respond in a different language
182 were not installed by the above command. None of the locales are required,
183 but if some of them are missing, testsuites of the future packages would
184 skip important testcases.</para>
185
186 <para>Individual locales can be installed using the
187 <command>localedef</command> program. E.g., the first
188 <command>localedef</command> command below combines the
189 <filename>/usr/share/i18n/locales/de_DE</filename>
190 charset-independent locale definition with the
191 <filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename>
192 charmap definition and appends the result to the
193 <filename>/usr/lib/locale/locale-archive</filename> file.
194 The following instructions will install the minimum set of
195 locales necessary for the optimal coverage of tests:</para>
196
197<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
198localedef -i de_DE -f ISO-8859-1 de_DE
199localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
200localedef -i en_HK -f ISO-8859-1 en_HK
201localedef -i en_PH -f ISO-8859-1 en_PH
202localedef -i en_US -f ISO-8859-1 en_US
203localedef -i en_US -f UTF-8 en_US.UTF-8
204localedef -i es_MX -f ISO-8859-1 es_MX
205localedef -i fa_IR -f UTF-8 fa_IR
206localedef -i fr_FR -f ISO-8859-1 fr_FR
207localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
208localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
209localedef -i it_IT -f ISO-8859-1 it_IT
210localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
211
212 <para>In addition, install the locale for your own country, language and
213 character set.</para>
214
215 <para>Alternatively, install all locales listed in the
216 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
217 (it includes every locale listed above and many more) at once with the
218 following time-consuming command:</para>
219
220<screen><userinput>make localedata/install-locales</userinput></screen>
221
222 <para>Then use the <command>localedef</command> command to create and
223 install locales not listed in the
224 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
225 in the unlikely case if you need them.</para>
226 <!-- The Live CD patches the localedata/SUPPORTED file instead of
227 running localedef, the results are equivalent -->
228
229 </sect2>
230
231 <sect2 id="conf-glibc" role="configuration">
232 <title>Configuring Glibc</title>
233
234 <indexterm zone="conf-glibc">
235 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
236 </indexterm>
237
238 <indexterm zone="conf-glibc">
239 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
240 </indexterm>
241
242 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
243 because, although Glibc provides defaults when this file is missing or corrupt,
244 the Glibc defaults do not work well in a networked environment. The time zone
245 also needs to be configured.</para>
246
247 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
248 following:</para>
249
250<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
251<literal># Begin /etc/nsswitch.conf
252
253passwd: files
254group: files
255shadow: files
256
257hosts: files dns
258networks: files
259
260protocols: files
261services: files
262ethers: files
263rpc: files
264
265# End /etc/nsswitch.conf</literal>
266EOF</userinput></screen>
267
268 <para>One way to determine the local time zone, run the following
269 script:</para>
270
271<screen role="nodump"><userinput>tzselect</userinput></screen>
272
273 <para>After answering a few questions about the location, the script will
274 output the name of the time zone (e.g.,
275 <emphasis>America/Edmonton</emphasis>). There are also some other possible
276 timezones listed in <filename
277 class='directory'>/usr/share/zoneinfo</filename> such as
278 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
279 are not identified by the script but can be used.</para>
280
281 <para>Then create the <filename>/etc/localtime</filename> file by
282 running:</para>
283
284<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> \
285 /etc/localtime</userinput></screen>
286
287 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
288 time zone selected (e.g., Canada/Eastern).</para>
289
290 <variablelist>
291 <title>The meaning of the cp option:</title>
292
293 <varlistentry>
294 <term><parameter>--remove-destination</parameter></term>
295 <listitem>
296 <para>This is needed to force removal of the already existing symbolic
297 link. The reason for copying the file instead of using a symlink is to
298 cover the situation where <filename class="directory">/usr</filename>
299 is on a separate partition. This could be important when booted into
300 single user mode.</para>
301 </listitem>
302 </varlistentry>
303
304 </variablelist>
305
306 </sect2>
307
308 <sect2 id="conf-ld" role="configuration">
309 <title>Configuring the Dynamic Loader</title>
310
311 <indexterm zone="conf-ld">
312 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
313 </indexterm>
314
315 <para>By default, the dynamic loader (<filename
316 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
317 <filename class="directory">/lib</filename> and <filename
318 class="directory">/usr/lib</filename> for dynamic libraries that are
319 needed by programs as they are run. However, if there are libraries in
320 directories other than <filename class="directory">/lib</filename> and
321 <filename class="directory">/usr/lib</filename>, these need to be added
322 to the <filename>/etc/ld.so.conf</filename> file in order for the
323 dynamic loader to find them. Two directories that are commonly known
324 to contain additional libraries are <filename
325 class="directory">/usr/local/lib</filename> and <filename
326 class="directory">/opt/lib</filename>, so add those directories to the
327 dynamic loader's search path.</para>
328
329 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
330 following:</para>
331
332<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
333<literal># Begin /etc/ld.so.conf
334
335/usr/local/lib
336/opt/lib
337
338# End /etc/ld.so.conf</literal>
339EOF</userinput></screen>
340
341 </sect2>
342
343 <sect2 id="contents-glibc" role="content">
344 <title>Contents of Glibc</title>
345
346 <segmentedlist>
347 <segtitle>Installed programs</segtitle>
348 <segtitle>Installed libraries</segtitle>
349
350 <seglistitem>
351 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
352 ldd, lddlibc4, locale, localedef, mtrace, nscd, pcprofiledump,
353 pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace,
354 zdump, and zic</seg>
355 <seg>ld.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
356 libbsd-compat.a, libc.{a,so}, libcidn.so, libcrypt.{a,so}, libdl.{a,so},
357 libg.a, libieee.a, libm.{a,so}, libmcheck.a, libmemusage.so,
358 libnsl.{a,so}, libnss_compat.so, libnss_dns.so, libnss_files.so,
359 libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
360 libpthread.{a,so}, libresolv.{a,so}, librpcsvc.a, librt.{a,so},
361 libthread_db.so, and libutil.{a,so}</seg>
362 </seglistitem>
363 </segmentedlist>
364
365 <variablelist>
366 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
367 <?dbfo list-presentation="list"?>
368 <?dbhtml list-presentation="table"?>
369
370 <varlistentry id="catchsegv">
371 <term><command>catchsegv</command></term>
372 <listitem>
373 <para>Can be used to create a stack trace when a program
374 terminates with a segmentation fault</para>
375 <indexterm zone="ch-system-glibc catchsegv">
376 <primary sortas="b-catchsegv">catchsegv</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="gencat">
382 <term><command>gencat</command></term>
383 <listitem>
384 <para>Generates message catalogues</para>
385 <indexterm zone="ch-system-glibc gencat">
386 <primary sortas="b-gencat">gencat</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="getconf">
392 <term><command>getconf</command></term>
393 <listitem>
394 <para>Displays the system configuration values for file system
395 specific variables</para>
396 <indexterm zone="ch-system-glibc getconf">
397 <primary sortas="b-getconf">getconf</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="getent">
403 <term><command>getent</command></term>
404 <listitem>
405 <para>Gets entries from an administrative database</para>
406 <indexterm zone="ch-system-glibc getent">
407 <primary sortas="b-getent">getent</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="iconv">
413 <term><command>iconv</command></term>
414 <listitem>
415 <para>Performs character set conversion</para>
416 <indexterm zone="ch-system-glibc iconv">
417 <primary sortas="b-iconv">iconv</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="iconvconfig">
423 <term><command>iconvconfig</command></term>
424 <listitem>
425 <para>Creates fastloading <command>iconv</command> module configuration
426 files</para>
427 <indexterm zone="ch-system-glibc iconvconfig">
428 <primary sortas="b-iconvconfig">iconvconfig</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="ldconfig">
434 <term><command>ldconfig</command></term>
435 <listitem>
436 <para>Configures the dynamic linker runtime bindings</para>
437 <indexterm zone="ch-system-glibc ldconfig">
438 <primary sortas="b-ldconfig">ldconfig</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="ldd">
444 <term><command>ldd</command></term>
445 <listitem>
446 <para>Reports which shared libraries are required
447 by each given program or shared library</para>
448 <indexterm zone="ch-system-glibc ldd">
449 <primary sortas="b-ldd">ldd</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="lddlibc4">
455 <term><command>lddlibc4</command></term>
456 <listitem>
457 <para>Assists <command>ldd</command> with object files</para>
458 <indexterm zone="ch-system-glibc lddlibc4">
459 <primary sortas="b-lddlibc4">lddlibc4</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="locale">
465 <term><command>locale</command></term>
466 <listitem>
467 <para>Prints various information about the current locale</para>
468 <indexterm zone="ch-system-glibc locale">
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>
478 <indexterm zone="ch-system-glibc localedef">
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 displays a summary
488 in human-readable format</para>
489 <indexterm zone="ch-system-glibc mtrace">
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>
500 <indexterm zone="ch-system-glibc nscd">
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>
510 <indexterm zone="ch-system-glibc pcprofiledump">
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>
521 <indexterm zone="ch-system-glibc pt_chown">
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>
532 <indexterm zone="ch-system-glibc rpcgen">
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>
542 <indexterm zone="ch-system-glibc rpcinfo">
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>
551 <para>A statically linked <command>ln</command> program</para>
552 <indexterm zone="ch-system-glibc sln">
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>
562 <indexterm zone="ch-system-glibc sprof">
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 system and reports
572 the corresponding time zone description</para>
573 <indexterm zone="ch-system-glibc tzselect">
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 printing the currently
583 executed function</para>
584 <indexterm zone="ch-system-glibc xtrace">
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>
594 <indexterm zone="ch-system-glibc zdump">
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>
604 <indexterm zone="ch-system-glibc zic">
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>
614 <indexterm zone="ch-system-glibc ld.so">
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 internally by Glibc as a gross hack to get broken programs
624 (e.g., some Motif applications) running. See comments in
625 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
626 for more information</para>
627 <indexterm zone="ch-system-glibc libBrokenLocale">
628 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
629 </indexterm>
630 </listitem>
631 </varlistentry>
632
633 <varlistentry id="libSegFault">
634 <term><filename class="libraryfile">libSegFault</filename></term>
635 <listitem>
636 <para>The segmentation fault signal handler, used by
637 <command>catchsegv</command></para>
638 <indexterm zone="ch-system-glibc libSegFault">
639 <primary sortas="c-libSegFault">libSegFault</primary>
640 </indexterm>
641 </listitem>
642 </varlistentry>
643
644 <varlistentry id="libanl">
645 <term><filename class="libraryfile">libanl</filename></term>
646 <listitem>
647 <para>An asynchronous name lookup library</para>
648 <indexterm zone="ch-system-glibc libanl">
649 <primary sortas="c-libanl">libanl</primary>
650 </indexterm>
651 </listitem>
652 </varlistentry>
653
654 <varlistentry id="libbsd-compat">
655 <term><filename class="libraryfile">libbsd-compat</filename></term>
656 <listitem>
657 <para>Provides the portability needed in order to run certain
658 Berkeley Software Distribution (BSD) programs under Linux</para>
659 <indexterm zone="ch-system-glibc libbsd-compat">
660 <primary sortas="c-libbsd-compat">libbsd-compat</primary>
661 </indexterm>
662 </listitem>
663 </varlistentry>
664
665 <varlistentry id="libc">
666 <term><filename class="libraryfile">libc</filename></term>
667 <listitem>
668 <para>The main C library</para>
669 <indexterm zone="ch-system-glibc libc">
670 <primary sortas="c-libc">libc</primary>
671 </indexterm>
672 </listitem>
673 </varlistentry>
674
675 <varlistentry id="libcidn">
676 <term><filename class="libraryfile">libcidn</filename></term>
677 <listitem>
678 <para>Used internally by Glibc for handling internationalized domain
679 names in the <function>getaddrinfo()</function> function</para>
680 <indexterm zone="ch-system-glibc libcrypt">
681 <primary sortas="c-libcrypt">libcrypt</primary>
682 </indexterm>
683 </listitem>
684 </varlistentry>
685
686 <varlistentry id="libcrypt">
687 <term><filename class="libraryfile">libcrypt</filename></term>
688 <listitem>
689 <para>The cryptography library</para>
690 <indexterm zone="ch-system-glibc libcrypt">
691 <primary sortas="c-libcrypt">libcrypt</primary>
692 </indexterm>
693 </listitem>
694 </varlistentry>
695
696 <varlistentry id="libdl">
697 <term><filename class="libraryfile">libdl</filename></term>
698 <listitem>
699 <para>The dynamic linking interface library</para>
700 <indexterm zone="ch-system-glibc libdl">
701 <primary sortas="c-libdl">libdl</primary>
702 </indexterm>
703 </listitem>
704 </varlistentry>
705
706 <varlistentry id="libg">
707 <term><filename class="libraryfile">libg</filename></term>
708 <listitem>
709 <para>Dummy library containing no functions. Previously was a runtime
710 library for <command>g++</command></para>
711 <indexterm zone="ch-system-glibc libg">
712 <primary sortas="c-libg">libg</primary>
713 </indexterm>
714 </listitem>
715 </varlistentry>
716
717 <varlistentry id="libieee">
718 <term><filename class="libraryfile">libieee</filename></term>
719 <listitem>
720 <para>Linking in this module forces error handling rules for math
721 functions as defined by the Institute of Electrical and Electronic
722 Engineers (IEEE). The default is POSIX.1 error handling</para>
723 <indexterm zone="ch-system-glibc libieee">
724 <primary sortas="c-libieee">libieee</primary>
725 </indexterm>
726 </listitem>
727 </varlistentry>
728
729 <varlistentry id="libm">
730 <term><filename class="libraryfile">libm</filename></term>
731 <listitem>
732 <para>The mathematical library</para>
733 <indexterm zone="ch-system-glibc libm">
734 <primary sortas="c-libm">libm</primary>
735 </indexterm>
736 </listitem>
737 </varlistentry>
738
739 <varlistentry id="libmcheck">
740 <term><filename class="libraryfile">libmcheck</filename></term>
741 <listitem>
742 <para>Turns on memory allocation checking when linked to</para>
743 <indexterm zone="ch-system-glibc libmcheck">
744 <primary sortas="c-libmcheck">libmcheck</primary>
745 </indexterm>
746 </listitem>
747 </varlistentry>
748
749 <varlistentry id="libmemusage">
750 <term><filename class="libraryfile">libmemusage</filename></term>
751 <listitem>
752 <para>Used by <command>memusage</command> to help collect
753 information about the memory usage of a program</para>
754 <indexterm zone="ch-system-glibc libmemusage">
755 <primary sortas="c-libmemusage">libmemusage</primary>
756 </indexterm>
757 </listitem>
758 </varlistentry>
759
760 <varlistentry id="libnsl">
761 <term><filename class="libraryfile">libnsl</filename></term>
762 <listitem>
763 <para>The network services library</para>
764 <indexterm zone="ch-system-glibc libnsl">
765 <primary sortas="c-libnsl">libnsl</primary>
766 </indexterm>
767 </listitem>
768 </varlistentry>
769
770 <varlistentry id="libnss">
771 <term><filename class="libraryfile">libnss</filename></term>
772 <listitem>
773 <para>The Name Service Switch libraries, containing functions for
774 resolving host names, user names, group names, aliases, services,
775 protocols, etc.</para>
776 <indexterm zone="ch-system-glibc libnss">
777 <primary sortas="c-libnss">libnss</primary>
778 </indexterm>
779 </listitem>
780 </varlistentry>
781
782 <varlistentry id="libpcprofile">
783 <term><filename class="libraryfile">libpcprofile</filename></term>
784 <listitem>
785 <para>Contains profiling functions used to track the amount of CPU
786 time spent in specific source code lines</para>
787 <indexterm zone="ch-system-glibc libpcprofile">
788 <primary sortas="c-libpcprofile">libpcprofile</primary>
789 </indexterm>
790 </listitem>
791 </varlistentry>
792
793 <varlistentry id="libpthread">
794 <term><filename class="libraryfile">libpthread</filename></term>
795 <listitem>
796 <para>The POSIX threads library</para>
797 <indexterm zone="ch-system-glibc libpthread">
798 <primary sortas="c-libpthread">libpthread</primary>
799 </indexterm>
800 </listitem>
801 </varlistentry>
802
803 <varlistentry id="libresolv">
804 <term><filename class="libraryfile">libresolv</filename></term>
805 <listitem>
806 <para>Contains functions for creating, sending, and interpreting
807 packets to the Internet domain name servers</para>
808 <indexterm zone="ch-system-glibc libresolv">
809 <primary sortas="c-libresolv">libresolv</primary>
810 </indexterm>
811 </listitem>
812 </varlistentry>
813
814 <varlistentry id="librpcsvc">
815 <term><filename class="libraryfile">librpcsvc</filename></term>
816 <listitem>
817 <para>Contains functions providing miscellaneous RPC services</para>
818 <indexterm zone="ch-system-glibc librpcsvc">
819 <primary sortas="c-librpcsvc">librpcsvc</primary>
820 </indexterm>
821 </listitem>
822 </varlistentry>
823
824 <varlistentry id="librt">
825 <term><filename class="libraryfile">librt</filename></term>
826 <listitem>
827 <para>Contains functions providing most of the interfaces specified
828 by the POSIX.1b Realtime Extension</para>
829 <indexterm zone="ch-system-glibc librt">
830 <primary sortas="c-librt">librt</primary>
831 </indexterm>
832 </listitem>
833 </varlistentry>
834
835 <varlistentry id="libthread_db">
836 <term><filename class="libraryfile">libthread_db</filename></term>
837 <listitem>
838 <para>Contains functions useful for building debuggers for
839 multi-threaded programs</para>
840 <indexterm zone="ch-system-glibc libthread_db">
841 <primary sortas="c-libthread_db">libthread_db</primary>
842 </indexterm>
843 </listitem>
844 </varlistentry>
845
846 <varlistentry id="libutil">
847 <term><filename class="libraryfile">libutil</filename></term>
848 <listitem>
849 <para>Contains code for <quote>standard</quote> functions used in
850 many different Unix utilities</para>
851 <indexterm zone="ch-system-glibc libutil">
852 <primary sortas="c-libutil">libutil</primary>
853 </indexterm>
854 </listitem>
855 </varlistentry>
856
857 </variablelist>
858
859 </sect2>
860
861</sect1>
Note: See TracBrowser for help on using the repository browser.