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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c84d855 was 6d3523f, checked in by Chris Staub <chris@…>, 11 years ago

Updated some package installation lists

  • Property mode set to 100644
File size: 35.2 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
[63cad62f]341<screen><userinput>cp -v /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 </sect2>
348
349 <sect2 id="conf-ld" role="configuration">
[0b637f1]350 <title>Configuring The Dynamic Loader</title>
[3f8be484]351
352 <indexterm zone="conf-ld">
353 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
354 </indexterm>
355
[3998188]356 <para os="ld-a">By default, the dynamic loader (<filename
[3f8be484]357 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
358 <filename class="directory">/lib</filename> and <filename
359 class="directory">/usr/lib</filename> for dynamic libraries that are
360 needed by programs as they are run. However, if there are libraries in
361 directories other than <filename class="directory">/lib</filename> and
362 <filename class="directory">/usr/lib</filename>, these need to be
363 added to the <filename>/etc/ld.so.conf</filename> file in order
364 for the dynamic loader to find them. Two directories that are commonly
365 known to contain additional libraries are <filename
366 class="directory">/usr/local/lib</filename> and <filename
367 class="directory">/opt/lib</filename>, so add those directories to the
368 dynamic loader's search path.</para>
369
[3998188]370 <para os="ld-b">Create a new file <filename>/etc/ld.so.conf</filename> by running the
[3f8be484]371 following:</para>
372
[3998188]373<screen os="ld-c"><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[3f8be484]374<literal># Begin /etc/ld.so.conf
375
376/usr/local/lib
377/opt/lib
378
379# End /etc/ld.so.conf</literal>
380EOF</userinput></screen>
381
382 </sect2>
383
[cbbd1e4]384 <sect2 id="contents-glibc" role="content">
385 <title>Contents of GLIBC</title>
[3f8be484]386
387 <segmentedlist>
388 <segtitle>Installed programs</segtitle>
389 <segtitle>Installed libraries</segtitle>
[61ad0b7f]390 <segtitle>Installed directories</segtitle>
[3f8be484]391
392 <seglistitem>
393 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[2b220db9]394 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
[6d3523f]395 pcprofiledump, pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
396 zdump, and zic</seg>
[3f8be484]397 <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
[aeb5c611]398 libc.[a,so], libc_nonshared.a, libcidn.[a,so], libcrypt.[a,so],
399 libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
400 libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so,
[188b6b2]401 libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so,
402 libpcprofile.so, libpthread.[a,so], libpthread_nonshared.a,
[3f8be484]403 libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and
404 libutil.[a,so]</seg>
[61ad0b7f]405 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
406 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
407 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
408 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
409 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
410 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
[6d3523f]411 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/glibc, /usr/lib/locale,
[cf9aa7e]412 /usr/share/i18n, /usr/share/zoneinfo, /var/cache/ldconfig, and
413 /var/cache/nscd</seg>
[3f8be484]414 </seglistitem>
415 </segmentedlist>
416
417 <variablelist>
418 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
419 <?dbfo list-presentation="list"?>
420 <?dbhtml list-presentation="table"?>
421
422 <varlistentry id="catchsegv">
423 <term><command>catchsegv</command></term>
424 <listitem>
425 <para>Can be used to create a stack trace when a program
426 terminates with a segmentation fault</para>
[cbbd1e4]427 <indexterm zone="ch-system-glibc catchsegv">
[3f8be484]428 <primary sortas="b-catchsegv">catchsegv</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="gencat">
434 <term><command>gencat</command></term>
435 <listitem>
436 <para>Generates message catalogues</para>
[cbbd1e4]437 <indexterm zone="ch-system-glibc gencat">
[3f8be484]438 <primary sortas="b-gencat">gencat</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="getconf">
444 <term><command>getconf</command></term>
445 <listitem>
446 <para>Displays the system configuration values for file system specific
447 variables</para>
[cbbd1e4]448 <indexterm zone="ch-system-glibc getconf">
[3f8be484]449 <primary sortas="b-getconf">getconf</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="getent">
455 <term><command>getent</command></term>
456 <listitem>
457 <para>Gets entries from an administrative database</para>
[cbbd1e4]458 <indexterm zone="ch-system-glibc getent">
[3f8be484]459 <primary sortas="b-getent">getent</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="iconv">
465 <term><command>iconv</command></term>
466 <listitem>
467 <para>Performs character set conversion</para>
[cbbd1e4]468 <indexterm zone="ch-system-glibc iconv">
[3f8be484]469 <primary sortas="b-iconv">iconv</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
474 <varlistentry id="iconvconfig">
475 <term><command>iconvconfig</command></term>
476 <listitem>
477 <para>Creates fastloading <command>iconv</command> module configuration
478 files</para>
[cbbd1e4]479 <indexterm zone="ch-system-glibc iconvconfig">
[3f8be484]480 <primary sortas="b-iconvconfig">iconvconfig</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="ldconfig">
486 <term><command>ldconfig</command></term>
487 <listitem>
488 <para>Configures the dynamic linker runtime bindings</para>
[cbbd1e4]489 <indexterm zone="ch-system-glibc ldconfig">
[3f8be484]490 <primary sortas="b-ldconfig">ldconfig</primary>
491 </indexterm>
492 </listitem>
493 </varlistentry>
494
495 <varlistentry id="ldd">
496 <term><command>ldd</command></term>
497 <listitem>
498 <para>Reports which shared libraries are required
499 by each given program or shared library</para>
[cbbd1e4]500 <indexterm zone="ch-system-glibc ldd">
[3f8be484]501 <primary sortas="b-ldd">ldd</primary>
502 </indexterm>
503 </listitem>
504 </varlistentry>
505
506 <varlistentry id="lddlibc4">
507 <term><command>lddlibc4</command></term>
508 <listitem>
509 <para>Assists <command>ldd</command> with object files</para>
[cbbd1e4]510 <indexterm zone="ch-system-glibc lddlibc4">
[3f8be484]511 <primary sortas="b-lddlibc4">lddlibc4</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="locale">
517 <term><command>locale</command></term>
518 <listitem>
519 <para>Tells the compiler to enable or disable the use of POSIX locales
520 for built-in operations</para>
[cbbd1e4]521 <indexterm zone="ch-system-glibc locale">
[3f8be484]522 <primary sortas="b-locale">locale</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
527 <varlistentry id="localedef">
528 <term><command>localedef</command></term>
529 <listitem>
530 <para>Compiles locale specifications</para>
[cbbd1e4]531 <indexterm zone="ch-system-glibc localedef">
[3f8be484]532 <primary sortas="b-localedef">localedef</primary>
533 </indexterm>
534 </listitem>
535 </varlistentry>
536
[2b220db9]537 <varlistentry id="makedb">
538 <term><command>makedb</command></term>
539 <listitem>
540 <para>Creates a simple database from textual input</para>
[cbbd1e4]541 <indexterm zone="ch-system-glibc makedb">
[2b220db9]542 <primary sortas="b-makedb">makedb</primary>
543 </indexterm>
544 </listitem>
545 </varlistentry>
546
[3f8be484]547 <varlistentry id="mtrace">
548 <term><command>mtrace</command></term>
549 <listitem>
550 <para>Reads and interprets a memory trace file and
551 displays a summary in human-readable format</para>
[cbbd1e4]552 <indexterm zone="ch-system-glibc mtrace">
[3f8be484]553 <primary sortas="b-mtrace">mtrace</primary>
554 </indexterm>
555 </listitem>
556 </varlistentry>
557
558 <varlistentry id="nscd">
559 <term><command>nscd</command></term>
560 <listitem>
561 <para>A daemon that provides a cache for the most common name
562 service requests</para>
[cbbd1e4]563 <indexterm zone="ch-system-glibc nscd">
[3f8be484]564 <primary sortas="b-nscd">nscd</primary>
565 </indexterm>
566 </listitem>
567 </varlistentry>
568
569 <varlistentry id="pcprofiledump">
570 <term><command>pcprofiledump</command></term>
571 <listitem>
572 <para>Dumps information generated by PC profiling</para>
[cbbd1e4]573 <indexterm zone="ch-system-glibc pcprofiledump">
[3f8be484]574 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
575 </indexterm>
576 </listitem>
577 </varlistentry>
578
[2b220db9]579 <varlistentry id="pldd">
580 <term><command>pldd</command></term>
581 <listitem>
582 <para>Lists dynamic shared objects used by running processes</para>
[cbbd1e4]583 <indexterm zone="ch-system-glibc pldd">
[2b220db9]584 <primary sortas="b-pldd">pldd</primary>
585 </indexterm>
586 </listitem>
587 </varlistentry>
588
[3f8be484]589 <varlistentry id="rpcgen">
590 <term><command>rpcgen</command></term>
591 <listitem>
592 <para>Generates C code to implement the Remote Procecure Call (RPC)
593 protocol</para>
[cbbd1e4]594 <indexterm zone="ch-system-glibc rpcgen">
[3f8be484]595 <primary sortas="b-rpcgen">rpcgen</primary>
596 </indexterm>
597 </listitem>
598 </varlistentry>
599
600 <varlistentry id="sln">
601 <term><command>sln</command></term>
602 <listitem>
[7087cbc]603 <para>A statically linked program that creates symbolic links</para>
[cbbd1e4]604 <indexterm zone="ch-system-glibc sln">
[3f8be484]605 <primary sortas="b-sln">sln</primary>
606 </indexterm>
607 </listitem>
608 </varlistentry>
609
[2b220db9]610 <varlistentry id="sotruss">
611 <term><command>sotruss</command></term>
612 <listitem>
613 <para>Traces shared library procedure calls of a specified command</para>
[cbbd1e4]614 <indexterm zone="ch-system-glibc sotruss">
[2b220db9]615 <primary sortas="b-sotruss">sotruss</primary>
616 </indexterm>
617 </listitem>
618 </varlistentry>
619
[3f8be484]620 <varlistentry id="sprof">
621 <term><command>sprof</command></term>
622 <listitem>
623 <para>Reads and displays shared object profiling data</para>
[cbbd1e4]624 <indexterm zone="ch-system-glibc sprof">
[3f8be484]625 <primary sortas="b-sprof">sprof</primary>
626 </indexterm>
627 </listitem>
628 </varlistentry>
629
630 <varlistentry id="tzselect">
631 <term><command>tzselect</command></term>
632 <listitem>
633 <para>Asks the user about the location of the
634 system and reports the corresponding time zone description</para>
[cbbd1e4]635 <indexterm zone="ch-system-glibc tzselect">
[3f8be484]636 <primary sortas="b-tzselect">tzselect</primary>
637 </indexterm>
638 </listitem>
639 </varlistentry>
640
641 <varlistentry id="xtrace">
642 <term><command>xtrace</command></term>
643 <listitem>
644 <para>Traces the execution of a program by
645 printing the currently executed function</para>
[cbbd1e4]646 <indexterm zone="ch-system-glibc xtrace">
[3f8be484]647 <primary sortas="b-xtrace">xtrace</primary>
648 </indexterm>
649 </listitem>
650 </varlistentry>
651
652 <varlistentry id="zdump">
653 <term><command>zdump</command></term>
654 <listitem>
655 <para>The time zone dumper</para>
[cbbd1e4]656 <indexterm zone="ch-system-glibc zdump">
[3f8be484]657 <primary sortas="b-zdump">zdump</primary>
658 </indexterm>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry id="zic">
663 <term><command>zic</command></term>
664 <listitem>
665 <para>The time zone compiler</para>
[cbbd1e4]666 <indexterm zone="ch-system-glibc zic">
[3f8be484]667 <primary sortas="b-zic">zic</primary>
668 </indexterm>
669 </listitem>
670 </varlistentry>
671
672 <varlistentry id="ld.so">
673 <term><filename class="libraryfile">ld.so</filename></term>
674 <listitem>
675 <para>The helper program for shared library executables</para>
[cbbd1e4]676 <indexterm zone="ch-system-glibc ld.so">
[3f8be484]677 <primary sortas="c-ld.so">ld.so</primary>
678 </indexterm>
679 </listitem>
680 </varlistentry>
681
682 <varlistentry id="libBrokenLocale">
683 <term><filename class="libraryfile">libBrokenLocale</filename></term>
684 <listitem>
685 <para>Used by programs, such as Mozilla, to solve broken locales</para>
[cbbd1e4]686 <indexterm zone="ch-system-glibc libBrokenLocale">
[3f8be484]687 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
688 </indexterm>
689 </listitem>
690 </varlistentry>
691
692 <varlistentry id="libSegFault">
693 <term><filename class="libraryfile">libSegFault</filename></term>
694 <listitem>
695 <para>The segmentation fault signal handler</para>
[cbbd1e4]696 <indexterm zone="ch-system-glibc libSegFault">
[3f8be484]697 <primary sortas="c-libSegFault">libSegFault</primary>
698 </indexterm>
699 </listitem>
700 </varlistentry>
701
702 <varlistentry id="libanl">
703 <term><filename class="libraryfile">libanl</filename></term>
704 <listitem>
705 <para>An asynchronous name lookup library</para>
[cbbd1e4]706 <indexterm zone="ch-system-glibc libanl">
[3f8be484]707 <primary sortas="c-libanl">libanl</primary>
708 </indexterm>
709 </listitem>
710 </varlistentry>
711
712 <varlistentry id="libc">
713 <term><filename class="libraryfile">libc</filename></term>
714 <listitem>
715 <para>The main C library</para>
[cbbd1e4]716 <indexterm zone="ch-system-glibc libc">
[3f8be484]717 <primary sortas="c-libc">libc</primary>
718 </indexterm>
719 </listitem>
720 </varlistentry>
721
[188b6b2]722 <varlistentry id="libcidn">
723 <term><filename class="libraryfile">libcidn</filename></term>
724 <listitem>
[cbbd1e4]725 <para>Used internally by GLIBC for handling internationalized domain
[188b6b2]726 names in the <function>getaddrinfo()</function> function</para>
[cbbd1e4]727 <indexterm zone="ch-system-glibc libcidn">
[188b6b2]728 <primary sortas="c-libcidn">libcidn</primary>
729 </indexterm>
730 </listitem>
731 </varlistentry>
732
[3f8be484]733 <varlistentry id="libcrypt">
734 <term><filename class="libraryfile">libcrypt</filename></term>
735 <listitem>
736 <para>The cryptography library</para>
[cbbd1e4]737 <indexterm zone="ch-system-glibc libcrypt">
[3f8be484]738 <primary sortas="c-libcrypt">libcrypt</primary>
739 </indexterm>
740 </listitem>
741 </varlistentry>
742
743 <varlistentry id="libdl">
744 <term><filename class="libraryfile">libdl</filename></term>
745 <listitem>
746 <para>The dynamic linking interface library</para>
[cbbd1e4]747 <indexterm zone="ch-system-glibc libdl">
[3f8be484]748 <primary sortas="c-libdl">libdl</primary>
749 </indexterm>
750 </listitem>
751 </varlistentry>
752
753 <varlistentry id="libg">
754 <term><filename class="libraryfile">libg</filename></term>
755 <listitem>
756 <para>A runtime library for <command>g++</command></para>
[cbbd1e4]757 <indexterm zone="ch-system-glibc libg">
[3f8be484]758 <primary sortas="c-libg">libg</primary>
759 </indexterm>
760 </listitem>
761 </varlistentry>
762
763 <varlistentry id="libieee">
764 <term><filename class="libraryfile">libieee</filename></term>
765 <listitem>
766 <para>The Institute of Electrical and Electronic Engineers (IEEE)
767 floating point library</para>
[cbbd1e4]768 <indexterm zone="ch-system-glibc libieee">
[3f8be484]769 <primary sortas="c-libieee">libieee</primary>
770 </indexterm>
771 </listitem>
772 </varlistentry>
773
774 <varlistentry id="libm">
775 <term><filename class="libraryfile">libm</filename></term>
776 <listitem>
777 <para>The mathematical library</para>
[cbbd1e4]778 <indexterm zone="ch-system-glibc libm">
[3f8be484]779 <primary sortas="c-libm">libm</primary>
780 </indexterm>
781 </listitem>
782 </varlistentry>
783
784 <varlistentry id="libmcheck">
785 <term><filename class="libraryfile">libmcheck</filename></term>
786 <listitem>
787 <para>Contains code run at boot</para>
[cbbd1e4]788 <indexterm zone="ch-system-glibc libmcheck">
[3f8be484]789 <primary sortas="c-libmcheck">libmcheck</primary>
790 </indexterm>
791 </listitem>
792 </varlistentry>
793
794 <varlistentry id="libmemusage">
795 <term><filename class="libraryfile">libmemusage</filename></term>
796 <listitem>
[cbbd1e4]797 <para>Used by <command>memusage</command> (included in GLIBC, but
[7087cbc]798 not built in a base CLFS system as it has additional dependencies)
799 to help collect information about the memory usage of a program</para>
[cbbd1e4]800 <indexterm zone="ch-system-glibc libmemusage">
[3f8be484]801 <primary sortas="c-libmemusage">libmemusage</primary>
802 </indexterm>
803 </listitem>
804 </varlistentry>
805
806 <varlistentry id="libnsl">
807 <term><filename class="libraryfile">libnsl</filename></term>
808 <listitem>
809 <para>The network services library</para>
[cbbd1e4]810 <indexterm zone="ch-system-glibc libnsl">
[3f8be484]811 <primary sortas="c-libnsl">libnsl</primary>
812 </indexterm>
813 </listitem>
814 </varlistentry>
815
816 <varlistentry id="libnss">
817 <term><filename class="libraryfile">libnss</filename></term>
818 <listitem>
819 <para>The Name Service Switch libraries, containing functions for
820 resolving host names, user names, group names, aliases, services,
821 protocols, etc.</para>
[cbbd1e4]822 <indexterm zone="ch-system-glibc libnss">
[3f8be484]823 <primary sortas="c-libnss">libnss</primary>
824 </indexterm>
825 </listitem>
826 </varlistentry>
827
828 <varlistentry id="libpcprofile">
829 <term><filename class="libraryfile">libpcprofile</filename></term>
830 <listitem>
831 <para>Contains profiling functions used to track the amount of CPU
832 time spent in specific source code lines</para>
[cbbd1e4]833 <indexterm zone="ch-system-glibc libpcprofile">
[3f8be484]834 <primary sortas="c-libpcprofile">libpcprofile</primary>
835 </indexterm>
836 </listitem>
837 </varlistentry>
838
839 <varlistentry id="libpthread">
840 <term><filename class="libraryfile">libpthread</filename></term>
841 <listitem>
842 <para>The POSIX threads library</para>
[cbbd1e4]843 <indexterm zone="ch-system-glibc libpthread">
[3f8be484]844 <primary sortas="c-libpthread">libpthread</primary>
845 </indexterm>
846 </listitem>
847 </varlistentry>
848
849 <varlistentry id="libresolv">
850 <term><filename class="libraryfile">libresolv</filename></term>
851 <listitem>
852 <para>Contains functions for creating, sending, and interpreting
853 packets to the Internet domain name servers</para>
[cbbd1e4]854 <indexterm zone="ch-system-glibc libresolv">
[3f8be484]855 <primary sortas="c-libresolv">libresolv</primary>
856 </indexterm>
857 </listitem>
858 </varlistentry>
859
860 <varlistentry id="librpcsvc">
861 <term><filename class="libraryfile">librpcsvc</filename></term>
862 <listitem>
863 <para>Contains functions providing miscellaneous RPC services</para>
[cbbd1e4]864 <indexterm zone="ch-system-glibc librpcsvc">
[3f8be484]865 <primary sortas="c-librpcsvc">librpcsvc</primary>
866 </indexterm>
867 </listitem>
868 </varlistentry>
869
870 <varlistentry id="librt">
871 <term><filename class="libraryfile">librt</filename></term>
872 <listitem>
873 <para>Contains functions providing most of the interfaces specified by
874 the POSIX.1b Realtime Extension</para>
[cbbd1e4]875 <indexterm zone="ch-system-glibc librt">
[3f8be484]876 <primary sortas="c-librt">librt</primary>
877 </indexterm>
878 </listitem>
879 </varlistentry>
880
881 <varlistentry id="libthread_db">
882 <term><filename class="libraryfile">libthread_db</filename></term>
883 <listitem>
884 <para>Contains functions useful for
885 building debuggers for multi-threaded programs</para>
[cbbd1e4]886 <indexterm zone="ch-system-glibc libthread_db">
[3f8be484]887 <primary sortas="c-libthread_db">libthread_db</primary>
888 </indexterm>
889 </listitem>
890 </varlistentry>
891
892 <varlistentry id="libutil">
893 <term><filename class="libraryfile">libutil</filename></term>
894 <listitem>
895 <para>Contains code for <quote>standard</quote> functions used in
896 many different Unix utilities</para>
[cbbd1e4]897 <indexterm zone="ch-system-glibc libutil">
[3f8be484]898 <primary sortas="c-libutil">libutil</primary>
899 </indexterm>
900 </listitem>
901 </varlistentry>
902
903 </variablelist>
904
905 </sect2>
906
907</sect1>
Note: See TracBrowser for help on using the repository browser.