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

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

libbsd-compat is no longer installed.

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