[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[cbbd1e4] | 8 | <sect1 id="ch-system-glibc" role="wrap">
|
---|
| 9 | <?dbhtml filename="glibc.html"?>
|
---|
[3f8be484] | 10 |
|
---|
[d785e9d] | 11 | <title>Glibc-&glibc-version;</title>
|
---|
[3f8be484] | 12 |
|
---|
[cbbd1e4] | 13 | <indexterm zone="ch-system-glibc">
|
---|
[d785e9d] | 14 | <primary sortas="a-Glibc">Glibc</primary>
|
---|
[3f8be484] | 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[d785e9d] | 20 | <para>The Glibc package contains the main C library. This library provides
|
---|
[3f8be484] | 21 | the basic routines for allocating memory, searching directories, opening and
|
---|
| 22 | closing files, reading and writing files, string handling, pattern matching,
|
---|
| 23 | arithmetic, and so on.</para>
|
---|
| 24 |
|
---|
| 25 | </sect2>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="installation">
|
---|
[d785e9d] | 28 | <title>Installation of Glibc</title>
|
---|
[3f8be484] | 29 |
|
---|
| 30 | <note os="z">
|
---|
[a1fb12f] | 31 | <para>Some packages outside of CLFS suggest installing GNU libiconv in
|
---|
[3f8be484] | 32 | order to translate data from one encoding to another. The project's
|
---|
| 33 | home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
|
---|
| 34 | <quote>This library provides an <function>iconv()</function>
|
---|
| 35 | implementation, for use on systems which don't have one, or whose
|
---|
[d785e9d] | 36 | implementation cannot convert from/to Unicode.</quote> Glibc provides
|
---|
[3f8be484] | 37 | an <function>iconv()</function> implementation and can convert from/to
|
---|
[a1fb12f] | 38 | Unicode, therefore libiconv is not required on a CLFS system.</para>
|
---|
[3f8be484] | 39 | </note>
|
---|
| 40 |
|
---|
[22cd957] | 41 | <para os="l1">At the end of the installation, the build system will run
|
---|
[74592cf] | 42 | a sanity test to make sure everything installed properly. This script
|
---|
| 43 | performs its tests by attempting to compile test programs against certain
|
---|
| 44 | libraries. However it does not specify the path to
|
---|
| 45 | <filename class="libraryfile">ld.so</filename>, and our toolchain
|
---|
[4d9d90c] | 46 | is still configured to use the one in
|
---|
| 47 | <filename class="directory">/tools</filename>. The following set of
|
---|
| 48 | commands will force the script to use the complete path of the new
|
---|
| 49 | <filename class="libraryfile">ld.so</filename> that was just installed:</para>
|
---|
[22cd957] | 50 |
|
---|
[74592cf] | 51 | <screen os="l2"><userinput>LINKER=$(readelf -l /tools/bin/bash | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
|
---|
[d8f87e8] | 52 | sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
|
---|
| 53 | scripts/test-installation.pl
|
---|
| 54 | unset LINKER</userinput></screen>
|
---|
| 55 |
|
---|
[d785e9d] | 56 | <para os="b">The Glibc build system is self-contained and will install
|
---|
[3f8be484] | 57 | perfectly, even though the compiler specs file and linker are still
|
---|
| 58 | pointing at <filename class="directory">/tools</filename>. The specs
|
---|
[d785e9d] | 59 | and linker cannot be adjusted before the Glibc install because the
|
---|
| 60 | Glibc Autoconf tests would give false results and defeat the goal
|
---|
[3f8be484] | 61 | of achieving a clean build.</para>
|
---|
| 62 |
|
---|
[d785e9d] | 63 | <para os="e">The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para>
|
---|
[3f8be484] | 64 |
|
---|
[cbbd1e4] | 65 | <screen os="f"><userinput>mkdir -v ../glibc-build
|
---|
| 66 | cd ../glibc-build</userinput></screen>
|
---|
[3f8be484] | 67 |
|
---|
[d785e9d] | 68 | <para os="g">Prepare Glibc for compilation:</para>
|
---|
[3f8be484] | 69 |
|
---|
[b27081c4] | 70 | <screen os="h"><userinput>../glibc-&glibc-version;/configure \
|
---|
| 71 | --prefix=/usr \
|
---|
| 72 | --enable-kernel=&glibc-kernel-version; \
|
---|
| 73 | --libexecdir=/usr/lib/glibc \
|
---|
[52ed4da] | 74 | --enable-obsolete-rpc</userinput></screen>
|
---|
[3f8be484] | 75 |
|
---|
| 76 | <variablelist os="i">
|
---|
| 77 | <title>The meaning of the new configure option:</title>
|
---|
| 78 |
|
---|
| 79 | <varlistentry>
|
---|
[cbbd1e4] | 80 | <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
|
---|
[3f8be484] | 81 | <listitem>
|
---|
[aabf475b] | 82 | <para>This changes the location for hard links to the
|
---|
| 83 | <command>getconf</command> utility from their default of <filename
|
---|
[3f8be484] | 84 | class="directory">/usr/libexec</filename> to <filename
|
---|
[cbbd1e4] | 85 | class="directory">/usr/lib/glibc</filename>.</para>
|
---|
[3f8be484] | 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
| 88 | </variablelist>
|
---|
| 89 |
|
---|
| 90 | <para os="j">Compile the package:</para>
|
---|
| 91 |
|
---|
| 92 | <screen os="k"><userinput>make</userinput></screen>
|
---|
| 93 |
|
---|
| 94 | <important os="l">
|
---|
[eb21c92] | 95 | <para>Due to Glibc's critical role in a properly functioning system,
|
---|
| 96 | the CLFS developers strongly recommend running the testsuite.</para>
|
---|
[3f8be484] | 97 | </important>
|
---|
| 98 |
|
---|
[33346dd] | 99 | <para os="m">Use the following commands to run the test suite and output
|
---|
[37957f4] | 100 | any test failures:</para>
|
---|
[3f8be484] | 101 |
|
---|
| 102 | <!-- items n,o,p no longer the master, use x86_64 which has no failures -->
|
---|
| 103 |
|
---|
[e67e858] | 104 | <screen os="n"><userinput remap="test">make check</userinput></screen>
|
---|
[3f8be484] | 105 |
|
---|
[d785e9d] | 106 | <para os="o">The Glibc test suite is highly dependent on certain functions of
|
---|
[767a2a5] | 107 | the host system, in particular the kernel. The <emphasis>posix/annexc</emphasis> and
|
---|
| 108 | <emphasis>conform/run-conformtest</emphasis> tests normally fail
|
---|
[10b2850] | 109 | and you should see <literal>Error 1 (ignored)</literal> in the output. Apart
|
---|
[d785e9d] | 110 | from this, the Glibc test suite is always expected to pass. However, in certain
|
---|
[10b2850] | 111 | circumstances, some failures are unavoidable. If a test fails because of a missing
|
---|
| 112 | program (or missing symbolic link), or a segfault, you will see an error code
|
---|
| 113 | greater than 127 and the details will be in the log. More commonly, tests will
|
---|
| 114 | fail with <literal>Error 2</literal> - for these, the contents of the corresponding
|
---|
| 115 | <filename>.out</filename> file, e.g. <filename>posix/annexc.out</filename> may be
|
---|
| 116 | informative. Here is a list of the most common issues:</para>
|
---|
[3f8be484] | 117 |
|
---|
| 118 | <itemizedlist os="p">
|
---|
[767a2a5] | 119 | <listitem>
|
---|
| 120 | <para>The <emphasis>nptl/tst-clock2</emphasis>,
|
---|
| 121 | <emphasis>nptl/tst-attr3</emphasis>,
|
---|
| 122 | <emphasis>tst/tst-cputimer1</emphasis>, and
|
---|
| 123 | <emphasis>rt/tst-cpuclock2</emphasis>
|
---|
| 124 | tests have been known to fail. The
|
---|
| 125 | reason is not completely understood, but indications are that minor
|
---|
| 126 | timing issues can trigger these failures.</para>
|
---|
| 127 | </listitem>
|
---|
[3f8be484] | 128 | <listitem>
|
---|
[3514708] | 129 | <para>The <emphasis>math</emphasis> tests sometimes fail.
|
---|
| 130 | Certain optimization settings are known to be a
|
---|
| 131 | factor here.</para>
|
---|
[3f8be484] | 132 | </listitem>
|
---|
| 133 | <listitem>
|
---|
[fb40919] | 134 | <para>If you have mounted the CLFS partition with the
|
---|
[3f8be484] | 135 | <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test
|
---|
| 136 | will fail. As mentioned in <xref linkend="ch-partitioning-mounting"/>,
|
---|
| 137 | do not use the <parameter>noatime</parameter> option while building
|
---|
[fb40919] | 138 | CLFS.</para>
|
---|
[3f8be484] | 139 | </listitem>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>When running on older and slower hardware, some tests
|
---|
[767a2a5] | 142 | can fail because of test timeouts being exceeded.
|
---|
| 143 | Modifying the make check command to set a TIMEOUTFACTOR is reported to
|
---|
| 144 | help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16
|
---|
| 145 | make -k check</command>).</para>
|
---|
| 146 | </listitem>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>posix/tst-getaddrinfo4 will always fail due to not having a network
|
---|
| 149 | connection when the test is run.</para>
|
---|
[3f8be484] | 150 | </listitem>
|
---|
| 151 | </itemizedlist>
|
---|
| 152 |
|
---|
[d785e9d] | 153 | <para os="q">Though it is a harmless message, the install stage of Glibc will
|
---|
[3f8be484] | 154 | complain about the absence of <filename>/etc/ld.so.conf</filename>.
|
---|
| 155 | Prevent this warning with:</para>
|
---|
| 156 |
|
---|
| 157 | <screen os="r"><userinput>touch /etc/ld.so.conf</userinput></screen>
|
---|
| 158 |
|
---|
[e57ce38] | 159 | <para os="s">Install the package, and remove unneeded files from
|
---|
| 160 | <filename class="directory">/usr/include/rpcsvc</filename>:</para>
|
---|
[3f8be484] | 161 |
|
---|
[e57ce38] | 162 | <screen os="t"><userinput>make install &&
|
---|
| 163 | rm -v /usr/include/rpcsvc/*.x</userinput></screen>
|
---|
[3f8be484] | 164 |
|
---|
[cf9aa7e] | 165 | <para os="u">Install the configuration file and runtime directory for
|
---|
[dff9ef7] | 166 | <command>nscd</command>:</para>
|
---|
[cf9aa7e] | 167 |
|
---|
[fde0426] | 168 | <screen os="v"><userinput>cp -v ../glibc-&glibc-version;/nscd/nscd.conf /etc/nscd.conf
|
---|
[cf9aa7e] | 169 | mkdir -pv /var/cache/nscd</userinput></screen>
|
---|
| 170 |
|
---|
[77e1959e] | 171 | <para os="w">Install the systemd support files for <command>nscd</command>:</para>
|
---|
| 172 |
|
---|
[fde0426] | 173 | <screen os="x"><userinput>install -v -Dm644 ../glibc-&glibc-version;/nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
|
---|
| 174 | install -v -Dm644 ../glibc-&glibc-version;/nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen>
|
---|
[77e1959e] | 175 |
|
---|
[3f8be484] | 176 | </sect2>
|
---|
| 177 |
|
---|
[cbbd1e4] | 178 | <sect2 id="i18n-glibc" role="configuration">
|
---|
[3f8be484] | 179 | <title>Internationalization</title>
|
---|
| 180 |
|
---|
| 181 | <para>The locales that can make the system respond in a different
|
---|
[5a321cb] | 182 | language were not installed by the above command. Install them
|
---|
[3f8be484] | 183 | with:</para>
|
---|
| 184 |
|
---|
| 185 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
| 186 |
|
---|
| 187 | <para>To save time, an alternative to running the previous command (which
|
---|
[643f8be] | 188 | generates and installs every locale listed in the
|
---|
[cbbd1e4] | 189 | <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file) is
|
---|
[e7aadbe] | 190 | to install only those locales that are wanted and needed. This can be
|
---|
| 191 | achieved by using the <command>localedef</command> command. Information on
|
---|
| 192 | this command is located in the <filename>INSTALL</filename> file in the
|
---|
[d785e9d] | 193 | Glibc source. However, there are a number of locales that are essential in
|
---|
[e7aadbe] | 194 | order for the tests of future packages to pass, in particular, the
|
---|
[3f8be484] | 195 | <emphasis>libstdc++</emphasis> tests from GCC. The following instructions,
|
---|
| 196 | instead of the <parameter>install-locales</parameter> target used above,
|
---|
| 197 | will install the minimum set of locales necessary for the tests to run
|
---|
| 198 | successfully:</para>
|
---|
| 199 |
|
---|
[3a3e135] | 200 | <screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
|
---|
[8a10f1c] | 201 | localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
|
---|
[3f8be484] | 202 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
| 203 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
| 204 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
| 205 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
| 206 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
| 207 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
| 208 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
| 209 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
| 210 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
| 211 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
| 212 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
| 213 |
|
---|
| 214 | <para>Some locales installed by the <command>make
|
---|
| 215 | localedata/install-locales</command> command above are not properly
|
---|
[e3a8717] | 216 | supported by some applications that are in CLFS and CBLFS. Because
|
---|
[3f8be484] | 217 | of the various problems that arise due to application programmers making
|
---|
[fb40919] | 218 | assumptions that break in such locales, CLFS should not be used in locales
|
---|
[3f8be484] | 219 | that utilize multibyte character sets (including UTF-8) or right-to-left
|
---|
| 220 | writing order. Numerous unofficial and unstable patches are required to
|
---|
[fb40919] | 221 | fix these problems, and it has been decided by the CLFS developers not to
|
---|
[643f8be] | 222 | support such complex locales at this time. This applies to the ja_JP and
|
---|
| 223 | fa_IR locales as well—they have been installed only for GCC and
|
---|
| 224 | Gettext tests to pass, and the <command>watch</command> program (part of
|
---|
[8184788] | 225 | the Procps-ng package) does not work properly in them. Various attempts to
|
---|
[643f8be] | 226 | circumvent these restrictions are documented in internationalization-related
|
---|
| 227 | hints.</para>
|
---|
[3f8be484] | 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
[cbbd1e4] | 231 | <sect2 id="conf-glibc" role="configuration">
|
---|
[d785e9d] | 232 | <title>Configuring Glibc</title>
|
---|
[3f8be484] | 233 |
|
---|
[cbbd1e4] | 234 | <indexterm zone="conf-glibc">
|
---|
[3f8be484] | 235 | <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 |
|
---|
[cbbd1e4] | 238 | <indexterm zone="conf-glibc">
|
---|
[3f8be484] | 239 | <primary sortas="e-/etc/localtime">/etc/localtime</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 |
|
---|
| 242 | <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
|
---|
[d785e9d] | 243 | because, although Glibc provides defaults when this file is missing or
|
---|
| 244 | corrupt, the Glibc defaults do not work well in a networked environment.
|
---|
[3f8be484] | 245 | The time zone also needs to be configured.</para>
|
---|
| 246 |
|
---|
| 247 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running
|
---|
| 248 | the following:</para>
|
---|
| 249 |
|
---|
| 250 | <screen><userinput>cat > /etc/nsswitch.conf << "EOF"
|
---|
| 251 | <literal># Begin /etc/nsswitch.conf
|
---|
| 252 |
|
---|
| 253 | passwd: files
|
---|
| 254 | group: files
|
---|
| 255 | shadow: files
|
---|
| 256 |
|
---|
| 257 | hosts: files dns
|
---|
| 258 | networks: files
|
---|
| 259 |
|
---|
| 260 | protocols: files
|
---|
| 261 | services: files
|
---|
| 262 | ethers: files
|
---|
| 263 | rpc: files
|
---|
| 264 |
|
---|
| 265 | # End /etc/nsswitch.conf</literal>
|
---|
| 266 | EOF</userinput></screen>
|
---|
| 267 |
|
---|
[52ed4da] | 268 | <para>Install timezone data:</para>
|
---|
| 269 | <screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
|
---|
| 270 |
|
---|
| 271 | ZONEINFO=/usr/share/zoneinfo
|
---|
| 272 | mkdir -pv $ZONEINFO/{posix,right}
|
---|
| 273 |
|
---|
[80c037c] | 274 | for tz in etcetera southamerica northamerica europe africa antarctica \
|
---|
[c493aa56] | 275 | asia australasia backward pacificnew systemv; do
|
---|
[52ed4da] | 276 | zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
|
---|
| 277 | zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
|
---|
| 278 | zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
|
---|
| 279 | done
|
---|
| 280 |
|
---|
[c493aa56] | 281 | cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
|
---|
[52ed4da] | 282 | zic -d $ZONEINFO -p America/New_York
|
---|
| 283 | unset ZONEINFO</userinput></screen>
|
---|
| 284 |
|
---|
| 285 | <variablelist>
|
---|
| 286 | <title>The meaning of the zic commands:</title>
|
---|
| 287 |
|
---|
| 288 | <varlistentry>
|
---|
| 289 | <term><parameter>zic -L /dev/null ...</parameter></term>
|
---|
| 290 | <listitem>
|
---|
| 291 | <para>This creates posix timezones, without any leap seconds. It is
|
---|
| 292 | conventional to put these in both
|
---|
| 293 | <filename class="directory">zoneinfo</filename> and
|
---|
| 294 | <filename class="directory">zoneinfo/posix</filename>. It is
|
---|
| 295 | necessary to put the POSIX timezones in
|
---|
| 296 | <filename class="directory">zoneinfo</filename>, otherwise various
|
---|
| 297 | test-suites will report errors. On an embedded system, where space is
|
---|
| 298 | tight and you do not intend to ever update the timezones, you could save
|
---|
| 299 | 1.9MB by not using the <filename class="directory">posix</filename>
|
---|
| 300 | directory, but some applications or test-suites might give less good
|
---|
| 301 | results</para>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 | <varlistentry>
|
---|
| 305 | <term><parameter>zic -L leapseconds ...</parameter></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>This creates right timezones, including leap seconds. On an
|
---|
| 308 | embedded system, where space is tight and you do not intend to
|
---|
| 309 | ever update the timezones, or care about the correct time, you could
|
---|
| 310 | save 1.9MB by omitting the <filename class="directory">right</filename>
|
---|
| 311 | directory.</para>
|
---|
| 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
| 314 | <varlistentry>
|
---|
| 315 | <term><parameter>zic ... -p ...</parameter></term>
|
---|
| 316 | <listitem>
|
---|
| 317 | <para>This creates the <filename>posixrules</filename> file. We use
|
---|
| 318 | New York because POSIX requires the daylight savings time rules
|
---|
| 319 | to be in accordance with US rules.</para>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 | </variablelist>
|
---|
| 323 |
|
---|
[3f8be484] | 324 | <para>To determine the local time zone, run the following script:</para>
|
---|
| 325 |
|
---|
[0f3854e] | 326 | <screen role="nodump"><userinput>tzselect</userinput></screen>
|
---|
[3f8be484] | 327 |
|
---|
| 328 | <para>After answering a few questions about the location, the script will
|
---|
| 329 | output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
|
---|
| 330 | <emphasis>Canada/Eastern</emphasis>). Then create the
|
---|
| 331 | <filename>/etc/localtime</filename> file by running:</para>
|
---|
| 332 |
|
---|
[63cad62f] | 333 | <screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
|
---|
[3f8be484] | 334 | /etc/localtime</userinput></screen>
|
---|
| 335 |
|
---|
| 336 | <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
|
---|
| 337 | that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
|
---|
| 338 |
|
---|
| 339 | </sect2>
|
---|
| 340 |
|
---|
| 341 | <sect2 id="conf-ld" role="configuration">
|
---|
[0b637f1] | 342 | <title>Configuring The Dynamic Loader</title>
|
---|
[3f8be484] | 343 |
|
---|
| 344 | <indexterm zone="conf-ld">
|
---|
| 345 | <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 |
|
---|
[3998188] | 348 | <para os="ld-a">By default, the dynamic loader (<filename
|
---|
[3f8be484] | 349 | class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
|
---|
| 350 | <filename class="directory">/lib</filename> and <filename
|
---|
| 351 | class="directory">/usr/lib</filename> for dynamic libraries that are
|
---|
| 352 | needed by programs as they are run. However, if there are libraries in
|
---|
| 353 | directories other than <filename class="directory">/lib</filename> and
|
---|
| 354 | <filename class="directory">/usr/lib</filename>, these need to be
|
---|
| 355 | added to the <filename>/etc/ld.so.conf</filename> file in order
|
---|
| 356 | for the dynamic loader to find them. Two directories that are commonly
|
---|
| 357 | known to contain additional libraries are <filename
|
---|
| 358 | class="directory">/usr/local/lib</filename> and <filename
|
---|
| 359 | class="directory">/opt/lib</filename>, so add those directories to the
|
---|
| 360 | dynamic loader's search path.</para>
|
---|
| 361 |
|
---|
[3998188] | 362 | <para os="ld-b">Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
[3f8be484] | 363 | following:</para>
|
---|
| 364 |
|
---|
[3998188] | 365 | <screen os="ld-c"><userinput>cat > /etc/ld.so.conf << "EOF"
|
---|
[3f8be484] | 366 | <literal># Begin /etc/ld.so.conf
|
---|
| 367 |
|
---|
| 368 | /usr/local/lib
|
---|
| 369 | /opt/lib
|
---|
| 370 |
|
---|
| 371 | # End /etc/ld.so.conf</literal>
|
---|
| 372 | EOF</userinput></screen>
|
---|
| 373 |
|
---|
| 374 | </sect2>
|
---|
| 375 |
|
---|
[cbbd1e4] | 376 | <sect2 id="contents-glibc" role="content">
|
---|
[d785e9d] | 377 | <title>Contents of Glibc</title>
|
---|
[3f8be484] | 378 |
|
---|
| 379 | <segmentedlist>
|
---|
| 380 | <segtitle>Installed programs</segtitle>
|
---|
| 381 | <segtitle>Installed libraries</segtitle>
|
---|
[61ad0b7f] | 382 | <segtitle>Installed directories</segtitle>
|
---|
[3f8be484] | 383 |
|
---|
| 384 | <seglistitem>
|
---|
| 385 | <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
|
---|
[2b220db9] | 386 | ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
|
---|
[6d3523f] | 387 | pcprofiledump, pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
|
---|
[c2102b28] | 388 | zdump, zic</seg>
|
---|
[3f8be484] | 389 | <seg>ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so],
|
---|
[aeb5c611] | 390 | libc.[a,so], libc_nonshared.a, libcidn.[a,so], libcrypt.[a,so],
|
---|
| 391 | libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
|
---|
| 392 | libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so,
|
---|
[188b6b2] | 393 | libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so,
|
---|
| 394 | libpcprofile.so, libpthread.[a,so], libpthread_nonshared.a,
|
---|
[c2102b28] | 395 | libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so,
|
---|
[3f8be484] | 396 | libutil.[a,so]</seg>
|
---|
[61ad0b7f] | 397 | <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
|
---|
| 398 | /usr/include/net, /usr/include/netash, /usr/include/netatalk,
|
---|
| 399 | /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
|
---|
| 400 | /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
|
---|
| 401 | /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
|
---|
| 402 | /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
|
---|
[b266943] | 403 | /usr/include/scsi, /usr/include/sys, /usr/lib/audit, /usr/lib/gconv,
|
---|
| 404 | /usr/lib/glibc, /usr/lib/locale, /usr/share/i18n, /usr/share/zoneinfo,
|
---|
| 405 | /var/cache/ldconfig, /var/cache/nscd</seg>
|
---|
[3f8be484] | 406 | </seglistitem>
|
---|
| 407 | </segmentedlist>
|
---|
| 408 |
|
---|
| 409 | <variablelist>
|
---|
| 410 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 411 | <?dbfo list-presentation="list"?>
|
---|
| 412 | <?dbhtml list-presentation="table"?>
|
---|
| 413 |
|
---|
| 414 | <varlistentry id="catchsegv">
|
---|
| 415 | <term><command>catchsegv</command></term>
|
---|
| 416 | <listitem>
|
---|
| 417 | <para>Can be used to create a stack trace when a program
|
---|
| 418 | terminates with a segmentation fault</para>
|
---|
[cbbd1e4] | 419 | <indexterm zone="ch-system-glibc catchsegv">
|
---|
[3f8be484] | 420 | <primary sortas="b-catchsegv">catchsegv</primary>
|
---|
| 421 | </indexterm>
|
---|
| 422 | </listitem>
|
---|
| 423 | </varlistentry>
|
---|
| 424 |
|
---|
| 425 | <varlistentry id="gencat">
|
---|
| 426 | <term><command>gencat</command></term>
|
---|
| 427 | <listitem>
|
---|
| 428 | <para>Generates message catalogues</para>
|
---|
[cbbd1e4] | 429 | <indexterm zone="ch-system-glibc gencat">
|
---|
[3f8be484] | 430 | <primary sortas="b-gencat">gencat</primary>
|
---|
| 431 | </indexterm>
|
---|
| 432 | </listitem>
|
---|
| 433 | </varlistentry>
|
---|
| 434 |
|
---|
| 435 | <varlistentry id="getconf">
|
---|
| 436 | <term><command>getconf</command></term>
|
---|
| 437 | <listitem>
|
---|
| 438 | <para>Displays the system configuration values for file system specific
|
---|
| 439 | variables</para>
|
---|
[cbbd1e4] | 440 | <indexterm zone="ch-system-glibc getconf">
|
---|
[3f8be484] | 441 | <primary sortas="b-getconf">getconf</primary>
|
---|
| 442 | </indexterm>
|
---|
| 443 | </listitem>
|
---|
| 444 | </varlistentry>
|
---|
| 445 |
|
---|
| 446 | <varlistentry id="getent">
|
---|
| 447 | <term><command>getent</command></term>
|
---|
| 448 | <listitem>
|
---|
| 449 | <para>Gets entries from an administrative database</para>
|
---|
[cbbd1e4] | 450 | <indexterm zone="ch-system-glibc getent">
|
---|
[3f8be484] | 451 | <primary sortas="b-getent">getent</primary>
|
---|
| 452 | </indexterm>
|
---|
| 453 | </listitem>
|
---|
| 454 | </varlistentry>
|
---|
| 455 |
|
---|
| 456 | <varlistentry id="iconv">
|
---|
| 457 | <term><command>iconv</command></term>
|
---|
| 458 | <listitem>
|
---|
| 459 | <para>Performs character set conversion</para>
|
---|
[cbbd1e4] | 460 | <indexterm zone="ch-system-glibc iconv">
|
---|
[3f8be484] | 461 | <primary sortas="b-iconv">iconv</primary>
|
---|
| 462 | </indexterm>
|
---|
| 463 | </listitem>
|
---|
| 464 | </varlistentry>
|
---|
| 465 |
|
---|
| 466 | <varlistentry id="iconvconfig">
|
---|
| 467 | <term><command>iconvconfig</command></term>
|
---|
| 468 | <listitem>
|
---|
| 469 | <para>Creates fastloading <command>iconv</command> module configuration
|
---|
| 470 | files</para>
|
---|
[cbbd1e4] | 471 | <indexterm zone="ch-system-glibc iconvconfig">
|
---|
[3f8be484] | 472 | <primary sortas="b-iconvconfig">iconvconfig</primary>
|
---|
| 473 | </indexterm>
|
---|
| 474 | </listitem>
|
---|
| 475 | </varlistentry>
|
---|
| 476 |
|
---|
| 477 | <varlistentry id="ldconfig">
|
---|
| 478 | <term><command>ldconfig</command></term>
|
---|
| 479 | <listitem>
|
---|
| 480 | <para>Configures the dynamic linker runtime bindings</para>
|
---|
[cbbd1e4] | 481 | <indexterm zone="ch-system-glibc ldconfig">
|
---|
[3f8be484] | 482 | <primary sortas="b-ldconfig">ldconfig</primary>
|
---|
| 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 |
|
---|
| 487 | <varlistentry id="ldd">
|
---|
| 488 | <term><command>ldd</command></term>
|
---|
| 489 | <listitem>
|
---|
| 490 | <para>Reports which shared libraries are required
|
---|
| 491 | by each given program or shared library</para>
|
---|
[cbbd1e4] | 492 | <indexterm zone="ch-system-glibc ldd">
|
---|
[3f8be484] | 493 | <primary sortas="b-ldd">ldd</primary>
|
---|
| 494 | </indexterm>
|
---|
| 495 | </listitem>
|
---|
| 496 | </varlistentry>
|
---|
| 497 |
|
---|
| 498 | <varlistentry id="lddlibc4">
|
---|
| 499 | <term><command>lddlibc4</command></term>
|
---|
| 500 | <listitem>
|
---|
| 501 | <para>Assists <command>ldd</command> with object files</para>
|
---|
[cbbd1e4] | 502 | <indexterm zone="ch-system-glibc lddlibc4">
|
---|
[3f8be484] | 503 | <primary sortas="b-lddlibc4">lddlibc4</primary>
|
---|
| 504 | </indexterm>
|
---|
| 505 | </listitem>
|
---|
| 506 | </varlistentry>
|
---|
| 507 |
|
---|
| 508 | <varlistentry id="locale">
|
---|
| 509 | <term><command>locale</command></term>
|
---|
| 510 | <listitem>
|
---|
| 511 | <para>Tells the compiler to enable or disable the use of POSIX locales
|
---|
| 512 | for built-in operations</para>
|
---|
[cbbd1e4] | 513 | <indexterm zone="ch-system-glibc locale">
|
---|
[3f8be484] | 514 | <primary sortas="b-locale">locale</primary>
|
---|
| 515 | </indexterm>
|
---|
| 516 | </listitem>
|
---|
| 517 | </varlistentry>
|
---|
| 518 |
|
---|
| 519 | <varlistentry id="localedef">
|
---|
| 520 | <term><command>localedef</command></term>
|
---|
| 521 | <listitem>
|
---|
| 522 | <para>Compiles locale specifications</para>
|
---|
[cbbd1e4] | 523 | <indexterm zone="ch-system-glibc localedef">
|
---|
[3f8be484] | 524 | <primary sortas="b-localedef">localedef</primary>
|
---|
| 525 | </indexterm>
|
---|
| 526 | </listitem>
|
---|
| 527 | </varlistentry>
|
---|
| 528 |
|
---|
[2b220db9] | 529 | <varlistentry id="makedb">
|
---|
| 530 | <term><command>makedb</command></term>
|
---|
| 531 | <listitem>
|
---|
| 532 | <para>Creates a simple database from textual input</para>
|
---|
[cbbd1e4] | 533 | <indexterm zone="ch-system-glibc makedb">
|
---|
[2b220db9] | 534 | <primary sortas="b-makedb">makedb</primary>
|
---|
| 535 | </indexterm>
|
---|
| 536 | </listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
[3f8be484] | 539 | <varlistentry id="mtrace">
|
---|
| 540 | <term><command>mtrace</command></term>
|
---|
| 541 | <listitem>
|
---|
| 542 | <para>Reads and interprets a memory trace file and
|
---|
| 543 | displays a summary in human-readable format</para>
|
---|
[cbbd1e4] | 544 | <indexterm zone="ch-system-glibc mtrace">
|
---|
[3f8be484] | 545 | <primary sortas="b-mtrace">mtrace</primary>
|
---|
| 546 | </indexterm>
|
---|
| 547 | </listitem>
|
---|
| 548 | </varlistentry>
|
---|
| 549 |
|
---|
| 550 | <varlistentry id="nscd">
|
---|
| 551 | <term><command>nscd</command></term>
|
---|
| 552 | <listitem>
|
---|
| 553 | <para>A daemon that provides a cache for the most common name
|
---|
| 554 | service requests</para>
|
---|
[cbbd1e4] | 555 | <indexterm zone="ch-system-glibc nscd">
|
---|
[3f8be484] | 556 | <primary sortas="b-nscd">nscd</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
| 561 | <varlistentry id="pcprofiledump">
|
---|
| 562 | <term><command>pcprofiledump</command></term>
|
---|
| 563 | <listitem>
|
---|
| 564 | <para>Dumps information generated by PC profiling</para>
|
---|
[cbbd1e4] | 565 | <indexterm zone="ch-system-glibc pcprofiledump">
|
---|
[3f8be484] | 566 | <primary sortas="b-pcprofiledump">pcprofiledump</primary>
|
---|
| 567 | </indexterm>
|
---|
| 568 | </listitem>
|
---|
| 569 | </varlistentry>
|
---|
| 570 |
|
---|
[2b220db9] | 571 | <varlistentry id="pldd">
|
---|
| 572 | <term><command>pldd</command></term>
|
---|
| 573 | <listitem>
|
---|
| 574 | <para>Lists dynamic shared objects used by running processes</para>
|
---|
[cbbd1e4] | 575 | <indexterm zone="ch-system-glibc pldd">
|
---|
[2b220db9] | 576 | <primary sortas="b-pldd">pldd</primary>
|
---|
| 577 | </indexterm>
|
---|
| 578 | </listitem>
|
---|
| 579 | </varlistentry>
|
---|
| 580 |
|
---|
[3f8be484] | 581 | <varlistentry id="rpcgen">
|
---|
| 582 | <term><command>rpcgen</command></term>
|
---|
| 583 | <listitem>
|
---|
| 584 | <para>Generates C code to implement the Remote Procecure Call (RPC)
|
---|
| 585 | protocol</para>
|
---|
[cbbd1e4] | 586 | <indexterm zone="ch-system-glibc rpcgen">
|
---|
[3f8be484] | 587 | <primary sortas="b-rpcgen">rpcgen</primary>
|
---|
| 588 | </indexterm>
|
---|
| 589 | </listitem>
|
---|
| 590 | </varlistentry>
|
---|
| 591 |
|
---|
| 592 | <varlistentry id="sln">
|
---|
| 593 | <term><command>sln</command></term>
|
---|
| 594 | <listitem>
|
---|
[7087cbc] | 595 | <para>A statically linked program that creates symbolic links</para>
|
---|
[cbbd1e4] | 596 | <indexterm zone="ch-system-glibc sln">
|
---|
[3f8be484] | 597 | <primary sortas="b-sln">sln</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
[2b220db9] | 602 | <varlistentry id="sotruss">
|
---|
| 603 | <term><command>sotruss</command></term>
|
---|
| 604 | <listitem>
|
---|
| 605 | <para>Traces shared library procedure calls of a specified command</para>
|
---|
[cbbd1e4] | 606 | <indexterm zone="ch-system-glibc sotruss">
|
---|
[2b220db9] | 607 | <primary sortas="b-sotruss">sotruss</primary>
|
---|
| 608 | </indexterm>
|
---|
| 609 | </listitem>
|
---|
| 610 | </varlistentry>
|
---|
| 611 |
|
---|
[3f8be484] | 612 | <varlistentry id="sprof">
|
---|
| 613 | <term><command>sprof</command></term>
|
---|
| 614 | <listitem>
|
---|
| 615 | <para>Reads and displays shared object profiling data</para>
|
---|
[cbbd1e4] | 616 | <indexterm zone="ch-system-glibc sprof">
|
---|
[3f8be484] | 617 | <primary sortas="b-sprof">sprof</primary>
|
---|
| 618 | </indexterm>
|
---|
| 619 | </listitem>
|
---|
| 620 | </varlistentry>
|
---|
| 621 |
|
---|
| 622 | <varlistentry id="tzselect">
|
---|
| 623 | <term><command>tzselect</command></term>
|
---|
| 624 | <listitem>
|
---|
| 625 | <para>Asks the user about the location of the
|
---|
| 626 | system and reports the corresponding time zone description</para>
|
---|
[cbbd1e4] | 627 | <indexterm zone="ch-system-glibc tzselect">
|
---|
[3f8be484] | 628 | <primary sortas="b-tzselect">tzselect</primary>
|
---|
| 629 | </indexterm>
|
---|
| 630 | </listitem>
|
---|
| 631 | </varlistentry>
|
---|
| 632 |
|
---|
| 633 | <varlistentry id="xtrace">
|
---|
| 634 | <term><command>xtrace</command></term>
|
---|
| 635 | <listitem>
|
---|
| 636 | <para>Traces the execution of a program by
|
---|
| 637 | printing the currently executed function</para>
|
---|
[cbbd1e4] | 638 | <indexterm zone="ch-system-glibc xtrace">
|
---|
[3f8be484] | 639 | <primary sortas="b-xtrace">xtrace</primary>
|
---|
| 640 | </indexterm>
|
---|
| 641 | </listitem>
|
---|
| 642 | </varlistentry>
|
---|
| 643 |
|
---|
| 644 | <varlistentry id="zdump">
|
---|
| 645 | <term><command>zdump</command></term>
|
---|
| 646 | <listitem>
|
---|
| 647 | <para>The time zone dumper</para>
|
---|
[cbbd1e4] | 648 | <indexterm zone="ch-system-glibc zdump">
|
---|
[3f8be484] | 649 | <primary sortas="b-zdump">zdump</primary>
|
---|
| 650 | </indexterm>
|
---|
| 651 | </listitem>
|
---|
| 652 | </varlistentry>
|
---|
| 653 |
|
---|
| 654 | <varlistentry id="zic">
|
---|
| 655 | <term><command>zic</command></term>
|
---|
| 656 | <listitem>
|
---|
| 657 | <para>The time zone compiler</para>
|
---|
[cbbd1e4] | 658 | <indexterm zone="ch-system-glibc zic">
|
---|
[3f8be484] | 659 | <primary sortas="b-zic">zic</primary>
|
---|
| 660 | </indexterm>
|
---|
| 661 | </listitem>
|
---|
| 662 | </varlistentry>
|
---|
| 663 |
|
---|
| 664 | <varlistentry id="ld.so">
|
---|
| 665 | <term><filename class="libraryfile">ld.so</filename></term>
|
---|
| 666 | <listitem>
|
---|
| 667 | <para>The helper program for shared library executables</para>
|
---|
[cbbd1e4] | 668 | <indexterm zone="ch-system-glibc ld.so">
|
---|
[3f8be484] | 669 | <primary sortas="c-ld.so">ld.so</primary>
|
---|
| 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
| 673 |
|
---|
| 674 | <varlistentry id="libBrokenLocale">
|
---|
| 675 | <term><filename class="libraryfile">libBrokenLocale</filename></term>
|
---|
| 676 | <listitem>
|
---|
| 677 | <para>Used by programs, such as Mozilla, to solve broken locales</para>
|
---|
[cbbd1e4] | 678 | <indexterm zone="ch-system-glibc libBrokenLocale">
|
---|
[3f8be484] | 679 | <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
|
---|
| 680 | </indexterm>
|
---|
| 681 | </listitem>
|
---|
| 682 | </varlistentry>
|
---|
| 683 |
|
---|
| 684 | <varlistentry id="libSegFault">
|
---|
| 685 | <term><filename class="libraryfile">libSegFault</filename></term>
|
---|
| 686 | <listitem>
|
---|
| 687 | <para>The segmentation fault signal handler</para>
|
---|
[cbbd1e4] | 688 | <indexterm zone="ch-system-glibc libSegFault">
|
---|
[3f8be484] | 689 | <primary sortas="c-libSegFault">libSegFault</primary>
|
---|
| 690 | </indexterm>
|
---|
| 691 | </listitem>
|
---|
| 692 | </varlistentry>
|
---|
| 693 |
|
---|
| 694 | <varlistentry id="libanl">
|
---|
| 695 | <term><filename class="libraryfile">libanl</filename></term>
|
---|
| 696 | <listitem>
|
---|
| 697 | <para>An asynchronous name lookup library</para>
|
---|
[cbbd1e4] | 698 | <indexterm zone="ch-system-glibc libanl">
|
---|
[3f8be484] | 699 | <primary sortas="c-libanl">libanl</primary>
|
---|
| 700 | </indexterm>
|
---|
| 701 | </listitem>
|
---|
| 702 | </varlistentry>
|
---|
| 703 |
|
---|
| 704 | <varlistentry id="libc">
|
---|
| 705 | <term><filename class="libraryfile">libc</filename></term>
|
---|
| 706 | <listitem>
|
---|
| 707 | <para>The main C library</para>
|
---|
[cbbd1e4] | 708 | <indexterm zone="ch-system-glibc libc">
|
---|
[3f8be484] | 709 | <primary sortas="c-libc">libc</primary>
|
---|
| 710 | </indexterm>
|
---|
| 711 | </listitem>
|
---|
| 712 | </varlistentry>
|
---|
| 713 |
|
---|
[188b6b2] | 714 | <varlistentry id="libcidn">
|
---|
| 715 | <term><filename class="libraryfile">libcidn</filename></term>
|
---|
| 716 | <listitem>
|
---|
[d785e9d] | 717 | <para>Used internally by Glibc for handling internationalized domain
|
---|
[188b6b2] | 718 | names in the <function>getaddrinfo()</function> function</para>
|
---|
[cbbd1e4] | 719 | <indexterm zone="ch-system-glibc libcidn">
|
---|
[188b6b2] | 720 | <primary sortas="c-libcidn">libcidn</primary>
|
---|
| 721 | </indexterm>
|
---|
| 722 | </listitem>
|
---|
| 723 | </varlistentry>
|
---|
| 724 |
|
---|
[3f8be484] | 725 | <varlistentry id="libcrypt">
|
---|
| 726 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
| 727 | <listitem>
|
---|
| 728 | <para>The cryptography library</para>
|
---|
[cbbd1e4] | 729 | <indexterm zone="ch-system-glibc libcrypt">
|
---|
[3f8be484] | 730 | <primary sortas="c-libcrypt">libcrypt</primary>
|
---|
| 731 | </indexterm>
|
---|
| 732 | </listitem>
|
---|
| 733 | </varlistentry>
|
---|
| 734 |
|
---|
| 735 | <varlistentry id="libdl">
|
---|
| 736 | <term><filename class="libraryfile">libdl</filename></term>
|
---|
| 737 | <listitem>
|
---|
| 738 | <para>The dynamic linking interface library</para>
|
---|
[cbbd1e4] | 739 | <indexterm zone="ch-system-glibc libdl">
|
---|
[3f8be484] | 740 | <primary sortas="c-libdl">libdl</primary>
|
---|
| 741 | </indexterm>
|
---|
| 742 | </listitem>
|
---|
| 743 | </varlistentry>
|
---|
| 744 |
|
---|
| 745 | <varlistentry id="libg">
|
---|
| 746 | <term><filename class="libraryfile">libg</filename></term>
|
---|
| 747 | <listitem>
|
---|
| 748 | <para>A runtime library for <command>g++</command></para>
|
---|
[cbbd1e4] | 749 | <indexterm zone="ch-system-glibc libg">
|
---|
[3f8be484] | 750 | <primary sortas="c-libg">libg</primary>
|
---|
| 751 | </indexterm>
|
---|
| 752 | </listitem>
|
---|
| 753 | </varlistentry>
|
---|
| 754 |
|
---|
| 755 | <varlistentry id="libieee">
|
---|
| 756 | <term><filename class="libraryfile">libieee</filename></term>
|
---|
| 757 | <listitem>
|
---|
| 758 | <para>The Institute of Electrical and Electronic Engineers (IEEE)
|
---|
| 759 | floating point library</para>
|
---|
[cbbd1e4] | 760 | <indexterm zone="ch-system-glibc libieee">
|
---|
[3f8be484] | 761 | <primary sortas="c-libieee">libieee</primary>
|
---|
| 762 | </indexterm>
|
---|
| 763 | </listitem>
|
---|
| 764 | </varlistentry>
|
---|
| 765 |
|
---|
| 766 | <varlistentry id="libm">
|
---|
| 767 | <term><filename class="libraryfile">libm</filename></term>
|
---|
| 768 | <listitem>
|
---|
| 769 | <para>The mathematical library</para>
|
---|
[cbbd1e4] | 770 | <indexterm zone="ch-system-glibc libm">
|
---|
[3f8be484] | 771 | <primary sortas="c-libm">libm</primary>
|
---|
| 772 | </indexterm>
|
---|
| 773 | </listitem>
|
---|
| 774 | </varlistentry>
|
---|
| 775 |
|
---|
| 776 | <varlistentry id="libmcheck">
|
---|
| 777 | <term><filename class="libraryfile">libmcheck</filename></term>
|
---|
| 778 | <listitem>
|
---|
| 779 | <para>Contains code run at boot</para>
|
---|
[cbbd1e4] | 780 | <indexterm zone="ch-system-glibc libmcheck">
|
---|
[3f8be484] | 781 | <primary sortas="c-libmcheck">libmcheck</primary>
|
---|
| 782 | </indexterm>
|
---|
| 783 | </listitem>
|
---|
| 784 | </varlistentry>
|
---|
| 785 |
|
---|
| 786 | <varlistentry id="libmemusage">
|
---|
| 787 | <term><filename class="libraryfile">libmemusage</filename></term>
|
---|
| 788 | <listitem>
|
---|
[d785e9d] | 789 | <para>Used by <command>memusage</command> (included in Glibc, but
|
---|
[7087cbc] | 790 | not built in a base CLFS system as it has additional dependencies)
|
---|
| 791 | to help collect information about the memory usage of a program</para>
|
---|
[cbbd1e4] | 792 | <indexterm zone="ch-system-glibc libmemusage">
|
---|
[3f8be484] | 793 | <primary sortas="c-libmemusage">libmemusage</primary>
|
---|
| 794 | </indexterm>
|
---|
| 795 | </listitem>
|
---|
| 796 | </varlistentry>
|
---|
| 797 |
|
---|
| 798 | <varlistentry id="libnsl">
|
---|
| 799 | <term><filename class="libraryfile">libnsl</filename></term>
|
---|
| 800 | <listitem>
|
---|
| 801 | <para>The network services library</para>
|
---|
[cbbd1e4] | 802 | <indexterm zone="ch-system-glibc libnsl">
|
---|
[3f8be484] | 803 | <primary sortas="c-libnsl">libnsl</primary>
|
---|
| 804 | </indexterm>
|
---|
| 805 | </listitem>
|
---|
| 806 | </varlistentry>
|
---|
| 807 |
|
---|
| 808 | <varlistentry id="libnss">
|
---|
| 809 | <term><filename class="libraryfile">libnss</filename></term>
|
---|
| 810 | <listitem>
|
---|
| 811 | <para>The Name Service Switch libraries, containing functions for
|
---|
| 812 | resolving host names, user names, group names, aliases, services,
|
---|
| 813 | protocols, etc.</para>
|
---|
[cbbd1e4] | 814 | <indexterm zone="ch-system-glibc libnss">
|
---|
[3f8be484] | 815 | <primary sortas="c-libnss">libnss</primary>
|
---|
| 816 | </indexterm>
|
---|
| 817 | </listitem>
|
---|
| 818 | </varlistentry>
|
---|
| 819 |
|
---|
| 820 | <varlistentry id="libpcprofile">
|
---|
| 821 | <term><filename class="libraryfile">libpcprofile</filename></term>
|
---|
| 822 | <listitem>
|
---|
| 823 | <para>Contains profiling functions used to track the amount of CPU
|
---|
| 824 | time spent in specific source code lines</para>
|
---|
[cbbd1e4] | 825 | <indexterm zone="ch-system-glibc libpcprofile">
|
---|
[3f8be484] | 826 | <primary sortas="c-libpcprofile">libpcprofile</primary>
|
---|
| 827 | </indexterm>
|
---|
| 828 | </listitem>
|
---|
| 829 | </varlistentry>
|
---|
| 830 |
|
---|
| 831 | <varlistentry id="libpthread">
|
---|
| 832 | <term><filename class="libraryfile">libpthread</filename></term>
|
---|
| 833 | <listitem>
|
---|
| 834 | <para>The POSIX threads library</para>
|
---|
[cbbd1e4] | 835 | <indexterm zone="ch-system-glibc libpthread">
|
---|
[3f8be484] | 836 | <primary sortas="c-libpthread">libpthread</primary>
|
---|
| 837 | </indexterm>
|
---|
| 838 | </listitem>
|
---|
| 839 | </varlistentry>
|
---|
| 840 |
|
---|
| 841 | <varlistentry id="libresolv">
|
---|
| 842 | <term><filename class="libraryfile">libresolv</filename></term>
|
---|
| 843 | <listitem>
|
---|
| 844 | <para>Contains functions for creating, sending, and interpreting
|
---|
| 845 | packets to the Internet domain name servers</para>
|
---|
[cbbd1e4] | 846 | <indexterm zone="ch-system-glibc libresolv">
|
---|
[3f8be484] | 847 | <primary sortas="c-libresolv">libresolv</primary>
|
---|
| 848 | </indexterm>
|
---|
| 849 | </listitem>
|
---|
| 850 | </varlistentry>
|
---|
| 851 |
|
---|
| 852 | <varlistentry id="librpcsvc">
|
---|
| 853 | <term><filename class="libraryfile">librpcsvc</filename></term>
|
---|
| 854 | <listitem>
|
---|
| 855 | <para>Contains functions providing miscellaneous RPC services</para>
|
---|
[cbbd1e4] | 856 | <indexterm zone="ch-system-glibc librpcsvc">
|
---|
[3f8be484] | 857 | <primary sortas="c-librpcsvc">librpcsvc</primary>
|
---|
| 858 | </indexterm>
|
---|
| 859 | </listitem>
|
---|
| 860 | </varlistentry>
|
---|
| 861 |
|
---|
| 862 | <varlistentry id="librt">
|
---|
| 863 | <term><filename class="libraryfile">librt</filename></term>
|
---|
| 864 | <listitem>
|
---|
| 865 | <para>Contains functions providing most of the interfaces specified by
|
---|
| 866 | the POSIX.1b Realtime Extension</para>
|
---|
[cbbd1e4] | 867 | <indexterm zone="ch-system-glibc librt">
|
---|
[3f8be484] | 868 | <primary sortas="c-librt">librt</primary>
|
---|
| 869 | </indexterm>
|
---|
| 870 | </listitem>
|
---|
| 871 | </varlistentry>
|
---|
| 872 |
|
---|
| 873 | <varlistentry id="libthread_db">
|
---|
| 874 | <term><filename class="libraryfile">libthread_db</filename></term>
|
---|
| 875 | <listitem>
|
---|
| 876 | <para>Contains functions useful for
|
---|
| 877 | building debuggers for multi-threaded programs</para>
|
---|
[cbbd1e4] | 878 | <indexterm zone="ch-system-glibc libthread_db">
|
---|
[3f8be484] | 879 | <primary sortas="c-libthread_db">libthread_db</primary>
|
---|
| 880 | </indexterm>
|
---|
| 881 | </listitem>
|
---|
| 882 | </varlistentry>
|
---|
| 883 |
|
---|
| 884 | <varlistentry id="libutil">
|
---|
| 885 | <term><filename class="libraryfile">libutil</filename></term>
|
---|
| 886 | <listitem>
|
---|
| 887 | <para>Contains code for <quote>standard</quote> functions used in
|
---|
| 888 | many different Unix utilities</para>
|
---|
[cbbd1e4] | 889 | <indexterm zone="ch-system-glibc libutil">
|
---|
[3f8be484] | 890 | <primary sortas="c-libutil">libutil</primary>
|
---|
| 891 | </indexterm>
|
---|
| 892 | </listitem>
|
---|
| 893 | </varlistentry>
|
---|
| 894 |
|
---|
| 895 | </variablelist>
|
---|
| 896 |
|
---|
| 897 | </sect2>
|
---|
| 898 |
|
---|
| 899 | </sect1>
|
---|