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