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

sysvinit
Last change on this file since 16ed0af was e67e858, checked in by William Harrington <kb0iic@…>, 9 years ago

Use make check for Glibc. The check already creates a log and outputs any failures at the end of the check.

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