source: chapter08/glibc.xml@ 44d31a7

multilib
Last change on this file since 44d31a7 was cf9ba3c, checked in by Thomas Trepl <thomas@…>, 11 months ago

Automatic merge of trunk into multilib

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