source: chapter08/glibc.xml@ 77f8d57

multilib
Last change on this file since 77f8d57 was 051c160, checked in by Thomas Trepl (Moody) <thomas@…>, 2 years ago

Automatic merge of trunk into multilib

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