source: BOOK/final-system/common/glibc.xml@ cfe7ec9

clfs-3.0.0-sysvinit sysvinit
Last change on this file since cfe7ec9 was 2546e2d, checked in by Chris Staub <chris@…>, 11 years ago

Added entity for minimum kernel version

  • Property mode set to 100644
File size: 34.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[cbbd1e4]8<sect1 id="ch-system-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
[3f8be484]10
[d785e9d]11 <title>Glibc-&glibc-version;</title>
[3f8be484]12
[cbbd1e4]13 <indexterm zone="ch-system-glibc">
[d785e9d]14 <primary sortas="a-Glibc">Glibc</primary>
[3f8be484]15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
[d785e9d]20 <para>The Glibc package contains the main C library. This library provides
[3f8be484]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 </sect2>
26
27 <sect2 role="installation">
[d785e9d]28 <title>Installation of Glibc</title>
[3f8be484]29
30 <note os="z">
[a1fb12f]31 <para>Some packages outside of CLFS suggest installing GNU libiconv in
[3f8be484]32 order to translate data from one encoding to another. The project's
33 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
34 <quote>This library provides an <function>iconv()</function>
35 implementation, for use on systems which don't have one, or whose
[d785e9d]36 implementation cannot convert from/to Unicode.</quote> Glibc provides
[3f8be484]37 an <function>iconv()</function> implementation and can convert from/to
[a1fb12f]38 Unicode, therefore libiconv is not required on a CLFS system.</para>
[3f8be484]39 </note>
40
[22cd957]41 <para os="l1">At the end of the installation, the build system will run
42 a sanity test to make sure everything installed properly. This script will
43 attempt to test for a library that is only used in the test suite and is
44 never installed. Prevent the script from testing for this library with the
45 following command:</para>
[d8f87e8]46
[22cd957]47<screen os="l2"><userinput>sed -i 's/\(&amp;&amp; $name ne\) "db1"/ &amp; \1 "nss_test1"/' scripts/test-installation.pl</userinput></screen>
48
49 <para os="l3">This same script performs its tests by attempting to compile
50 test programs against certain libraries. However it does not specify the
51 ld.so, and our toolchain is still configured to use the one in /tools. The
52 following set of commands will force the script to use the complete path
53 of the new ld.so that was just installed:</para>
54
55<screen os="l4"><userinput>LINKER=$(readelf -l /tools/bin/bash | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
[d8f87e8]56sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
57 scripts/test-installation.pl
58unset LINKER</userinput></screen>
59
[d785e9d]60 <para os="b">The Glibc build system is self-contained and will install
[3f8be484]61 perfectly, even though the compiler specs file and linker are still
62 pointing at <filename class="directory">/tools</filename>. The specs
[d785e9d]63 and linker cannot be adjusted before the Glibc install because the
64 Glibc Autoconf tests would give false results and defeat the goal
[3f8be484]65 of achieving a clean build.</para>
66
[bfd8749]67 <para os="s1">Apply the following sed so the <command>tzselect</command> script works properly:</para>
[00a58649]68
[bfd8749]69<screen os="s2"><userinput>sed -i 's/\\$$(pwd)/`pwd`/' timezone/Makefile</userinput></screen>
[00a58649]70
[d785e9d]71 <para os="e">The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para>
[3f8be484]72
[cbbd1e4]73<screen os="f"><userinput>mkdir -v ../glibc-build
74cd ../glibc-build</userinput></screen>
[3f8be484]75
[d785e9d]76 <para os="g">Prepare Glibc for compilation:</para>
[3f8be484]77
[cbbd1e4]78<screen os="h"><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
[2546e2d]79 --disable-profile --enable-kernel=&glibc-kernel-version; --libexecdir=/usr/lib/glibc \
[52ed4da]80 --enable-obsolete-rpc</userinput></screen>
[3f8be484]81
82 <variablelist os="i">
83 <title>The meaning of the new configure option:</title>
84
85 <varlistentry>
[cbbd1e4]86 <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
[3f8be484]87 <listitem>
[b5bd3744]88 <para>This changes the location of the <command>getconf</command>
89 utility from its default of <filename
[3f8be484]90 class="directory">/usr/libexec</filename> to <filename
[cbbd1e4]91 class="directory">/usr/lib/glibc</filename>.</para>
[3f8be484]92 </listitem>
93 </varlistentry>
94 </variablelist>
95
96 <para os="j">Compile the package:</para>
97
98<screen os="k"><userinput>make</userinput></screen>
99
100 <important os="l">
[d785e9d]101 <para>The test suite for Glibc is considered critical.
[3f8be484]102 Do not skip it under any circumstance.</para>
103 </important>
104
[33346dd]105 <para os="m">Use the following commands to run the test suite and output
[37957f4]106 any test failures:</para>
[3f8be484]107
108<!-- items n,o,p no longer the master, use x86_64 which has no failures -->
109
[37957f4]110<screen os="n"><userinput remap="test">make -k check 2&gt;&amp;1 | tee glibc-check-log; grep Error glibc-check-log</userinput></screen>
[3f8be484]111
[d785e9d]112 <para os="o">The Glibc test suite is highly dependent on certain functions of
[767a2a5]113 the host system, in particular the kernel. The <emphasis>posix/annexc</emphasis> and
114 <emphasis>conform/run-conformtest</emphasis> tests normally fail
[10b2850]115 and you should see <literal>Error 1 (ignored)</literal> in the output. Apart
[d785e9d]116 from this, the Glibc test suite is always expected to pass. However, in certain
[10b2850]117 circumstances, some failures are unavoidable. If a test fails because of a missing
118 program (or missing symbolic link), or a segfault, you will see an error code
119 greater than 127 and the details will be in the log. More commonly, tests will
120 fail with <literal>Error 2</literal> - for these, the contents of the corresponding
121 <filename>.out</filename> file, e.g. <filename>posix/annexc.out</filename> may be
122 informative. Here is a list of the most common issues:</para>
[3f8be484]123
124 <itemizedlist os="p">
[767a2a5]125 <listitem>
126 <para>The <emphasis>nptl/tst-clock2</emphasis>,
127 <emphasis>nptl/tst-attr3</emphasis>,
128 <emphasis>tst/tst-cputimer1</emphasis>, and
129 <emphasis>rt/tst-cpuclock2</emphasis>
130 tests have been known to fail. The
131 reason is not completely understood, but indications are that minor
132 timing issues can trigger these failures.</para>
133 </listitem>
[3f8be484]134 <listitem>
[3514708]135 <para>The <emphasis>math</emphasis> tests sometimes fail.
136 Certain optimization settings are known to be a
137 factor here.</para>
[3f8be484]138 </listitem>
139 <listitem>
[fb40919]140 <para>If you have mounted the CLFS partition with the
[3f8be484]141 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test
142 will fail. As mentioned in <xref linkend="ch-partitioning-mounting"/>,
143 do not use the <parameter>noatime</parameter> option while building
[fb40919]144 CLFS.</para>
[3f8be484]145 </listitem>
146 <listitem>
147 <para>When running on older and slower hardware, some tests
[767a2a5]148 can fail because of test timeouts being exceeded.
149 Modifying the make check command to set a TIMEOUTFACTOR is reported to
150 help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16
151 make -k check</command>).</para>
152 </listitem>
153 <listitem>
154 <para>posix/tst-getaddrinfo4 will always fail due to not having a network
155 connection when the test is run.</para>
[3f8be484]156 </listitem>
157 </itemizedlist>
158
[d785e9d]159 <para os="q">Though it is a harmless message, the install stage of Glibc will
[3f8be484]160 complain about the absence of <filename>/etc/ld.so.conf</filename>.
161 Prevent this warning with:</para>
162
163<screen os="r"><userinput>touch /etc/ld.so.conf</userinput></screen>
164
[e57ce38]165 <para os="s">Install the package, and remove unneeded files from
166 <filename class="directory">/usr/include/rpcsvc</filename>:</para>
[3f8be484]167
[e57ce38]168<screen os="t"><userinput>make install &amp;&amp;
169rm -v /usr/include/rpcsvc/*.x</userinput></screen>
[3f8be484]170
[cf9aa7e]171 <para os="u">Install the configuration file and runtime directory for
[dff9ef7]172 <command>nscd</command>:</para>
[cf9aa7e]173
174<screen os="v"><userinput>cp -v ../glibc-2.19/nscd/nscd.conf /etc/nscd.conf
175mkdir -pv /var/cache/nscd</userinput></screen>
176
[3f8be484]177 </sect2>
178
[cbbd1e4]179 <sect2 id="i18n-glibc" role="configuration">
[3f8be484]180 <title>Internationalization</title>
181
182 <para>The locales that can make the system respond in a different
[5a321cb]183 language were not installed by the above command. Install them
[3f8be484]184 with:</para>
185
186<screen><userinput>make localedata/install-locales</userinput></screen>
187
188 <para>To save time, an alternative to running the previous command (which
[643f8be]189 generates and installs every locale listed in the
[cbbd1e4]190 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file) is
[e7aadbe]191 to install only those locales that are wanted and needed. This can be
192 achieved by using the <command>localedef</command> command. Information on
193 this command is located in the <filename>INSTALL</filename> file in the
[d785e9d]194 Glibc source. However, there are a number of locales that are essential in
[e7aadbe]195 order for the tests of future packages to pass, in particular, the
[3f8be484]196 <emphasis>libstdc++</emphasis> tests from GCC. The following instructions,
197 instead of the <parameter>install-locales</parameter> target used above,
198 will install the minimum set of locales necessary for the tests to run
199 successfully:</para>
200
[3a3e135]201<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
[8a10f1c]202localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
[3f8be484]203localedef -i de_DE -f ISO-8859-1 de_DE
204localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
205localedef -i en_HK -f ISO-8859-1 en_HK
206localedef -i en_PH -f ISO-8859-1 en_PH
207localedef -i en_US -f ISO-8859-1 en_US
208localedef -i es_MX -f ISO-8859-1 es_MX
209localedef -i fa_IR -f UTF-8 fa_IR
210localedef -i fr_FR -f ISO-8859-1 fr_FR
211localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
212localedef -i it_IT -f ISO-8859-1 it_IT
213localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
214
215 <para>Some locales installed by the <command>make
216 localedata/install-locales</command> command above are not properly
[e3a8717]217 supported by some applications that are in CLFS and CBLFS. Because
[3f8be484]218 of the various problems that arise due to application programmers making
[fb40919]219 assumptions that break in such locales, CLFS should not be used in locales
[3f8be484]220 that utilize multibyte character sets (including UTF-8) or right-to-left
221 writing order. Numerous unofficial and unstable patches are required to
[fb40919]222 fix these problems, and it has been decided by the CLFS developers not to
[643f8be]223 support such complex locales at this time. This applies to the ja_JP and
224 fa_IR locales as well&mdash;they have been installed only for GCC and
225 Gettext tests to pass, and the <command>watch</command> program (part of
[8184788]226 the Procps-ng package) does not work properly in them. Various attempts to
[643f8be]227 circumvent these restrictions are documented in internationalization-related
228 hints.</para>
[3f8be484]229
230 </sect2>
231
[cbbd1e4]232 <sect2 id="conf-glibc" role="configuration">
[d785e9d]233 <title>Configuring Glibc</title>
[3f8be484]234
[cbbd1e4]235 <indexterm zone="conf-glibc">
[3f8be484]236 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
237 </indexterm>
238
[cbbd1e4]239 <indexterm zone="conf-glibc">
[3f8be484]240 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
241 </indexterm>
242
243 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
[d785e9d]244 because, although Glibc provides defaults when this file is missing or
245 corrupt, the Glibc defaults do not work well in a networked environment.
[3f8be484]246 The time zone also needs to be configured.</para>
247
248 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running
249 the following:</para>
250
251<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
252<literal># Begin /etc/nsswitch.conf
253
254passwd: files
255group: files
256shadow: files
257
258hosts: files dns
259networks: files
260
261protocols: files
262services: files
263ethers: files
264rpc: files
265
266# End /etc/nsswitch.conf</literal>
267EOF</userinput></screen>
268
[52ed4da]269 <para>Install timezone data:</para>
270<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
271
272ZONEINFO=/usr/share/zoneinfo
273mkdir -pv $ZONEINFO/{posix,right}
274
275for tz in etcetera southamerica northamerica europe africa antarctica \
[6e778c3]276 asia australasia backward pacificnew \
[52ed4da]277 systemv; do
278 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
279 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
280 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
281done
282
283cp -v zone.tab iso3166.tab $ZONEINFO
284zic -d $ZONEINFO -p America/New_York
285unset ZONEINFO</userinput></screen>
286
287 <variablelist>
288 <title>The meaning of the zic commands:</title>
289
290 <varlistentry>
291 <term><parameter>zic -L /dev/null ...</parameter></term>
292 <listitem>
293 <para>This creates posix timezones, without any leap seconds. It is
294 conventional to put these in both
295 <filename class="directory">zoneinfo</filename> and
296 <filename class="directory">zoneinfo/posix</filename>. It is
297 necessary to put the POSIX timezones in
298 <filename class="directory">zoneinfo</filename>, otherwise various
299 test-suites will report errors. On an embedded system, where space is
300 tight and you do not intend to ever update the timezones, you could save
301 1.9MB by not using the <filename class="directory">posix</filename>
302 directory, but some applications or test-suites might give less good
303 results</para>
304 </listitem>
305 </varlistentry>
306 <varlistentry>
307 <term><parameter>zic -L leapseconds ...</parameter></term>
308 <listitem>
309 <para>This creates right timezones, including leap seconds. On an
310 embedded system, where space is tight and you do not intend to
311 ever update the timezones, or care about the correct time, you could
312 save 1.9MB by omitting the <filename class="directory">right</filename>
313 directory.</para>
314 </listitem>
315 </varlistentry>
316 <varlistentry>
317 <term><parameter>zic ... -p ...</parameter></term>
318 <listitem>
319 <para>This creates the <filename>posixrules</filename> file. We use
320 New York because POSIX requires the daylight savings time rules
321 to be in accordance with US rules.</para>
322 </listitem>
323 </varlistentry>
324 </variablelist>
325
[3f8be484]326 <para>To determine the local time zone, run the following script:</para>
327
[0f3854e]328<screen role="nodump"><userinput>tzselect</userinput></screen>
[3f8be484]329
330 <para>After answering a few questions about the location, the script will
331 output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
332 <emphasis>Canada/Eastern</emphasis>). Then create the
333 <filename>/etc/localtime</filename> file by running:</para>
334
[63cad62f]335<screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
[3f8be484]336 /etc/localtime</userinput></screen>
337
338 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
339 that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
340
341 </sect2>
342
343 <sect2 id="conf-ld" role="configuration">
[0b637f1]344 <title>Configuring The Dynamic Loader</title>
[3f8be484]345
346 <indexterm zone="conf-ld">
347 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
348 </indexterm>
349
[3998188]350 <para os="ld-a">By default, the dynamic loader (<filename
[3f8be484]351 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
352 <filename class="directory">/lib</filename> and <filename
353 class="directory">/usr/lib</filename> for dynamic libraries that are
354 needed by programs as they are run. However, if there are libraries in
355 directories other than <filename class="directory">/lib</filename> and
356 <filename class="directory">/usr/lib</filename>, these need to be
357 added to the <filename>/etc/ld.so.conf</filename> file in order
358 for the dynamic loader to find them. Two directories that are commonly
359 known to contain additional libraries are <filename
360 class="directory">/usr/local/lib</filename> and <filename
361 class="directory">/opt/lib</filename>, so add those directories to the
362 dynamic loader's search path.</para>
363
[3998188]364 <para os="ld-b">Create a new file <filename>/etc/ld.so.conf</filename> by running the
[3f8be484]365 following:</para>
366
[3998188]367<screen os="ld-c"><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[3f8be484]368<literal># Begin /etc/ld.so.conf
369
370/usr/local/lib
371/opt/lib
372
373# End /etc/ld.so.conf</literal>
374EOF</userinput></screen>
375
376 </sect2>
377
[cbbd1e4]378 <sect2 id="contents-glibc" role="content">
[d785e9d]379 <title>Contents of Glibc</title>
[3f8be484]380
381 <segmentedlist>
382 <segtitle>Installed programs</segtitle>
383 <segtitle>Installed libraries</segtitle>
[61ad0b7f]384 <segtitle>Installed directories</segtitle>
[3f8be484]385
386 <seglistitem>
387 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[2b220db9]388 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
[6d3523f]389 pcprofiledump, pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
390 zdump, and zic</seg>
[3f8be484]391 <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
[aeb5c611]392 libc.[a,so], libc_nonshared.a, libcidn.[a,so], libcrypt.[a,so],
393 libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
394 libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so,
[188b6b2]395 libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so,
396 libpcprofile.so, libpthread.[a,so], libpthread_nonshared.a,
[3f8be484]397 libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and
398 libutil.[a,so]</seg>
[61ad0b7f]399 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
400 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
401 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
402 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
403 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
404 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
[6d3523f]405 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/glibc, /usr/lib/locale,
[cf9aa7e]406 /usr/share/i18n, /usr/share/zoneinfo, /var/cache/ldconfig, and
407 /var/cache/nscd</seg>
[3f8be484]408 </seglistitem>
409 </segmentedlist>
410
411 <variablelist>
412 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
413 <?dbfo list-presentation="list"?>
414 <?dbhtml list-presentation="table"?>
415
416 <varlistentry id="catchsegv">
417 <term><command>catchsegv</command></term>
418 <listitem>
419 <para>Can be used to create a stack trace when a program
420 terminates with a segmentation fault</para>
[cbbd1e4]421 <indexterm zone="ch-system-glibc catchsegv">
[3f8be484]422 <primary sortas="b-catchsegv">catchsegv</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="gencat">
428 <term><command>gencat</command></term>
429 <listitem>
430 <para>Generates message catalogues</para>
[cbbd1e4]431 <indexterm zone="ch-system-glibc gencat">
[3f8be484]432 <primary sortas="b-gencat">gencat</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="getconf">
438 <term><command>getconf</command></term>
439 <listitem>
440 <para>Displays the system configuration values for file system specific
441 variables</para>
[cbbd1e4]442 <indexterm zone="ch-system-glibc getconf">
[3f8be484]443 <primary sortas="b-getconf">getconf</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="getent">
449 <term><command>getent</command></term>
450 <listitem>
451 <para>Gets entries from an administrative database</para>
[cbbd1e4]452 <indexterm zone="ch-system-glibc getent">
[3f8be484]453 <primary sortas="b-getent">getent</primary>
454 </indexterm>
455 </listitem>
456 </varlistentry>
457
458 <varlistentry id="iconv">
459 <term><command>iconv</command></term>
460 <listitem>
461 <para>Performs character set conversion</para>
[cbbd1e4]462 <indexterm zone="ch-system-glibc iconv">
[3f8be484]463 <primary sortas="b-iconv">iconv</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 <varlistentry id="iconvconfig">
469 <term><command>iconvconfig</command></term>
470 <listitem>
471 <para>Creates fastloading <command>iconv</command> module configuration
472 files</para>
[cbbd1e4]473 <indexterm zone="ch-system-glibc iconvconfig">
[3f8be484]474 <primary sortas="b-iconvconfig">iconvconfig</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="ldconfig">
480 <term><command>ldconfig</command></term>
481 <listitem>
482 <para>Configures the dynamic linker runtime bindings</para>
[cbbd1e4]483 <indexterm zone="ch-system-glibc ldconfig">
[3f8be484]484 <primary sortas="b-ldconfig">ldconfig</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="ldd">
490 <term><command>ldd</command></term>
491 <listitem>
492 <para>Reports which shared libraries are required
493 by each given program or shared library</para>
[cbbd1e4]494 <indexterm zone="ch-system-glibc ldd">
[3f8be484]495 <primary sortas="b-ldd">ldd</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
500 <varlistentry id="lddlibc4">
501 <term><command>lddlibc4</command></term>
502 <listitem>
503 <para>Assists <command>ldd</command> with object files</para>
[cbbd1e4]504 <indexterm zone="ch-system-glibc lddlibc4">
[3f8be484]505 <primary sortas="b-lddlibc4">lddlibc4</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="locale">
511 <term><command>locale</command></term>
512 <listitem>
513 <para>Tells the compiler to enable or disable the use of POSIX locales
514 for built-in operations</para>
[cbbd1e4]515 <indexterm zone="ch-system-glibc locale">
[3f8be484]516 <primary sortas="b-locale">locale</primary>
517 </indexterm>
518 </listitem>
519 </varlistentry>
520
521 <varlistentry id="localedef">
522 <term><command>localedef</command></term>
523 <listitem>
524 <para>Compiles locale specifications</para>
[cbbd1e4]525 <indexterm zone="ch-system-glibc localedef">
[3f8be484]526 <primary sortas="b-localedef">localedef</primary>
527 </indexterm>
528 </listitem>
529 </varlistentry>
530
[2b220db9]531 <varlistentry id="makedb">
532 <term><command>makedb</command></term>
533 <listitem>
534 <para>Creates a simple database from textual input</para>
[cbbd1e4]535 <indexterm zone="ch-system-glibc makedb">
[2b220db9]536 <primary sortas="b-makedb">makedb</primary>
537 </indexterm>
538 </listitem>
539 </varlistentry>
540
[3f8be484]541 <varlistentry id="mtrace">
542 <term><command>mtrace</command></term>
543 <listitem>
544 <para>Reads and interprets a memory trace file and
545 displays a summary in human-readable format</para>
[cbbd1e4]546 <indexterm zone="ch-system-glibc mtrace">
[3f8be484]547 <primary sortas="b-mtrace">mtrace</primary>
548 </indexterm>
549 </listitem>
550 </varlistentry>
551
552 <varlistentry id="nscd">
553 <term><command>nscd</command></term>
554 <listitem>
555 <para>A daemon that provides a cache for the most common name
556 service requests</para>
[cbbd1e4]557 <indexterm zone="ch-system-glibc nscd">
[3f8be484]558 <primary sortas="b-nscd">nscd</primary>
559 </indexterm>
560 </listitem>
561 </varlistentry>
562
563 <varlistentry id="pcprofiledump">
564 <term><command>pcprofiledump</command></term>
565 <listitem>
566 <para>Dumps information generated by PC profiling</para>
[cbbd1e4]567 <indexterm zone="ch-system-glibc pcprofiledump">
[3f8be484]568 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
569 </indexterm>
570 </listitem>
571 </varlistentry>
572
[2b220db9]573 <varlistentry id="pldd">
574 <term><command>pldd</command></term>
575 <listitem>
576 <para>Lists dynamic shared objects used by running processes</para>
[cbbd1e4]577 <indexterm zone="ch-system-glibc pldd">
[2b220db9]578 <primary sortas="b-pldd">pldd</primary>
579 </indexterm>
580 </listitem>
581 </varlistentry>
582
[3f8be484]583 <varlistentry id="rpcgen">
584 <term><command>rpcgen</command></term>
585 <listitem>
586 <para>Generates C code to implement the Remote Procecure Call (RPC)
587 protocol</para>
[cbbd1e4]588 <indexterm zone="ch-system-glibc rpcgen">
[3f8be484]589 <primary sortas="b-rpcgen">rpcgen</primary>
590 </indexterm>
591 </listitem>
592 </varlistentry>
593
594 <varlistentry id="sln">
595 <term><command>sln</command></term>
596 <listitem>
[7087cbc]597 <para>A statically linked program that creates symbolic links</para>
[cbbd1e4]598 <indexterm zone="ch-system-glibc sln">
[3f8be484]599 <primary sortas="b-sln">sln</primary>
600 </indexterm>
601 </listitem>
602 </varlistentry>
603
[2b220db9]604 <varlistentry id="sotruss">
605 <term><command>sotruss</command></term>
606 <listitem>
607 <para>Traces shared library procedure calls of a specified command</para>
[cbbd1e4]608 <indexterm zone="ch-system-glibc sotruss">
[2b220db9]609 <primary sortas="b-sotruss">sotruss</primary>
610 </indexterm>
611 </listitem>
612 </varlistentry>
613
[3f8be484]614 <varlistentry id="sprof">
615 <term><command>sprof</command></term>
616 <listitem>
617 <para>Reads and displays shared object profiling data</para>
[cbbd1e4]618 <indexterm zone="ch-system-glibc sprof">
[3f8be484]619 <primary sortas="b-sprof">sprof</primary>
620 </indexterm>
621 </listitem>
622 </varlistentry>
623
624 <varlistentry id="tzselect">
625 <term><command>tzselect</command></term>
626 <listitem>
627 <para>Asks the user about the location of the
628 system and reports the corresponding time zone description</para>
[cbbd1e4]629 <indexterm zone="ch-system-glibc tzselect">
[3f8be484]630 <primary sortas="b-tzselect">tzselect</primary>
631 </indexterm>
632 </listitem>
633 </varlistentry>
634
635 <varlistentry id="xtrace">
636 <term><command>xtrace</command></term>
637 <listitem>
638 <para>Traces the execution of a program by
639 printing the currently executed function</para>
[cbbd1e4]640 <indexterm zone="ch-system-glibc xtrace">
[3f8be484]641 <primary sortas="b-xtrace">xtrace</primary>
642 </indexterm>
643 </listitem>
644 </varlistentry>
645
646 <varlistentry id="zdump">
647 <term><command>zdump</command></term>
648 <listitem>
649 <para>The time zone dumper</para>
[cbbd1e4]650 <indexterm zone="ch-system-glibc zdump">
[3f8be484]651 <primary sortas="b-zdump">zdump</primary>
652 </indexterm>
653 </listitem>
654 </varlistentry>
655
656 <varlistentry id="zic">
657 <term><command>zic</command></term>
658 <listitem>
659 <para>The time zone compiler</para>
[cbbd1e4]660 <indexterm zone="ch-system-glibc zic">
[3f8be484]661 <primary sortas="b-zic">zic</primary>
662 </indexterm>
663 </listitem>
664 </varlistentry>
665
666 <varlistentry id="ld.so">
667 <term><filename class="libraryfile">ld.so</filename></term>
668 <listitem>
669 <para>The helper program for shared library executables</para>
[cbbd1e4]670 <indexterm zone="ch-system-glibc ld.so">
[3f8be484]671 <primary sortas="c-ld.so">ld.so</primary>
672 </indexterm>
673 </listitem>
674 </varlistentry>
675
676 <varlistentry id="libBrokenLocale">
677 <term><filename class="libraryfile">libBrokenLocale</filename></term>
678 <listitem>
679 <para>Used by programs, such as Mozilla, to solve broken locales</para>
[cbbd1e4]680 <indexterm zone="ch-system-glibc libBrokenLocale">
[3f8be484]681 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
682 </indexterm>
683 </listitem>
684 </varlistentry>
685
686 <varlistentry id="libSegFault">
687 <term><filename class="libraryfile">libSegFault</filename></term>
688 <listitem>
689 <para>The segmentation fault signal handler</para>
[cbbd1e4]690 <indexterm zone="ch-system-glibc libSegFault">
[3f8be484]691 <primary sortas="c-libSegFault">libSegFault</primary>
692 </indexterm>
693 </listitem>
694 </varlistentry>
695
696 <varlistentry id="libanl">
697 <term><filename class="libraryfile">libanl</filename></term>
698 <listitem>
699 <para>An asynchronous name lookup library</para>
[cbbd1e4]700 <indexterm zone="ch-system-glibc libanl">
[3f8be484]701 <primary sortas="c-libanl">libanl</primary>
702 </indexterm>
703 </listitem>
704 </varlistentry>
705
706 <varlistentry id="libc">
707 <term><filename class="libraryfile">libc</filename></term>
708 <listitem>
709 <para>The main C library</para>
[cbbd1e4]710 <indexterm zone="ch-system-glibc libc">
[3f8be484]711 <primary sortas="c-libc">libc</primary>
712 </indexterm>
713 </listitem>
714 </varlistentry>
715
[188b6b2]716 <varlistentry id="libcidn">
717 <term><filename class="libraryfile">libcidn</filename></term>
718 <listitem>
[d785e9d]719 <para>Used internally by Glibc for handling internationalized domain
[188b6b2]720 names in the <function>getaddrinfo()</function> function</para>
[cbbd1e4]721 <indexterm zone="ch-system-glibc libcidn">
[188b6b2]722 <primary sortas="c-libcidn">libcidn</primary>
723 </indexterm>
724 </listitem>
725 </varlistentry>
726
[3f8be484]727 <varlistentry id="libcrypt">
728 <term><filename class="libraryfile">libcrypt</filename></term>
729 <listitem>
730 <para>The cryptography library</para>
[cbbd1e4]731 <indexterm zone="ch-system-glibc libcrypt">
[3f8be484]732 <primary sortas="c-libcrypt">libcrypt</primary>
733 </indexterm>
734 </listitem>
735 </varlistentry>
736
737 <varlistentry id="libdl">
738 <term><filename class="libraryfile">libdl</filename></term>
739 <listitem>
740 <para>The dynamic linking interface library</para>
[cbbd1e4]741 <indexterm zone="ch-system-glibc libdl">
[3f8be484]742 <primary sortas="c-libdl">libdl</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
747 <varlistentry id="libg">
748 <term><filename class="libraryfile">libg</filename></term>
749 <listitem>
750 <para>A runtime library for <command>g++</command></para>
[cbbd1e4]751 <indexterm zone="ch-system-glibc libg">
[3f8be484]752 <primary sortas="c-libg">libg</primary>
753 </indexterm>
754 </listitem>
755 </varlistentry>
756
757 <varlistentry id="libieee">
758 <term><filename class="libraryfile">libieee</filename></term>
759 <listitem>
760 <para>The Institute of Electrical and Electronic Engineers (IEEE)
761 floating point library</para>
[cbbd1e4]762 <indexterm zone="ch-system-glibc libieee">
[3f8be484]763 <primary sortas="c-libieee">libieee</primary>
764 </indexterm>
765 </listitem>
766 </varlistentry>
767
768 <varlistentry id="libm">
769 <term><filename class="libraryfile">libm</filename></term>
770 <listitem>
771 <para>The mathematical library</para>
[cbbd1e4]772 <indexterm zone="ch-system-glibc libm">
[3f8be484]773 <primary sortas="c-libm">libm</primary>
774 </indexterm>
775 </listitem>
776 </varlistentry>
777
778 <varlistentry id="libmcheck">
779 <term><filename class="libraryfile">libmcheck</filename></term>
780 <listitem>
781 <para>Contains code run at boot</para>
[cbbd1e4]782 <indexterm zone="ch-system-glibc libmcheck">
[3f8be484]783 <primary sortas="c-libmcheck">libmcheck</primary>
784 </indexterm>
785 </listitem>
786 </varlistentry>
787
788 <varlistentry id="libmemusage">
789 <term><filename class="libraryfile">libmemusage</filename></term>
790 <listitem>
[d785e9d]791 <para>Used by <command>memusage</command> (included in Glibc, but
[7087cbc]792 not built in a base CLFS system as it has additional dependencies)
793 to help collect information about the memory usage of a program</para>
[cbbd1e4]794 <indexterm zone="ch-system-glibc libmemusage">
[3f8be484]795 <primary sortas="c-libmemusage">libmemusage</primary>
796 </indexterm>
797 </listitem>
798 </varlistentry>
799
800 <varlistentry id="libnsl">
801 <term><filename class="libraryfile">libnsl</filename></term>
802 <listitem>
803 <para>The network services library</para>
[cbbd1e4]804 <indexterm zone="ch-system-glibc libnsl">
[3f8be484]805 <primary sortas="c-libnsl">libnsl</primary>
806 </indexterm>
807 </listitem>
808 </varlistentry>
809
810 <varlistentry id="libnss">
811 <term><filename class="libraryfile">libnss</filename></term>
812 <listitem>
813 <para>The Name Service Switch libraries, containing functions for
814 resolving host names, user names, group names, aliases, services,
815 protocols, etc.</para>
[cbbd1e4]816 <indexterm zone="ch-system-glibc libnss">
[3f8be484]817 <primary sortas="c-libnss">libnss</primary>
818 </indexterm>
819 </listitem>
820 </varlistentry>
821
822 <varlistentry id="libpcprofile">
823 <term><filename class="libraryfile">libpcprofile</filename></term>
824 <listitem>
825 <para>Contains profiling functions used to track the amount of CPU
826 time spent in specific source code lines</para>
[cbbd1e4]827 <indexterm zone="ch-system-glibc libpcprofile">
[3f8be484]828 <primary sortas="c-libpcprofile">libpcprofile</primary>
829 </indexterm>
830 </listitem>
831 </varlistentry>
832
833 <varlistentry id="libpthread">
834 <term><filename class="libraryfile">libpthread</filename></term>
835 <listitem>
836 <para>The POSIX threads library</para>
[cbbd1e4]837 <indexterm zone="ch-system-glibc libpthread">
[3f8be484]838 <primary sortas="c-libpthread">libpthread</primary>
839 </indexterm>
840 </listitem>
841 </varlistentry>
842
843 <varlistentry id="libresolv">
844 <term><filename class="libraryfile">libresolv</filename></term>
845 <listitem>
846 <para>Contains functions for creating, sending, and interpreting
847 packets to the Internet domain name servers</para>
[cbbd1e4]848 <indexterm zone="ch-system-glibc libresolv">
[3f8be484]849 <primary sortas="c-libresolv">libresolv</primary>
850 </indexterm>
851 </listitem>
852 </varlistentry>
853
854 <varlistentry id="librpcsvc">
855 <term><filename class="libraryfile">librpcsvc</filename></term>
856 <listitem>
857 <para>Contains functions providing miscellaneous RPC services</para>
[cbbd1e4]858 <indexterm zone="ch-system-glibc librpcsvc">
[3f8be484]859 <primary sortas="c-librpcsvc">librpcsvc</primary>
860 </indexterm>
861 </listitem>
862 </varlistentry>
863
864 <varlistentry id="librt">
865 <term><filename class="libraryfile">librt</filename></term>
866 <listitem>
867 <para>Contains functions providing most of the interfaces specified by
868 the POSIX.1b Realtime Extension</para>
[cbbd1e4]869 <indexterm zone="ch-system-glibc librt">
[3f8be484]870 <primary sortas="c-librt">librt</primary>
871 </indexterm>
872 </listitem>
873 </varlistentry>
874
875 <varlistentry id="libthread_db">
876 <term><filename class="libraryfile">libthread_db</filename></term>
877 <listitem>
878 <para>Contains functions useful for
879 building debuggers for multi-threaded programs</para>
[cbbd1e4]880 <indexterm zone="ch-system-glibc libthread_db">
[3f8be484]881 <primary sortas="c-libthread_db">libthread_db</primary>
882 </indexterm>
883 </listitem>
884 </varlistentry>
885
886 <varlistentry id="libutil">
887 <term><filename class="libraryfile">libutil</filename></term>
888 <listitem>
889 <para>Contains code for <quote>standard</quote> functions used in
890 many different Unix utilities</para>
[cbbd1e4]891 <indexterm zone="ch-system-glibc libutil">
[3f8be484]892 <primary sortas="c-libutil">libutil</primary>
893 </indexterm>
894 </listitem>
895 </varlistentry>
896
897 </variablelist>
898
899 </sect2>
900
901</sect1>
Note: See TracBrowser for help on using the repository browser.