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

clfs-3.0.0-systemd systemd
Last change on this file since 60552c1 was 1b48cb6, checked in by Chris Staub <chris@…>, 11 years ago

More consistently use 'test suite' rather than 'testsuite'

  • Property mode set to 100644
File size: 35.0 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 \
79 --disable-profile --enable-kernel=2.6.32 --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
[1b48cb6]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
[0131d1b]177 <para os="w">Install the systemd support files for <command>nscd</command>:</para>
[cf9aa7e]178
179<screen os="x"><userinput>install -v -Dm644 ../glibc-2.19/nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
[0f3ee5b]180install -v -Dm644 ../glibc-2.19/nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen>
[cf9aa7e]181
[3f8be484]182 </sect2>
183
[cbbd1e4]184 <sect2 id="i18n-glibc" role="configuration">
[3f8be484]185 <title>Internationalization</title>
186
187 <para>The locales that can make the system respond in a different
[5a321cb]188 language were not installed by the above command. Install them
[3f8be484]189 with:</para>
190
191<screen><userinput>make localedata/install-locales</userinput></screen>
192
193 <para>To save time, an alternative to running the previous command (which
[643f8be]194 generates and installs every locale listed in the
[cbbd1e4]195 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file) is
[e7aadbe]196 to install only those locales that are wanted and needed. This can be
197 achieved by using the <command>localedef</command> command. Information on
198 this command is located in the <filename>INSTALL</filename> file in the
[d785e9d]199 Glibc source. However, there are a number of locales that are essential in
[e7aadbe]200 order for the tests of future packages to pass, in particular, the
[3f8be484]201 <emphasis>libstdc++</emphasis> tests from GCC. The following instructions,
202 instead of the <parameter>install-locales</parameter> target used above,
203 will install the minimum set of locales necessary for the tests to run
204 successfully:</para>
205
[3a3e135]206<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
[8a10f1c]207localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
[3f8be484]208localedef -i de_DE -f ISO-8859-1 de_DE
209localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
210localedef -i en_HK -f ISO-8859-1 en_HK
211localedef -i en_PH -f ISO-8859-1 en_PH
212localedef -i en_US -f ISO-8859-1 en_US
213localedef -i es_MX -f ISO-8859-1 es_MX
214localedef -i fa_IR -f UTF-8 fa_IR
215localedef -i fr_FR -f ISO-8859-1 fr_FR
216localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
217localedef -i it_IT -f ISO-8859-1 it_IT
218localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
219
220 <para>Some locales installed by the <command>make
221 localedata/install-locales</command> command above are not properly
[e3a8717]222 supported by some applications that are in CLFS and CBLFS. Because
[3f8be484]223 of the various problems that arise due to application programmers making
[fb40919]224 assumptions that break in such locales, CLFS should not be used in locales
[3f8be484]225 that utilize multibyte character sets (including UTF-8) or right-to-left
226 writing order. Numerous unofficial and unstable patches are required to
[fb40919]227 fix these problems, and it has been decided by the CLFS developers not to
[643f8be]228 support such complex locales at this time. This applies to the ja_JP and
229 fa_IR locales as well&mdash;they have been installed only for GCC and
230 Gettext tests to pass, and the <command>watch</command> program (part of
[8184788]231 the Procps-ng package) does not work properly in them. Various attempts to
[643f8be]232 circumvent these restrictions are documented in internationalization-related
233 hints.</para>
[3f8be484]234
235 </sect2>
236
[cbbd1e4]237 <sect2 id="conf-glibc" role="configuration">
[d785e9d]238 <title>Configuring Glibc</title>
[3f8be484]239
[cbbd1e4]240 <indexterm zone="conf-glibc">
[3f8be484]241 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
242 </indexterm>
243
[cbbd1e4]244 <indexterm zone="conf-glibc">
[3f8be484]245 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
246 </indexterm>
247
248 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
[d785e9d]249 because, although Glibc provides defaults when this file is missing or
250 corrupt, the Glibc defaults do not work well in a networked environment.
[3f8be484]251 The time zone also needs to be configured.</para>
252
253 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running
254 the following:</para>
255
256<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
257<literal># Begin /etc/nsswitch.conf
258
259passwd: files
260group: files
261shadow: files
262
263hosts: files dns
264networks: files
265
266protocols: files
267services: files
268ethers: files
269rpc: files
270
271# End /etc/nsswitch.conf</literal>
272EOF</userinput></screen>
273
[52ed4da]274 <para>Install timezone data:</para>
275<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
276
277ZONEINFO=/usr/share/zoneinfo
278mkdir -pv $ZONEINFO/{posix,right}
279
280for tz in etcetera southamerica northamerica europe africa antarctica \
[6e778c3]281 asia australasia backward pacificnew \
[52ed4da]282 systemv; do
283 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
284 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
285 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
286done
287
288cp -v zone.tab iso3166.tab $ZONEINFO
289zic -d $ZONEINFO -p America/New_York
290unset ZONEINFO</userinput></screen>
291
292 <variablelist>
293 <title>The meaning of the zic commands:</title>
294
295 <varlistentry>
296 <term><parameter>zic -L /dev/null ...</parameter></term>
297 <listitem>
298 <para>This creates posix timezones, without any leap seconds. It is
299 conventional to put these in both
300 <filename class="directory">zoneinfo</filename> and
301 <filename class="directory">zoneinfo/posix</filename>. It is
302 necessary to put the POSIX timezones in
303 <filename class="directory">zoneinfo</filename>, otherwise various
304 test-suites will report errors. On an embedded system, where space is
305 tight and you do not intend to ever update the timezones, you could save
306 1.9MB by not using the <filename class="directory">posix</filename>
307 directory, but some applications or test-suites might give less good
308 results</para>
309 </listitem>
310 </varlistentry>
311 <varlistentry>
312 <term><parameter>zic -L leapseconds ...</parameter></term>
313 <listitem>
314 <para>This creates right timezones, including leap seconds. On an
315 embedded system, where space is tight and you do not intend to
316 ever update the timezones, or care about the correct time, you could
317 save 1.9MB by omitting the <filename class="directory">right</filename>
318 directory.</para>
319 </listitem>
320 </varlistentry>
321 <varlistentry>
322 <term><parameter>zic ... -p ...</parameter></term>
323 <listitem>
324 <para>This creates the <filename>posixrules</filename> file. We use
325 New York because POSIX requires the daylight savings time rules
326 to be in accordance with US rules.</para>
327 </listitem>
328 </varlistentry>
329 </variablelist>
330
[3f8be484]331 <para>To determine the local time zone, run the following script:</para>
332
[0f3854e]333<screen role="nodump"><userinput>tzselect</userinput></screen>
[3f8be484]334
335 <para>After answering a few questions about the location, the script will
336 output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
337 <emphasis>Canada/Eastern</emphasis>). Then create the
338 <filename>/etc/localtime</filename> file by running:</para>
339
[63cad62f]340<screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
[3f8be484]341 /etc/localtime</userinput></screen>
342
343 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
344 that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
345
346 </sect2>
347
348 <sect2 id="conf-ld" role="configuration">
[0b637f1]349 <title>Configuring The Dynamic Loader</title>
[3f8be484]350
351 <indexterm zone="conf-ld">
352 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
353 </indexterm>
354
[3998188]355 <para os="ld-a">By default, the dynamic loader (<filename
[3f8be484]356 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
357 <filename class="directory">/lib</filename> and <filename
358 class="directory">/usr/lib</filename> for dynamic libraries that are
359 needed by programs as they are run. However, if there are libraries in
360 directories other than <filename class="directory">/lib</filename> and
361 <filename class="directory">/usr/lib</filename>, these need to be
362 added to the <filename>/etc/ld.so.conf</filename> file in order
363 for the dynamic loader to find them. Two directories that are commonly
364 known to contain additional libraries are <filename
365 class="directory">/usr/local/lib</filename> and <filename
366 class="directory">/opt/lib</filename>, so add those directories to the
367 dynamic loader's search path.</para>
368
[3998188]369 <para os="ld-b">Create a new file <filename>/etc/ld.so.conf</filename> by running the
[3f8be484]370 following:</para>
371
[3998188]372<screen os="ld-c"><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[3f8be484]373<literal># Begin /etc/ld.so.conf
374
375/usr/local/lib
376/opt/lib
377
378# End /etc/ld.so.conf</literal>
379EOF</userinput></screen>
380
381 </sect2>
382
[cbbd1e4]383 <sect2 id="contents-glibc" role="content">
[d785e9d]384 <title>Contents of Glibc</title>
[3f8be484]385
386 <segmentedlist>
387 <segtitle>Installed programs</segtitle>
388 <segtitle>Installed libraries</segtitle>
[61ad0b7f]389 <segtitle>Installed directories</segtitle>
[3f8be484]390
391 <seglistitem>
392 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[2b220db9]393 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
[6d3523f]394 pcprofiledump, pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
395 zdump, and zic</seg>
[3f8be484]396 <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
[aeb5c611]397 libc.[a,so], libc_nonshared.a, libcidn.[a,so], libcrypt.[a,so],
398 libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
399 libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so,
[188b6b2]400 libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so,
401 libpcprofile.so, libpthread.[a,so], libpthread_nonshared.a,
[3f8be484]402 libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and
403 libutil.[a,so]</seg>
[61ad0b7f]404 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
405 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
406 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
407 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
408 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
409 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
[6d3523f]410 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/glibc, /usr/lib/locale,
[cf9aa7e]411 /usr/share/i18n, /usr/share/zoneinfo, /var/cache/ldconfig, and
412 /var/cache/nscd</seg>
[3f8be484]413 </seglistitem>
414 </segmentedlist>
415
416 <variablelist>
417 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
418 <?dbfo list-presentation="list"?>
419 <?dbhtml list-presentation="table"?>
420
421 <varlistentry id="catchsegv">
422 <term><command>catchsegv</command></term>
423 <listitem>
424 <para>Can be used to create a stack trace when a program
425 terminates with a segmentation fault</para>
[cbbd1e4]426 <indexterm zone="ch-system-glibc catchsegv">
[3f8be484]427 <primary sortas="b-catchsegv">catchsegv</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="gencat">
433 <term><command>gencat</command></term>
434 <listitem>
435 <para>Generates message catalogues</para>
[cbbd1e4]436 <indexterm zone="ch-system-glibc gencat">
[3f8be484]437 <primary sortas="b-gencat">gencat</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="getconf">
443 <term><command>getconf</command></term>
444 <listitem>
445 <para>Displays the system configuration values for file system specific
446 variables</para>
[cbbd1e4]447 <indexterm zone="ch-system-glibc getconf">
[3f8be484]448 <primary sortas="b-getconf">getconf</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="getent">
454 <term><command>getent</command></term>
455 <listitem>
456 <para>Gets entries from an administrative database</para>
[cbbd1e4]457 <indexterm zone="ch-system-glibc getent">
[3f8be484]458 <primary sortas="b-getent">getent</primary>
459 </indexterm>
460 </listitem>
461 </varlistentry>
462
463 <varlistentry id="iconv">
464 <term><command>iconv</command></term>
465 <listitem>
466 <para>Performs character set conversion</para>
[cbbd1e4]467 <indexterm zone="ch-system-glibc iconv">
[3f8be484]468 <primary sortas="b-iconv">iconv</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="iconvconfig">
474 <term><command>iconvconfig</command></term>
475 <listitem>
476 <para>Creates fastloading <command>iconv</command> module configuration
477 files</para>
[cbbd1e4]478 <indexterm zone="ch-system-glibc iconvconfig">
[3f8be484]479 <primary sortas="b-iconvconfig">iconvconfig</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="ldconfig">
485 <term><command>ldconfig</command></term>
486 <listitem>
487 <para>Configures the dynamic linker runtime bindings</para>
[cbbd1e4]488 <indexterm zone="ch-system-glibc ldconfig">
[3f8be484]489 <primary sortas="b-ldconfig">ldconfig</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <varlistentry id="ldd">
495 <term><command>ldd</command></term>
496 <listitem>
497 <para>Reports which shared libraries are required
498 by each given program or shared library</para>
[cbbd1e4]499 <indexterm zone="ch-system-glibc ldd">
[3f8be484]500 <primary sortas="b-ldd">ldd</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="lddlibc4">
506 <term><command>lddlibc4</command></term>
507 <listitem>
508 <para>Assists <command>ldd</command> with object files</para>
[cbbd1e4]509 <indexterm zone="ch-system-glibc lddlibc4">
[3f8be484]510 <primary sortas="b-lddlibc4">lddlibc4</primary>
511 </indexterm>
512 </listitem>
513 </varlistentry>
514
515 <varlistentry id="locale">
516 <term><command>locale</command></term>
517 <listitem>
518 <para>Tells the compiler to enable or disable the use of POSIX locales
519 for built-in operations</para>
[cbbd1e4]520 <indexterm zone="ch-system-glibc locale">
[3f8be484]521 <primary sortas="b-locale">locale</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
526 <varlistentry id="localedef">
527 <term><command>localedef</command></term>
528 <listitem>
529 <para>Compiles locale specifications</para>
[cbbd1e4]530 <indexterm zone="ch-system-glibc localedef">
[3f8be484]531 <primary sortas="b-localedef">localedef</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
[2b220db9]536 <varlistentry id="makedb">
537 <term><command>makedb</command></term>
538 <listitem>
539 <para>Creates a simple database from textual input</para>
[cbbd1e4]540 <indexterm zone="ch-system-glibc makedb">
[2b220db9]541 <primary sortas="b-makedb">makedb</primary>
542 </indexterm>
543 </listitem>
544 </varlistentry>
545
[3f8be484]546 <varlistentry id="mtrace">
547 <term><command>mtrace</command></term>
548 <listitem>
549 <para>Reads and interprets a memory trace file and
550 displays a summary in human-readable format</para>
[cbbd1e4]551 <indexterm zone="ch-system-glibc mtrace">
[3f8be484]552 <primary sortas="b-mtrace">mtrace</primary>
553 </indexterm>
554 </listitem>
555 </varlistentry>
556
557 <varlistentry id="nscd">
558 <term><command>nscd</command></term>
559 <listitem>
560 <para>A daemon that provides a cache for the most common name
561 service requests</para>
[cbbd1e4]562 <indexterm zone="ch-system-glibc nscd">
[3f8be484]563 <primary sortas="b-nscd">nscd</primary>
564 </indexterm>
565 </listitem>
566 </varlistentry>
567
568 <varlistentry id="pcprofiledump">
569 <term><command>pcprofiledump</command></term>
570 <listitem>
571 <para>Dumps information generated by PC profiling</para>
[cbbd1e4]572 <indexterm zone="ch-system-glibc pcprofiledump">
[3f8be484]573 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
574 </indexterm>
575 </listitem>
576 </varlistentry>
577
[2b220db9]578 <varlistentry id="pldd">
579 <term><command>pldd</command></term>
580 <listitem>
581 <para>Lists dynamic shared objects used by running processes</para>
[cbbd1e4]582 <indexterm zone="ch-system-glibc pldd">
[2b220db9]583 <primary sortas="b-pldd">pldd</primary>
584 </indexterm>
585 </listitem>
586 </varlistentry>
587
[3f8be484]588 <varlistentry id="rpcgen">
589 <term><command>rpcgen</command></term>
590 <listitem>
591 <para>Generates C code to implement the Remote Procecure Call (RPC)
592 protocol</para>
[cbbd1e4]593 <indexterm zone="ch-system-glibc rpcgen">
[3f8be484]594 <primary sortas="b-rpcgen">rpcgen</primary>
595 </indexterm>
596 </listitem>
597 </varlistentry>
598
599 <varlistentry id="sln">
600 <term><command>sln</command></term>
601 <listitem>
[7087cbc]602 <para>A statically linked program that creates symbolic links</para>
[cbbd1e4]603 <indexterm zone="ch-system-glibc sln">
[3f8be484]604 <primary sortas="b-sln">sln</primary>
605 </indexterm>
606 </listitem>
607 </varlistentry>
608
[2b220db9]609 <varlistentry id="sotruss">
610 <term><command>sotruss</command></term>
611 <listitem>
612 <para>Traces shared library procedure calls of a specified command</para>
[cbbd1e4]613 <indexterm zone="ch-system-glibc sotruss">
[2b220db9]614 <primary sortas="b-sotruss">sotruss</primary>
615 </indexterm>
616 </listitem>
617 </varlistentry>
618
[3f8be484]619 <varlistentry id="sprof">
620 <term><command>sprof</command></term>
621 <listitem>
622 <para>Reads and displays shared object profiling data</para>
[cbbd1e4]623 <indexterm zone="ch-system-glibc sprof">
[3f8be484]624 <primary sortas="b-sprof">sprof</primary>
625 </indexterm>
626 </listitem>
627 </varlistentry>
628
629 <varlistentry id="tzselect">
630 <term><command>tzselect</command></term>
631 <listitem>
632 <para>Asks the user about the location of the
633 system and reports the corresponding time zone description</para>
[cbbd1e4]634 <indexterm zone="ch-system-glibc tzselect">
[3f8be484]635 <primary sortas="b-tzselect">tzselect</primary>
636 </indexterm>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry id="xtrace">
641 <term><command>xtrace</command></term>
642 <listitem>
643 <para>Traces the execution of a program by
644 printing the currently executed function</para>
[cbbd1e4]645 <indexterm zone="ch-system-glibc xtrace">
[3f8be484]646 <primary sortas="b-xtrace">xtrace</primary>
647 </indexterm>
648 </listitem>
649 </varlistentry>
650
651 <varlistentry id="zdump">
652 <term><command>zdump</command></term>
653 <listitem>
654 <para>The time zone dumper</para>
[cbbd1e4]655 <indexterm zone="ch-system-glibc zdump">
[3f8be484]656 <primary sortas="b-zdump">zdump</primary>
657 </indexterm>
658 </listitem>
659 </varlistentry>
660
661 <varlistentry id="zic">
662 <term><command>zic</command></term>
663 <listitem>
664 <para>The time zone compiler</para>
[cbbd1e4]665 <indexterm zone="ch-system-glibc zic">
[3f8be484]666 <primary sortas="b-zic">zic</primary>
667 </indexterm>
668 </listitem>
669 </varlistentry>
670
671 <varlistentry id="ld.so">
672 <term><filename class="libraryfile">ld.so</filename></term>
673 <listitem>
674 <para>The helper program for shared library executables</para>
[cbbd1e4]675 <indexterm zone="ch-system-glibc ld.so">
[3f8be484]676 <primary sortas="c-ld.so">ld.so</primary>
677 </indexterm>
678 </listitem>
679 </varlistentry>
680
681 <varlistentry id="libBrokenLocale">
682 <term><filename class="libraryfile">libBrokenLocale</filename></term>
683 <listitem>
684 <para>Used by programs, such as Mozilla, to solve broken locales</para>
[cbbd1e4]685 <indexterm zone="ch-system-glibc libBrokenLocale">
[3f8be484]686 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
687 </indexterm>
688 </listitem>
689 </varlistentry>
690
691 <varlistentry id="libSegFault">
692 <term><filename class="libraryfile">libSegFault</filename></term>
693 <listitem>
694 <para>The segmentation fault signal handler</para>
[cbbd1e4]695 <indexterm zone="ch-system-glibc libSegFault">
[3f8be484]696 <primary sortas="c-libSegFault">libSegFault</primary>
697 </indexterm>
698 </listitem>
699 </varlistentry>
700
701 <varlistentry id="libanl">
702 <term><filename class="libraryfile">libanl</filename></term>
703 <listitem>
704 <para>An asynchronous name lookup library</para>
[cbbd1e4]705 <indexterm zone="ch-system-glibc libanl">
[3f8be484]706 <primary sortas="c-libanl">libanl</primary>
707 </indexterm>
708 </listitem>
709 </varlistentry>
710
711 <varlistentry id="libc">
712 <term><filename class="libraryfile">libc</filename></term>
713 <listitem>
714 <para>The main C library</para>
[cbbd1e4]715 <indexterm zone="ch-system-glibc libc">
[3f8be484]716 <primary sortas="c-libc">libc</primary>
717 </indexterm>
718 </listitem>
719 </varlistentry>
720
[188b6b2]721 <varlistentry id="libcidn">
722 <term><filename class="libraryfile">libcidn</filename></term>
723 <listitem>
[d785e9d]724 <para>Used internally by Glibc for handling internationalized domain
[188b6b2]725 names in the <function>getaddrinfo()</function> function</para>
[cbbd1e4]726 <indexterm zone="ch-system-glibc libcidn">
[188b6b2]727 <primary sortas="c-libcidn">libcidn</primary>
728 </indexterm>
729 </listitem>
730 </varlistentry>
731
[3f8be484]732 <varlistentry id="libcrypt">
733 <term><filename class="libraryfile">libcrypt</filename></term>
734 <listitem>
735 <para>The cryptography library</para>
[cbbd1e4]736 <indexterm zone="ch-system-glibc libcrypt">
[3f8be484]737 <primary sortas="c-libcrypt">libcrypt</primary>
738 </indexterm>
739 </listitem>
740 </varlistentry>
741
742 <varlistentry id="libdl">
743 <term><filename class="libraryfile">libdl</filename></term>
744 <listitem>
745 <para>The dynamic linking interface library</para>
[cbbd1e4]746 <indexterm zone="ch-system-glibc libdl">
[3f8be484]747 <primary sortas="c-libdl">libdl</primary>
748 </indexterm>
749 </listitem>
750 </varlistentry>
751
752 <varlistentry id="libg">
753 <term><filename class="libraryfile">libg</filename></term>
754 <listitem>
755 <para>A runtime library for <command>g++</command></para>
[cbbd1e4]756 <indexterm zone="ch-system-glibc libg">
[3f8be484]757 <primary sortas="c-libg">libg</primary>
758 </indexterm>
759 </listitem>
760 </varlistentry>
761
762 <varlistentry id="libieee">
763 <term><filename class="libraryfile">libieee</filename></term>
764 <listitem>
765 <para>The Institute of Electrical and Electronic Engineers (IEEE)
766 floating point library</para>
[cbbd1e4]767 <indexterm zone="ch-system-glibc libieee">
[3f8be484]768 <primary sortas="c-libieee">libieee</primary>
769 </indexterm>
770 </listitem>
771 </varlistentry>
772
773 <varlistentry id="libm">
774 <term><filename class="libraryfile">libm</filename></term>
775 <listitem>
776 <para>The mathematical library</para>
[cbbd1e4]777 <indexterm zone="ch-system-glibc libm">
[3f8be484]778 <primary sortas="c-libm">libm</primary>
779 </indexterm>
780 </listitem>
781 </varlistentry>
782
783 <varlistentry id="libmcheck">
784 <term><filename class="libraryfile">libmcheck</filename></term>
785 <listitem>
786 <para>Contains code run at boot</para>
[cbbd1e4]787 <indexterm zone="ch-system-glibc libmcheck">
[3f8be484]788 <primary sortas="c-libmcheck">libmcheck</primary>
789 </indexterm>
790 </listitem>
791 </varlistentry>
792
793 <varlistentry id="libmemusage">
794 <term><filename class="libraryfile">libmemusage</filename></term>
795 <listitem>
[d785e9d]796 <para>Used by <command>memusage</command> (included in Glibc, but
[7087cbc]797 not built in a base CLFS system as it has additional dependencies)
798 to help collect information about the memory usage of a program</para>
[cbbd1e4]799 <indexterm zone="ch-system-glibc libmemusage">
[3f8be484]800 <primary sortas="c-libmemusage">libmemusage</primary>
801 </indexterm>
802 </listitem>
803 </varlistentry>
804
805 <varlistentry id="libnsl">
806 <term><filename class="libraryfile">libnsl</filename></term>
807 <listitem>
808 <para>The network services library</para>
[cbbd1e4]809 <indexterm zone="ch-system-glibc libnsl">
[3f8be484]810 <primary sortas="c-libnsl">libnsl</primary>
811 </indexterm>
812 </listitem>
813 </varlistentry>
814
815 <varlistentry id="libnss">
816 <term><filename class="libraryfile">libnss</filename></term>
817 <listitem>
818 <para>The Name Service Switch libraries, containing functions for
819 resolving host names, user names, group names, aliases, services,
820 protocols, etc.</para>
[cbbd1e4]821 <indexterm zone="ch-system-glibc libnss">
[3f8be484]822 <primary sortas="c-libnss">libnss</primary>
823 </indexterm>
824 </listitem>
825 </varlistentry>
826
827 <varlistentry id="libpcprofile">
828 <term><filename class="libraryfile">libpcprofile</filename></term>
829 <listitem>
830 <para>Contains profiling functions used to track the amount of CPU
831 time spent in specific source code lines</para>
[cbbd1e4]832 <indexterm zone="ch-system-glibc libpcprofile">
[3f8be484]833 <primary sortas="c-libpcprofile">libpcprofile</primary>
834 </indexterm>
835 </listitem>
836 </varlistentry>
837
838 <varlistentry id="libpthread">
839 <term><filename class="libraryfile">libpthread</filename></term>
840 <listitem>
841 <para>The POSIX threads library</para>
[cbbd1e4]842 <indexterm zone="ch-system-glibc libpthread">
[3f8be484]843 <primary sortas="c-libpthread">libpthread</primary>
844 </indexterm>
845 </listitem>
846 </varlistentry>
847
848 <varlistentry id="libresolv">
849 <term><filename class="libraryfile">libresolv</filename></term>
850 <listitem>
851 <para>Contains functions for creating, sending, and interpreting
852 packets to the Internet domain name servers</para>
[cbbd1e4]853 <indexterm zone="ch-system-glibc libresolv">
[3f8be484]854 <primary sortas="c-libresolv">libresolv</primary>
855 </indexterm>
856 </listitem>
857 </varlistentry>
858
859 <varlistentry id="librpcsvc">
860 <term><filename class="libraryfile">librpcsvc</filename></term>
861 <listitem>
862 <para>Contains functions providing miscellaneous RPC services</para>
[cbbd1e4]863 <indexterm zone="ch-system-glibc librpcsvc">
[3f8be484]864 <primary sortas="c-librpcsvc">librpcsvc</primary>
865 </indexterm>
866 </listitem>
867 </varlistentry>
868
869 <varlistentry id="librt">
870 <term><filename class="libraryfile">librt</filename></term>
871 <listitem>
872 <para>Contains functions providing most of the interfaces specified by
873 the POSIX.1b Realtime Extension</para>
[cbbd1e4]874 <indexterm zone="ch-system-glibc librt">
[3f8be484]875 <primary sortas="c-librt">librt</primary>
876 </indexterm>
877 </listitem>
878 </varlistentry>
879
880 <varlistentry id="libthread_db">
881 <term><filename class="libraryfile">libthread_db</filename></term>
882 <listitem>
883 <para>Contains functions useful for
884 building debuggers for multi-threaded programs</para>
[cbbd1e4]885 <indexterm zone="ch-system-glibc libthread_db">
[3f8be484]886 <primary sortas="c-libthread_db">libthread_db</primary>
887 </indexterm>
888 </listitem>
889 </varlistentry>
890
891 <varlistentry id="libutil">
892 <term><filename class="libraryfile">libutil</filename></term>
893 <listitem>
894 <para>Contains code for <quote>standard</quote> functions used in
895 many different Unix utilities</para>
[cbbd1e4]896 <indexterm zone="ch-system-glibc libutil">
[3f8be484]897 <primary sortas="c-libutil">libutil</primary>
898 </indexterm>
899 </listitem>
900 </varlistentry>
901
902 </variablelist>
903
904 </sect2>
905
906</sect1>
Note: See TracBrowser for help on using the repository browser.