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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8d741b2 was 767a2a5, checked in by William Harrington <kb0iic@…>, 11 years ago

Add conform/run-conformtest as an emphasis with posix/annexc as being ignored, and include some more teset suite failures with reasons.

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