source: chapter08/glibc.xml@ 192dda3

multilib
Last change on this file since 192dda3 was 192dda3, checked in by Thomas Trepl (Moody) <thomas@…>, 20 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 42.2 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6a82dd9]7
[81fd230]8<sect1 id="ch-system-glibc" role="wrap">
[6a82dd9]9 <?dbhtml filename="glibc.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>glibc</productname>
13 <productnumber>&glibc-version;</productnumber>
14 <address>&glibc-url;</address>
15 </sect1info>
16
[6a82dd9]17 <title>Glibc-&glibc-version;</title>
18
19 <indexterm zone="ch-system-glibc">
20 <primary sortas="a-Glibc">Glibc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Glibc package contains the main C library. This library provides
27 the basic routines for allocating memory, searching directories, opening and
28 closing files, reading and writing files, string handling, pattern matching,
29 arithmetic, and so on.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
[6dfcfecc]36 <seg>&glibc-fin-sbu;</seg>
37 <seg>&glibc-fin-du;</seg>
[6a82dd9]38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
[12836f5]45
[651c74b]46<!-- applied in 2.35 (commit b805aebd42364fe696e417808a700fdb9800c9e8)
[de8b6cb]47 <para>First, fix a security problem identified upstream:</para>
48
49 <screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&amp;\&amp; data.attr != NULL)/' \
[d672ab7]50 -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen>
[651c74b]51-->
[725ef3b]52 <para>Some of the Glibc programs use the non-FHS compliant
[4028929]53 <filename class="directory">/var/db</filename> directory to store
54 their runtime data. Apply the following patch to make such programs
55 store their runtime data in the FHS-compliant locations:</para>
56
57<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
[ffbeb5f]58
[d672ab7]59 <para>The Glibc documentation recommends building Glibc
[f1dd547]60 in a dedicated build directory:</para>
[73aedd1d]61
[f1dd547]62<screen><userinput remap="pre">mkdir -v build
63cd build</userinput></screen>
[c906b7e]64
[4eee9cc]65 <para>Ensure that the <command>ldconfig</command> and <command>sln</command>
[bcb20b4]66 utilities will be installed into
[4eee9cc]67 <filename class="directory">/usr/sbin</filename>:</para>
68
69<screen><userinput remap="pre">echo "rootsbindir=/usr/sbin" &gt; configparms</userinput></screen>
70
[6a82dd9]71 <para>Prepare Glibc for compilation:</para>
[73aedd1d]72
[6dfcfecc]73<screen arch="default"><userinput remap="configure">../configure --prefix=/usr \
74 --disable-werror \
75 --enable-kernel=&min-kernel; \
76 --enable-stack-protector=strong \
77 --with-headers=/usr/include \
[d4b5218]78 libc_cv_slibdir=/usr/lib</userinput></screen>
[6dfcfecc]79<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../configure --prefix=/usr \
80 --disable-werror \
81 --enable-kernel=&min-kernel; \
82 --enable-stack-protector=strong \
83 --with-headers=/usr/include \
84 --enable-multi-arch \
[d4b5218]85 libc_cv_slibdir=/usr/lib</userinput></screen>
[73aedd1d]86
[6dfcfecc]87 <variablelist>
88 <title>The meaning of the configure options:</title>
[0967c90]89
90 <varlistentry>
[6dfcfecc]91 <term><parameter>--disable-werror</parameter></term>
[0967c90]92 <listitem>
[d672ab7]93 <para>This option disables the -Werror option passed to
[6dfcfecc]94 GCC. This is necessary for running the test suite.</para>
[0967c90]95 </listitem>
96 </varlistentry>
[5897639]97
98 <varlistentry>
[6dfcfecc]99 <term><parameter>--enable-kernel=&min-kernel;</parameter></term>
[5897639]100 <listitem>
[6dfcfecc]101 <para>This option tells the build system that this glibc may
102 be used with kernels as old as &min-kernel;. This means generating
103 workarounds in case a system call introduced in a later version
104 cannot be used.</para>
[5897639]105 </listitem>
106 </varlistentry>
107
108 <varlistentry>
109 <term><parameter>--enable-stack-protector=strong</parameter></term>
110 <listitem>
[d672ab7]111 <para>This option increases system security by adding
[0d84af1]112 extra code to check for buffer overflows, such as stack
113 smashing attacks.</para>
[5897639]114 </listitem>
115 </varlistentry>
[6dfcfecc]116<!-- do we need this one? -->
[6702623]117 <varlistentry>
118 <term><parameter>--with-headers=/usr/include</parameter></term>
119 <listitem>
120 <para>This option tells the build system where to find the
[6dfcfecc]121 kernel API headers.</para>
[6702623]122 </listitem>
123 </varlistentry>
124
[5897639]125 <varlistentry>
[d7a9421]126 <term><parameter>libc_cv_slibdir=/usr/lib</parameter></term>
[5897639]127 <listitem>
128 <para>This variable sets the correct library for all
129 systems. We do not want lib64 to be used.</para>
130 </listitem>
131 </varlistentry>
132
133 </variablelist>
134
[6a82dd9]135 <para>Compile the package:</para>
[73aedd1d]136
[0445a3d]137<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]138
[6a82dd9]139 <important>
140 <para>In this section, the test suite for Glibc is considered critical.
141 Do not skip it under any circumstance.</para>
142 </important>
[81fd230]143
[0d84af1]144 <para>Generally a few tests do not pass. The test failures listed below
145 are usually safe to ignore.</para>
[d9c836b]146
[082bbce]147<!-- Use remap="make" here to work around a jhalfs issue. -->
[9da9d014]148<!--<screen><userinput remap="make">case $(uname -m) in
[1b3fac7]149 i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;;
150 x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;;
[082bbce]151esac</userinput></screen>
[2e02c35]152
[70b235f4]153 <note><para>The symbolic link above is needed to run the tests at this
[d7f58cc]154 stage of building in the chroot environment. It will be overwritten
[70b235f4]155 in the install phase below.</para></note>
[9da9d014]156-->
[082bbce]157<screen><userinput remap="test">make check</userinput></screen>
158
[58ccce5]159 <para>You may see some test failures. The Glibc test suite is
160 somewhat dependent on the host system. A few failures out of
[d672ab7]161 over 4200 tests can generally be ignored. This is a list of the
[58ccce5]162 most common issues seen for recent versions of LFS:</para>
[6a82dd9]163
164 <itemizedlist>
[5d1f0157]165
[032dc4e8]166 <listitem>
[d672ab7]167 <para><emphasis>io/tst-lchmod</emphasis>
[032dc4e8]168 is known to fail in the LFS chroot environment.</para>
169 </listitem>
170
[751a13d]171 <listitem>
[d672ab7]172 <para><emphasis>misc/tst-ttyname</emphasis>
[751a13d]173 is known to fail in the LFS chroot environment.</para>
174 </listitem>
[186f5265]175
[de6905d]176 <listitem>
[582da16]177 <para>The <emphasis>nss/tst-nss-files-hosts-long</emphasis>
[186f5265]178 test is known to fail if the system has no non-loopback IP
[582da16]179 addresses.</para> <!-- PR 24816 -->
180 </listitem>
181
[20007e5]182 <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html -->
183 <listitem>
184 <para>The <emphasis>stdlib/tst-arc4random-thread</emphasis>
185 test is known to fail if the host kernel is relatively old.</para>
186 </listitem>
187
[582da16]188 <listitem>
[0c0b882]189 <para>Some tests, for example
190 <emphasis>nss/tst-nss-files-hosts-multi</emphasis>,
191 are known to fail on relatively slow systems due to an internal
[582da16]192 timeout.</para>
[de6905d]193 </listitem>
[c500323]194
[186f5265]195<!--
[d9c836b]196 <listitem>
[1b3fac7]197 <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on
198 the host system kernel. Kernels 4.14.91&ndash;4.14.96,
[d672ab7]199 4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to
[235556a]200 cause these tests to fail.
[1b3fac7]201 </para>
[6a82dd9]202 </listitem>
[a271796]203
[6a82dd9]204 <listitem>
[a0ec869]205 <para>The math tests sometimes fail when running on
[9218b05]206 systems where the CPU is not a relatively new Intel or
207 AMD processor.</para>
[6a82dd9]208 </listitem>
[58ccce5]209-->
[6a82dd9]210 </itemizedlist>
211
212 <para>Though it is a harmless message, the install stage of Glibc will
213 complain about the absence of <filename>/etc/ld.so.conf</filename>.
214 Prevent this warning with:</para>
[1caa48e]215
[0445a3d]216<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
[1caa48e]217
[21dd2f0]218 <para>Fix the Makefile to skip an unneeded sanity check
[ffbeb5f]219 that fails in the LFS partial environment:
220 </para>
221
222<screen><userinput remap="install">sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile</userinput></screen>
223
[6a82dd9]224 <para>Install the package:</para>
[73aedd1d]225
[0445a3d]226<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]227
[0ebda11]228 <para>Fix hardcoded path to the executable loader in
229 <command>ldd</command> script:</para>
230
231<screen><userinput remap="install">sed '/RTLDLIST=/s@/usr@@g' -i /usr/bin/ldd</userinput></screen>
232
[4028929]233 <para>Install the configuration file and runtime directory for
234 <command>nscd</command>:</para>
235
[f1dd547]236<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
[4028929]237mkdir -pv /var/cache/nscd</userinput></screen>
238
[d672ab7]239 <para revision="systemd">Install the systemd support files for
[1118b17]240 <command>nscd</command>:</para>
241
242 <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
[d7a9421]243install -v -Dm644 ../nscd/nscd.service /usr/lib/systemd/system/nscd.service</userinput></screen>
[1118b17]244
[d730742]245 <para>Next, install the locales that can make the system respond in a
246 different language. None of the locales are required, but if some of them
247 are missing, the test suites of future packages would skip important
248 testcases.</para>
[6a82dd9]249
250 <para>Individual locales can be installed using the
[a5d31dd]251 <command>localedef</command> program. E.g., the second
[6a82dd9]252 <command>localedef</command> command below combines the
[fffccab]253 <filename>/usr/share/i18n/locales/cs_CZ</filename>
[6a82dd9]254 charset-independent locale definition with the
[fffccab]255 <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
[6a82dd9]256 charmap definition and appends the result to the
257 <filename>/usr/lib/locale/locale-archive</filename> file.
258 The following instructions will install the minimum set of
259 locales necessary for the optimal coverage of tests:</para>
[3f0c882]260
[0445a3d]261<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
[75828c3]262localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
[1e77f0c]263localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
[73aedd1d]264localedef -i de_DE -f ISO-8859-1 de_DE
265localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
[1e77f0c]266localedef -i de_DE -f UTF-8 de_DE.UTF-8
[75828c3]267localedef -i el_GR -f ISO-8859-7 el_GR
[cefe505]268localedef -i en_GB -f ISO-8859-1 en_GB
[e9aabce]269localedef -i en_GB -f UTF-8 en_GB.UTF-8
[73aedd1d]270localedef -i en_HK -f ISO-8859-1 en_HK
271localedef -i en_PH -f ISO-8859-1 en_PH
272localedef -i en_US -f ISO-8859-1 en_US
[3a35b11]273localedef -i en_US -f UTF-8 en_US.UTF-8
[cefe505]274localedef -i es_ES -f ISO-8859-15 es_ES@euro
[73aedd1d]275localedef -i es_MX -f ISO-8859-1 es_MX
[673b0d8]276localedef -i fa_IR -f UTF-8 fa_IR
[73aedd1d]277localedef -i fr_FR -f ISO-8859-1 fr_FR
278localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
[d93d1c90]279localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
[cefe505]280localedef -i is_IS -f ISO-8859-1 is_IS
281localedef -i is_IS -f UTF-8 is_IS.UTF-8
[73aedd1d]282localedef -i it_IT -f ISO-8859-1 it_IT
[cefe505]283localedef -i it_IT -f ISO-8859-15 it_IT@euro
[5b36d32]284localedef -i it_IT -f UTF-8 it_IT.UTF-8
[1e77f0c]285localedef -i ja_JP -f EUC-JP ja_JP
[8dd179b]286localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true
[74f027f]287localedef -i ja_JP -f UTF-8 ja_JP.UTF-8
[cefe505]288localedef -i nl_NL@euro -f ISO-8859-15 nl_NL@euro
[5b36d32]289localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
290localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
[cefe505]291localedef -i se_NO -f UTF-8 se_NO.UTF-8
292localedef -i ta_IN -f UTF-8 ta_IN.UTF-8
[fffccab]293localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
[75828c3]294localedef -i zh_CN -f GB18030 zh_CN.GB18030
[cefe505]295localedef -i zh_HK -f BIG5-HKSCS zh_HK.BIG5-HKSCS
296localedef -i zh_TW -f UTF-8 zh_TW.UTF-8</userinput></screen>
[73aedd1d]297
[6a82dd9]298 <para>In addition, install the locale for your own country, language and
299 character set.</para>
[fa21b3d]300
[6a82dd9]301 <para>Alternatively, install all locales listed in the
302 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
303 (it includes every locale listed above and many more) at once with the
304 following time-consuming command:</para>
[fa21b3d]305
[0445a3d]306<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
[fa21b3d]307
[6a82dd9]308 <para>Then use the <command>localedef</command> command to create and
309 install locales not listed in the
310 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
[49e360b9]311 when you need them. For instance, the following two locales are
312 needed for some tests later in this chapter:</para>
[d672ab7]313
[49e360b9]314<screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
[8dd179b]315localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true</userinput></screen>
[6a82dd9]316
[d672ab7]317 <note><para>Glibc now uses libidn2 when resolving internationalized
[3b03219]318 domain names. This is a run time dependency. If this capability
[d672ab7]319 is needed, the instructions for installing libidn2 are in the
[3b03219]320 <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>.
321 </para></note>
322
[6a82dd9]323 </sect2>
[94aa6621]324
[6a82dd9]325 <sect2 id="conf-glibc" role="configuration">
326 <title>Configuring Glibc</title>
[5888299]327
[6a82dd9]328 <indexterm zone="conf-glibc">
329 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
330 </indexterm>
[81fd230]331
[6a82dd9]332 <indexterm zone="conf-glibc">
333 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
334 </indexterm>
[342b176]335
[a72ca33]336 <sect3>
337 <title>Adding nsswitch.conf</title>
338
[6a82dd9]339 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
[a72ca33]340 because the Glibc defaults do not work well in a networked environment.
341 </para>
[6a82dd9]342
343 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
344 following:</para>
[342b176]345
[bb55064]346<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
[d72e04a]347<literal># Begin /etc/nsswitch.conf
[342b176]348
349passwd: files
350group: files
351shadow: files
352
353hosts: files dns
354networks: files
355
[4a80bec]356protocols: files
357services: files
358ethers: files
359rpc: files
[342b176]360
[d72e04a]361# End /etc/nsswitch.conf</literal>
[bb55064]362EOF</userinput></screen>
[342b176]363
[a72ca33]364 </sect3>
365
366 <sect3>
367 <title>Adding time zone data</title>
368
[edbeeb5]369 <para>Install and set up the time zone data with the following:</para>
[f1dd547]370<screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
[f1c177f]371
[ea31e92]372ZONEINFO=/usr/share/zoneinfo
[2ca8941]373mkdir -pv $ZONEINFO/{posix,right}
[ea31e92]374
375for tz in etcetera southamerica northamerica europe africa antarctica \
[fb95c5c]376 asia australasia backward; do
[082bbce]377 zic -L /dev/null -d $ZONEINFO ${tz}
378 zic -L /dev/null -d $ZONEINFO/posix ${tz}
379 zic -L leapseconds -d $ZONEINFO/right ${tz}
[287a36b4]380done
[f0f7ea0]381
[f1d755b]382cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
[ea31e92]383zic -d $ZONEINFO -p America/New_York
384unset ZONEINFO</userinput></screen>
[f1c177f]385
[7a6bcf9]386 <variablelist>
387 <title>The meaning of the zic commands:</title>
388
389 <varlistentry>
390 <term><parameter>zic -L /dev/null ...</parameter></term>
391 <listitem>
[6dfcfecc]392 <para>This creates posix time zones without any leap seconds. It is
[7a6bcf9]393 conventional to put these in both
394 <filename class="directory">zoneinfo</filename> and
395 <filename class="directory">zoneinfo/posix</filename>. It is
[edbeeb5]396 necessary to put the POSIX time zones in
[7a6bcf9]397 <filename class="directory">zoneinfo</filename>, otherwise various
398 test-suites will report errors. On an embedded system, where space is
[edbeeb5]399 tight and you do not intend to ever update the time zones, you could save
[6dfcfecc]400 1.9 MB by not using the <filename class="directory">posix</filename>
[7bb9fda]401 directory, but some applications or test-suites might produce some
402 failures.</para>
[7a6bcf9]403 </listitem>
404 </varlistentry>
405 <varlistentry>
406 <term><parameter>zic -L leapseconds ...</parameter></term>
407 <listitem>
[edbeeb5]408 <para>This creates right time zones, including leap seconds. On an
[7a6bcf9]409 embedded system, where space is tight and you do not intend to
[edbeeb5]410 ever update the time zones, or care about the correct time, you could
[7a6bcf9]411 save 1.9MB by omitting the <filename class="directory">right</filename>
412 directory.</para>
413 </listitem>
414 </varlistentry>
415 <varlistentry>
416 <term><parameter>zic ... -p ...</parameter></term>
417 <listitem>
[d7f2eb0]418 <para>This creates the <filename>posixrules</filename> file. We use
[cb02946]419 New York because POSIX requires the daylight savings time rules
[e7134f1]420 to be in accordance with US rules.</para>
[7a6bcf9]421 </listitem>
422 </varlistentry>
423 </variablelist>
424
425
426 <para>One way to determine the local time zone is to run the following
[e1060de]427 script:</para>
[342b176]428
[be4be92]429<screen role="nodump"><userinput>tzselect</userinput></screen>
[342b176]430
[6a82dd9]431 <para>After answering a few questions about the location, the script will
[e1060de]432 output the name of the time zone (e.g.,
433 <emphasis>America/Edmonton</emphasis>). There are also some other possible
[edbeeb5]434 time zones listed in <filename
[e1060de]435 class='directory'>/usr/share/zoneinfo</filename> such as
436 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
437 are not identified by the script but can be used.</para>
438
439 <para>Then create the <filename>/etc/localtime</filename> file by
440 running:</para>
[342b176]441
[1daca67]442<screen><userinput>ln -sfv /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
[342b176]443
[e1060de]444 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
445 time zone selected (e.g., Canada/Eastern).</para>
[6a82dd9]446
[a72ca33]447 </sect3>
[6a82dd9]448
[a72ca33]449 <sect3 id="conf-ld" role="configuration">
[6a82dd9]450 <title>Configuring the Dynamic Loader</title>
451
452 <indexterm zone="conf-ld">
453 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
454 </indexterm>
455
456 <para>By default, the dynamic loader (<filename
457 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
458 <filename class="directory">/lib</filename> and <filename
459 class="directory">/usr/lib</filename> for dynamic libraries that are
460 needed by programs as they are run. However, if there are libraries in
461 directories other than <filename class="directory">/lib</filename> and
462 <filename class="directory">/usr/lib</filename>, these need to be added
463 to the <filename>/etc/ld.so.conf</filename> file in order for the
464 dynamic loader to find them. Two directories that are commonly known
465 to contain additional libraries are <filename
466 class="directory">/usr/local/lib</filename> and <filename
467 class="directory">/opt/lib</filename>, so add those directories to the
468 dynamic loader's search path.</para>
469
470 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
471 following:</para>
[342b176]472
[bb55064]473<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[d72e04a]474<literal># Begin /etc/ld.so.conf
[342b176]475/usr/local/lib
476/opt/lib
[50f648b]477</literal>
[bb55064]478EOF</userinput></screen>
[342b176]479
[6dfcfecc]480 <para>If desired, the dynamic loader can also search a directory and
[2ca8941]481 include the contents of files found there. Generally the files in
[50f648b]482 this include directory are one line specifying the desired library path.
483 To add this capability run the following commands:</para>
484
[6dfcfecc]485<screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
[50f648b]486<literal># Add an include directory
487include /etc/ld.so.conf.d/*.conf
488</literal>
489EOF
[3d086301]490mkdir -pv /etc/ld.so.conf.d</userinput></screen>
[50f648b]491
[a72ca33]492 </sect3>
[6a82dd9]493 </sect2>
494
[6dfcfecc]495 <!-- - - - - - - - - - -->
496 <!-- Multilib - 32bit -->
497 <!-- - - - - - - - - - -->
498 <sect2 arch="ml_32,ml_all">
499 <title>Building Glibc - 32bit</title>
500
501 <para>Now recompile for m32. The extracted source can be
[0ebda11]502 reused but needs to be cleaned before installing the m32
[6dfcfecc]503 version of Glibc.</para>
504
505 <para>Clear the build directory and remove artefacts from
506 previous build:</para>
507
508<screen><userinput remap="pre">rm -rf ./*
509find .. -name "*.a" -delete</userinput></screen>
510
511 <para>Configure Glibc for m32 with the following commands:</para>
512
513<screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \
514../configure \
515 --prefix=/usr \
516 --host=i686-pc-linux-gnu \
517 --build=$(../scripts/config.guess) \
518 --enable-kernel=&min-kernel; \
519 --with-headers=/usr/include \
520 --enable-multi-arch \
[0ebda11]521 --libdir=/usr/lib32 \
522 --libexecdir=/usr/lib32 \
[d4b5218]523 libc_cv_slibdir=/usr/lib32</userinput></screen>
[6dfcfecc]524
525 <para>Compile the package:</para>
526
527<screen><userinput remap="make">make</userinput></screen>
528
529 <para>Install the package:</para>
530
531<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
[0ebda11]532cp -a DESTDIR/usr/lib32/* /usr/lib32/
[6dfcfecc]533install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-32.h \
[0ebda11]534 /usr/include/gnu/</userinput></screen>
535<!-- no longer required as they are created in chap5
536ln -svf ../lib32/ld-linux.so.2 /lib/ld-linux.so.2
537-->
[6dfcfecc]538
539 <para>Add the library name to the dynamic loader config:</para>
540
[0ebda11]541<screen role="install"><userinput>echo "/usr/lib32" &gt;&gt; /etc/ld.so.conf</userinput></screen>
[6dfcfecc]542
543 <caution>
544 <para>At this point, it is imperative to stop and ensure that the basic
545 functions (compiling and linking) of the new toolchain are working as
546 expected. To perform a sanity check, run the following commands:</para>
547
548<screen><userinput>echo 'int main(){}' &gt; dummy.c
549gcc -m32 dummy.c
550readelf -l a.out | grep '/ld-linux'</userinput></screen>
551
552 <para>If everything is working correctly, there should be no errors,
553 and the output of the last command will be of the form:</para>
554
555<screen><computeroutput>[Requesting program interpreter: /lib/ld-linux.so.2]</computeroutput></screen>
556
557 <para>If the output is not shown as above or there was no output at all,
558 then something is wrong. Investigate and retrace the steps to find out
559 where the problem is and correct it. This issue must be resolved before
560 continuing on.</para>
561
562 <para>Once all is well, clean up the test files:</para>
563
564<screen><userinput>rm -v dummy.c a.out</userinput></screen>
565
566 </caution>
567
568 </sect2><!-- m32 -->
569
570 <!-- - - - - - - - - - -->
571 <!-- Multilib - x32bit -->
572 <!-- - - - - - - - - - -->
573
574 <sect2 arch="ml_x32,ml_all">
575 <title>Building Glibc - x32bit</title>
576
577 <para>Now recompile for mx32. The extracted source can be
[0ebda11]578 reused but needs to be cleaned before installing the mx32
[6dfcfecc]579 version of Glibc.</para>
580
581 <para>Clear the build directory and remove artefacts from
582 previous build:</para>
583
584<screen><userinput remap="pre">rm -rf ./*
585find .. -name "*.a" -delete</userinput></screen>
586
587 <para>Configure Glibc for mx32 with the following commands:</para>
588
589<screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \
590../configure \
591 --prefix=/usr \
592 --host=x86_64-pc-linux-gnux32 \
593 --build=$(../scripts/config.guess) \
594 --enable-kernel=&min-kernel; \
[0ebda11]595 --with-headers=/usr/include \
[6dfcfecc]596 --enable-multi-arch \
[0ebda11]597 --libdir=/usr/libx32 \
598 --libexecdir=/usr/libx32 \
[d4b5218]599 libc_cv_slibdir=/usr/libx32</userinput></screen>
[6dfcfecc]600
601 <para>Compile the package:</para>
602
603<screen><userinput remap="make">make</userinput></screen>
604
605 <para>Install the package:</para>
606
607<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
[0ebda11]608cp -a DESTDIR/usr/libx32/* /usr/libx32/
[6dfcfecc]609install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-x32.h \
[0ebda11]610 /usr/include/gnu/</userinput></screen>
611<!-- no longer required as they are created in chap5
612ln -svf ../libx32/ld-linux-x32.so.2 /lib/ld-linux-x32.so.2
613-->
[6dfcfecc]614 <para>Add the library name to the dynamic loader config:</para>
615
[0ebda11]616<screen role="install"><userinput>echo "/usr/libx32" &gt;&gt; /etc/ld.so.conf</userinput></screen>
[6dfcfecc]617
618 <caution>
619 <para>At this point, it is imperative to stop and ensure that the basic
620 functions (compiling and linking) of the new toolchain are working as
621 expected. To perform a sanity check, run the following commands:</para>
622
623<screen><userinput>echo 'int main(){}' &gt; dummy.c
624gcc -mx32 dummy.c
625readelf -l a.out | grep '/ld-linux-x32'</userinput></screen>
626
627 <para>If everything is working correctly, there should be no errors,
628 and the output of the last command will be of the form:</para>
629
[d7e0db5]630<screen><computeroutput>[Requesting program interpreter: /libx32/ld-linux-x32.so.2]</computeroutput></screen>
[6dfcfecc]631
632 <para>If the output is not shown as above or there was no output at all,
633 then something is wrong. Investigate and retrace the steps to find out
634 where the problem is and correct it. This issue must be resolved before
635 continuing on.</para>
636
637 <para>Once all is well, clean up the test files:</para>
638
639<screen><userinput>rm -v dummy.c a.out</userinput></screen>
640
641 </caution>
642
643 </sect2><!-- mx32 -->
644
[6a82dd9]645 <sect2 id="contents-glibc" role="content">
646 <title>Contents of Glibc</title>
647
648 <segmentedlist>
649 <segtitle>Installed programs</segtitle>
650 <segtitle>Installed libraries</segtitle>
[fe05b08]651 <segtitle>Installed directories</segtitle>
[6a82dd9]652
653 <seglistitem>
[db3c501]654 <seg>gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[81d3242]655 ldd, lddlibc4,
656 ld.so (symlink to ld-linux-x86-64.so.2 or ld-linux.so.2),
657 locale, localedef, makedb, mtrace, nscd,
[78cc3be]658 pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace,
[6a82dd9]659 zdump, and zic</seg>
[9c7598cc]660 <seg>ld-linux-x86-64.so.2, ld-linux.so.2,
[db3c501]661 libBrokenLocale.{a,so}, libanl.{a,so},
[b7daa52a]662 libc.{a,so}, libc_nonshared.a, libc_malloc_debug.so,
[9c7598cc]663 libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so},
664 libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1,
[78cc3be]665 libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
[9c7598cc]666 libpcprofile.so, libpthread.{a,so.0},
667 libresolv.{a,so}, librt.{a,so.1},
668 libthread_db.so, and libutil.{a,so.1}</seg>
[fe05b08]669 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
670 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
671 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
672 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
673 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
[78cc3be]674 /usr/include/protocols, /usr/include/rpc,
[4028929]675 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
676 /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
[7bb9fda]677 /var/cache/nscd, and /var/lib/nss_db</seg>
[6a82dd9]678 </seglistitem>
679 </segmentedlist>
680
681 <variablelist>
682 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
683 <?dbfo list-presentation="list"?>
684 <?dbhtml list-presentation="table"?>
685
686 <varlistentry id="gencat">
687 <term><command>gencat</command></term>
688 <listitem>
689 <para>Generates message catalogues</para>
690 <indexterm zone="ch-system-glibc gencat">
691 <primary sortas="b-gencat">gencat</primary>
692 </indexterm>
693 </listitem>
694 </varlistentry>
695
696 <varlistentry id="getconf">
697 <term><command>getconf</command></term>
698 <listitem>
699 <para>Displays the system configuration values for file system
700 specific variables</para>
701 <indexterm zone="ch-system-glibc getconf">
702 <primary sortas="b-getconf">getconf</primary>
703 </indexterm>
704 </listitem>
705 </varlistentry>
706
707 <varlistentry id="getent">
708 <term><command>getent</command></term>
709 <listitem>
710 <para>Gets entries from an administrative database</para>
711 <indexterm zone="ch-system-glibc getent">
712 <primary sortas="b-getent">getent</primary>
713 </indexterm>
714 </listitem>
715 </varlistentry>
716
717 <varlistentry id="iconv">
718 <term><command>iconv</command></term>
719 <listitem>
720 <para>Performs character set conversion</para>
721 <indexterm zone="ch-system-glibc iconv">
722 <primary sortas="b-iconv">iconv</primary>
723 </indexterm>
724 </listitem>
725 </varlistentry>
726
727 <varlistentry id="iconvconfig">
728 <term><command>iconvconfig</command></term>
729 <listitem>
730 <para>Creates fastloading <command>iconv</command> module configuration
731 files</para>
732 <indexterm zone="ch-system-glibc iconvconfig">
733 <primary sortas="b-iconvconfig">iconvconfig</primary>
734 </indexterm>
735 </listitem>
736 </varlistentry>
737
738 <varlistentry id="ldconfig">
739 <term><command>ldconfig</command></term>
740 <listitem>
741 <para>Configures the dynamic linker runtime bindings</para>
742 <indexterm zone="ch-system-glibc ldconfig">
743 <primary sortas="b-ldconfig">ldconfig</primary>
744 </indexterm>
745 </listitem>
746 </varlistentry>
747
748 <varlistentry id="ldd">
749 <term><command>ldd</command></term>
750 <listitem>
751 <para>Reports which shared libraries are required
752 by each given program or shared library</para>
753 <indexterm zone="ch-system-glibc ldd">
754 <primary sortas="b-ldd">ldd</primary>
755 </indexterm>
756 </listitem>
757 </varlistentry>
758
759 <varlistentry id="lddlibc4">
760 <term><command>lddlibc4</command></term>
761 <listitem>
[db3c501]762 <para>Assists <command>ldd</command> with object files.
763 It does not exist on newer architectures like x86_64</para>
[6a82dd9]764 <indexterm zone="ch-system-glibc lddlibc4">
765 <primary sortas="b-lddlibc4">lddlibc4</primary>
766 </indexterm>
767 </listitem>
768 </varlistentry>
769
770 <varlistentry id="locale">
771 <term><command>locale</command></term>
772 <listitem>
773 <para>Prints various information about the current locale</para>
774 <indexterm zone="ch-system-glibc locale">
775 <primary sortas="b-locale">locale</primary>
776 </indexterm>
777 </listitem>
778 </varlistentry>
779
780 <varlistentry id="localedef">
781 <term><command>localedef</command></term>
782 <listitem>
783 <para>Compiles locale specifications</para>
784 <indexterm zone="ch-system-glibc localedef">
785 <primary sortas="b-localedef">localedef</primary>
786 </indexterm>
787 </listitem>
788 </varlistentry>
789
[ca101ad]790 <varlistentry id="makedb">
791 <term><command>makedb</command></term>
792 <listitem>
793 <para>Creates a simple database from textual input</para>
794 <indexterm zone="ch-system-glibc makedb">
795 <primary sortas="b-makedb">makedb</primary>
796 </indexterm>
797 </listitem>
798 </varlistentry>
799
[6a82dd9]800 <varlistentry id="mtrace">
801 <term><command>mtrace</command></term>
802 <listitem>
803 <para>Reads and interprets a memory trace file and displays a summary
804 in human-readable format</para>
805 <indexterm zone="ch-system-glibc mtrace">
806 <primary sortas="b-mtrace">mtrace</primary>
807 </indexterm>
808 </listitem>
809 </varlistentry>
810
811 <varlistentry id="nscd">
812 <term><command>nscd</command></term>
813 <listitem>
814 <para>A daemon that provides a cache for the most common name
815 service requests</para>
816 <indexterm zone="ch-system-glibc nscd">
817 <primary sortas="b-nscd">nscd</primary>
818 </indexterm>
819 </listitem>
820 </varlistentry>
[1118b17]821
[78cc3be]822 <varlistentry id="pcprofiledump">
823 <term><command>pcprofiledump</command></term>
824 <listitem>
825 <para>Dump information generated by PC profiling</para>
826 <indexterm zone="ch-system-glibc pcprofiledump">
827 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
828 </indexterm>
829 </listitem>
830 </varlistentry>
831
[ca101ad]832 <varlistentry id="pldd">
833 <term><command>pldd</command></term>
834 <listitem>
835 <para>Lists dynamic shared objects used by running processes</para>
836 <indexterm zone="ch-system-glibc pldd">
837 <primary sortas="b-pldd">pldd</primary>
838 </indexterm>
839 </listitem>
840 </varlistentry>
[1118b17]841
[6a82dd9]842 <varlistentry id="sln">
843 <term><command>sln</command></term>
844 <listitem>
845 <para>A statically linked <command>ln</command> program</para>
846 <indexterm zone="ch-system-glibc sln">
847 <primary sortas="b-sln">sln</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
851
[3119ddc]852 <varlistentry id="sotruss">
853 <term><command>sotruss</command></term>
854 <listitem>
855 <para>Traces shared library procedure calls of a specified command</para>
856 <indexterm zone="ch-system-glibc sotruss">
857 <primary sortas="b-sotruss">sotruss</primary>
858 </indexterm>
859 </listitem>
860 </varlistentry>
861
[6a82dd9]862 <varlistentry id="sprof">
863 <term><command>sprof</command></term>
864 <listitem>
865 <para>Reads and displays shared object profiling data</para>
866 <indexterm zone="ch-system-glibc sprof">
867 <primary sortas="b-sprof">sprof</primary>
868 </indexterm>
869 </listitem>
870 </varlistentry>
871
872 <varlistentry id="tzselect">
873 <term><command>tzselect</command></term>
874 <listitem>
875 <para>Asks the user about the location of the system and reports
876 the corresponding time zone description</para>
877 <indexterm zone="ch-system-glibc tzselect">
878 <primary sortas="b-tzselect">tzselect</primary>
879 </indexterm>
880 </listitem>
881 </varlistentry>
882
883 <varlistentry id="xtrace">
884 <term><command>xtrace</command></term>
885 <listitem>
886 <para>Traces the execution of a program by printing the currently
887 executed function</para>
888 <indexterm zone="ch-system-glibc xtrace">
889 <primary sortas="b-xtrace">xtrace</primary>
890 </indexterm>
891 </listitem>
892 </varlistentry>
893
894 <varlistentry id="zdump">
895 <term><command>zdump</command></term>
896 <listitem>
897 <para>The time zone dumper</para>
898 <indexterm zone="ch-system-glibc zdump">
899 <primary sortas="b-zdump">zdump</primary>
900 </indexterm>
901 </listitem>
902 </varlistentry>
903
904 <varlistentry id="zic">
905 <term><command>zic</command></term>
906 <listitem>
907 <para>The time zone compiler</para>
908 <indexterm zone="ch-system-glibc zic">
909 <primary sortas="b-zic">zic</primary>
910 </indexterm>
911 </listitem>
912 </varlistentry>
913
914 <varlistentry id="ld.so">
[9c7598cc]915 <term><filename class="libraryfile">ld-*.so</filename></term>
[6a82dd9]916 <listitem>
917 <para>The helper program for shared library executables</para>
918 <indexterm zone="ch-system-glibc ld.so">
[5ef820b]919 <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
[6a82dd9]920 </indexterm>
921 </listitem>
922 </varlistentry>
923
924 <varlistentry id="libBrokenLocale">
925 <term><filename class="libraryfile">libBrokenLocale</filename></term>
926 <listitem>
927 <para>Used internally by Glibc as a gross hack to get broken programs
928 (e.g., some Motif applications) running. See comments in
929 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
930 for more information</para>
931 <indexterm zone="ch-system-glibc libBrokenLocale">
932 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
933 </indexterm>
934 </listitem>
935 </varlistentry>
936
937 <varlistentry id="libanl">
938 <term><filename class="libraryfile">libanl</filename></term>
939 <listitem>
940 <para>An asynchronous name lookup library</para>
941 <indexterm zone="ch-system-glibc libanl">
942 <primary sortas="c-libanl">libanl</primary>
943 </indexterm>
944 </listitem>
945 </varlistentry>
946
947 <varlistentry id="libc">
948 <term><filename class="libraryfile">libc</filename></term>
949 <listitem>
950 <para>The main C library</para>
951 <indexterm zone="ch-system-glibc libc">
952 <primary sortas="c-libc">libc</primary>
953 </indexterm>
954 </listitem>
955 </varlistentry>
956
[b7daa52a]957 <varlistentry id="libc_malloc_debug">
958 <term><filename class="libraryfile">libc_malloc_debug</filename></term>
959 <listitem>
960 <para>Turns on memory allocation checking when preloaded</para>
961 <indexterm zone="ch-system-glibc libc_malloc_debug">
962 <primary sortas="c-libc_malloc_debug">libc_malloc_debug</primary>
963 </indexterm>
964 </listitem>
965 </varlistentry>
966
[6a82dd9]967 <varlistentry id="libcrypt">
968 <term><filename class="libraryfile">libcrypt</filename></term>
969 <listitem>
970 <para>The cryptography library</para>
971 <indexterm zone="ch-system-glibc libcrypt">
972 <primary sortas="c-libcrypt">libcrypt</primary>
973 </indexterm>
974 </listitem>
975 </varlistentry>
976
977 <varlistentry id="libdl">
978 <term><filename class="libraryfile">libdl</filename></term>
979 <listitem>
[9c7598cc]980 <para>Dummy library containing no functions. Previously was the
981 dynamic linking interface library, whose functions are now in
982 <filename class="libraryfile">libc</filename></para>
[6a82dd9]983 <indexterm zone="ch-system-glibc libdl">
984 <primary sortas="c-libdl">libdl</primary>
985 </indexterm>
986 </listitem>
987 </varlistentry>
988
989 <varlistentry id="libg">
990 <term><filename class="libraryfile">libg</filename></term>
991 <listitem>
992 <para>Dummy library containing no functions. Previously was a runtime
993 library for <command>g++</command></para>
994 <indexterm zone="ch-system-glibc libg">
995 <primary sortas="c-libg">libg</primary>
996 </indexterm>
997 </listitem>
998 </varlistentry>
999
1000 <varlistentry id="libm">
1001 <term><filename class="libraryfile">libm</filename></term>
1002 <listitem>
1003 <para>The mathematical library</para>
1004 <indexterm zone="ch-system-glibc libm">
1005 <primary sortas="c-libm">libm</primary>
1006 </indexterm>
1007 </listitem>
1008 </varlistentry>
1009
[b7daa52a]1010 <varlistentry id="libmvec">
1011 <term><filename class="libraryfile">libmvec</filename></term>
1012 <listitem>
1013 <para>The vector math library, linked in as needed
1014 when <filename class='libraryfile'>libm</filename> is used</para>
1015 <indexterm zone="ch-system-glibc libmvec">
1016 <primary sortas="c-libmvec">libmvec</primary>
1017 </indexterm>
1018 </listitem>
1019 </varlistentry>
1020
[6a82dd9]1021 <varlistentry id="libmcheck">
1022 <term><filename class="libraryfile">libmcheck</filename></term>
1023 <listitem>
1024 <para>Turns on memory allocation checking when linked to</para>
1025 <indexterm zone="ch-system-glibc libmcheck">
1026 <primary sortas="c-libmcheck">libmcheck</primary>
1027 </indexterm>
1028 </listitem>
1029 </varlistentry>
1030
1031 <varlistentry id="libmemusage">
1032 <term><filename class="libraryfile">libmemusage</filename></term>
1033 <listitem>
1034 <para>Used by <command>memusage</command> to help collect
1035 information about the memory usage of a program</para>
1036 <indexterm zone="ch-system-glibc libmemusage">
1037 <primary sortas="c-libmemusage">libmemusage</primary>
1038 </indexterm>
1039 </listitem>
1040 </varlistentry>
1041
1042 <varlistentry id="libnsl">
1043 <term><filename class="libraryfile">libnsl</filename></term>
1044 <listitem>
[9c7598cc]1045 <para>The network services library, now deprecated</para>
[6a82dd9]1046 <indexterm zone="ch-system-glibc libnsl">
1047 <primary sortas="c-libnsl">libnsl</primary>
1048 </indexterm>
1049 </listitem>
1050 </varlistentry>
1051
1052 <varlistentry id="libnss">
[b7daa52a]1053 <term><filename class="libraryfile">libnss_*</filename></term>
[6a82dd9]1054 <listitem>
[b7daa52a]1055 <para>The Name Service Switch modules, containing functions for
[6a82dd9]1056 resolving host names, user names, group names, aliases, services,
[b7daa52a]1057 protocols, etc. Loaded by
1058 <filename class='libraryfile'>libc</filename> according to the
1059 configuration in <filename>/etc/nsswitch.conf</filename></para>
[6a82dd9]1060 <indexterm zone="ch-system-glibc libnss">
[b7daa52a]1061 <primary sortas="c-libnss">libnss_*</primary>
[6a82dd9]1062 </indexterm>
1063 </listitem>
1064 </varlistentry>
[1118b17]1065
[78cc3be]1066 <varlistentry id="libpcprofile">
1067 <term><filename class="libraryfile">libpcprofile</filename></term>
1068 <listitem>
1069 <para>Can be preloaded to PC profile an executable</para>
1070 <indexterm zone="ch-system-glibc libpcprofile">
1071 <primary sortas="c-libpcprofile">libpcprofile</primary>
1072 </indexterm>
1073 </listitem>
1074 </varlistentry>
1075
[6a82dd9]1076 <varlistentry id="libpthread">
1077 <term><filename class="libraryfile">libpthread</filename></term>
1078 <listitem>
[9c7598cc]1079 <para>Dummy library containing no functions. Previously contained
1080 functions providing most of the interfaces specified
1081 by the POSIX.1b Realtime Extension, now the functions are in
1082 <filename class="libraryfile">libc</filename></para>
[6a82dd9]1083 <indexterm zone="ch-system-glibc libpthread">
1084 <primary sortas="c-libpthread">libpthread</primary>
1085 </indexterm>
1086 </listitem>
1087 </varlistentry>
1088
1089 <varlistentry id="libresolv">
1090 <term><filename class="libraryfile">libresolv</filename></term>
1091 <listitem>
1092 <para>Contains functions for creating, sending, and interpreting
1093 packets to the Internet domain name servers</para>
1094 <indexterm zone="ch-system-glibc libresolv">
1095 <primary sortas="c-libresolv">libresolv</primary>
1096 </indexterm>
1097 </listitem>
1098 </varlistentry>
1099
1100 <varlistentry id="librt">
1101 <term><filename class="libraryfile">librt</filename></term>
1102 <listitem>
1103 <para>Contains functions providing most of the interfaces specified
1104 by the POSIX.1b Realtime Extension</para>
1105 <indexterm zone="ch-system-glibc librt">
1106 <primary sortas="c-librt">librt</primary>
1107 </indexterm>
1108 </listitem>
1109 </varlistentry>
1110
1111 <varlistentry id="libthread_db">
1112 <term><filename class="libraryfile">libthread_db</filename></term>
1113 <listitem>
1114 <para>Contains functions useful for building debuggers for
1115 multi-threaded programs</para>
1116 <indexterm zone="ch-system-glibc libthread_db">
1117 <primary sortas="c-libthread_db">libthread_db</primary>
1118 </indexterm>
1119 </listitem>
1120 </varlistentry>
1121
1122 <varlistentry id="libutil">
1123 <term><filename class="libraryfile">libutil</filename></term>
1124 <listitem>
[99b2938]1125 <para>Dummy library containing no functions. Previously contained
[9c7598cc]1126 code for <quote>standard</quote> functions used in
1127 many different Unix utilities. These functions are now in
1128 <filename class="libraryfile">libc</filename></para>
[6a82dd9]1129 <indexterm zone="ch-system-glibc libutil">
1130 <primary sortas="c-libutil">libutil</primary>
1131 </indexterm>
1132 </listitem>
1133 </varlistentry>
1134
1135 </variablelist>
1136
1137 </sect2>
[673b0d8]1138
1139</sect1>
Note: See TracBrowser for help on using the repository browser.