source: chapter08/glibc.xml@ 16e9e78

multilib xry111/multilib
Last change on this file since 16e9e78 was 2248715, checked in by Thomas Trepl <thomas@…>, 16 months ago

Automatic merge of trunk into multilib

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