source: chapter08/glibc.xml@ 6f86139

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