1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-glibc" xreflabel="Glibc" role="wrap">
|
---|
7 | <title>Glibc-&glibc-version;</title>
|
---|
8 | <?dbhtml filename="glibc.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Glibc package contains the main C library. This library provides all
|
---|
14 | the basic routines for allocating memory, searching directories, opening and
|
---|
15 | closing files, reading and writing them, string handling, pattern matching,
|
---|
16 | arithmetic, and so on.</para>
|
---|
17 |
|
---|
18 | <segmentedlist>
|
---|
19 | <segtitle>&buildtime;</segtitle>
|
---|
20 | <segtitle>&diskspace;</segtitle>
|
---|
21 | <seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem>
|
---|
22 | </segmentedlist>
|
---|
23 |
|
---|
24 | <segmentedlist>
|
---|
25 | <segtitle>Glibc installation depends on</segtitle>
|
---|
26 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
27 | Gawk, GCC, Gettext, Grep, Make, Perl, Sed, Texinfo</seg></seglistitem>
|
---|
28 | </segmentedlist>
|
---|
29 | </sect2>
|
---|
30 |
|
---|
31 | <sect2 role="installation">
|
---|
32 | <title>Installation of Glibc</title>
|
---|
33 |
|
---|
34 | <para>The Glibc build system is very well self-contained and will install
|
---|
35 | perfectly, even though our compiler specs file and linker are still pointing
|
---|
36 | at <filename>/tools</filename>. We cannot adjust the specs and linker before
|
---|
37 | the Glibc install, because the Glibc autoconf tests would then give bogus
|
---|
38 | results and thus defeat our goal of achieving a clean build.</para>
|
---|
39 |
|
---|
40 | <para>Before starting to build Glibc, remember to unset any environment
|
---|
41 | variables that override the default optimization flags.</para>
|
---|
42 |
|
---|
43 | <para>The Glibc documentation recommends building Glibc outside of the source
|
---|
44 | directory in a dedicated build directory:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>mkdir ../glibc-build
|
---|
47 | cd ../glibc-build</userinput></screen>
|
---|
48 |
|
---|
49 | <para>Now prepare Glibc for compilation:</para>
|
---|
50 |
|
---|
51 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
52 | --disable-profile --enable-add-ons=nptl --with-tls \
|
---|
53 | --libexecdir=/tmp/pt_chown --without-cvs \
|
---|
54 | --with-headers=/tools/glibc-kernheaders</userinput></screen>
|
---|
55 |
|
---|
56 | <para>The meaning of the new configure options:</para>
|
---|
57 |
|
---|
58 | <itemizedlist>
|
---|
59 | <listitem><para><userinput>--libexecdir=/tmp/pt_chown</userinput>: This changes
|
---|
60 | the location of the <filename>pt_chown</filename> program from its default of
|
---|
61 | <filename class="directory">/usr/libexec</filename> to
|
---|
62 | <filename class="directory">/tmp/pt_chown</filename>. This program isn't required
|
---|
63 | on modern systems, so we install it in a place from which we will delete it
|
---|
64 | later.</para></listitem>
|
---|
65 | </itemizedlist>
|
---|
66 |
|
---|
67 | <para>Compile the package:</para>
|
---|
68 |
|
---|
69 | <screen><userinput>make</userinput></screen>
|
---|
70 |
|
---|
71 | <important><para>The test suite for Glibc in this section is considered
|
---|
72 | <emphasis>critical</emphasis>. Our advice is to not skip it under any
|
---|
73 | circumstance.</para></important>
|
---|
74 |
|
---|
75 | <para>Test the results:</para>
|
---|
76 |
|
---|
77 | <screen><userinput>make check</userinput></screen>
|
---|
78 |
|
---|
79 | <para>The test suite notes from <xref linkend="ch-tools-glibc"/> are still very much
|
---|
80 | appropriate here. Be sure to refer back there should you have any doubts.</para>
|
---|
81 |
|
---|
82 | <para>Though it is a harmless message, the install stage of Glibc will
|
---|
83 | complain about the absence of <filename>/etc/ld.so.conf</filename>. Fix this
|
---|
84 | annoying little warning with:</para>
|
---|
85 |
|
---|
86 | <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
|
---|
87 |
|
---|
88 | <para>And install the package:</para>
|
---|
89 |
|
---|
90 | <screen><userinput>make install</userinput></screen>
|
---|
91 |
|
---|
92 | <para>The locales that can make your system respond in a different language
|
---|
93 | weren't installed by the above command. Do it with this:</para>
|
---|
94 |
|
---|
95 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
96 |
|
---|
97 | <para>An alternative to running the previous command is to install only those
|
---|
98 | locales which you need or want. This can be achieved by using the
|
---|
99 | <command>localedef</command> command. Information on this can be found in
|
---|
100 | the <filename>INSTALL</filename> file in the Glibc source. However, there are
|
---|
101 | a number of locales that are essential for the tests of future packages to
|
---|
102 | pass, in particular, the <emphasis>libstdc++</emphasis> tests from GCC. The
|
---|
103 | following instructions, instead of the install-locales target above, will
|
---|
104 | install the minimum set of locales necessary for the tests to run
|
---|
105 | successfully:</para>
|
---|
106 |
|
---|
107 | <screen><userinput>mkdir -p /usr/lib/locale
|
---|
108 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
109 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
110 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
111 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
112 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
113 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
114 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
115 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
116 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
117 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
118 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
119 |
|
---|
120 | <para>In fact, some locales installed by the
|
---|
121 | <command>make localedata/install-locales</command>
|
---|
122 | command above are not properly
|
---|
123 | supported by some applications that are in LFS and BLFS books. Because
|
---|
124 | of various problems that arise
|
---|
125 | due to application programmers making
|
---|
126 | assumptions that break in such locales, LFS <emphasis>should not</emphasis>
|
---|
127 | be used in locales that utilize
|
---|
128 | multibyte character sets (including UTF-8) or
|
---|
129 | right-to-left writing order.
|
---|
130 | Numerous unofficial and unstable patches are required to fix these problems,
|
---|
131 | and it has been decided not to support such complex locales.
|
---|
132 | This applies to the ja_JP and fa_IR locales as well:
|
---|
133 | they have been installed only
|
---|
134 | for gcc and gettext tests to pass, and e.g.
|
---|
135 | the <command>watch</command> program (part of Procps)
|
---|
136 | compiled according to this book doesn't work properly in them.
|
---|
137 | Various attempts to circumvent these
|
---|
138 | restrictions are documented in internationalization-related hints.</para>
|
---|
139 |
|
---|
140 | <para>Finally, build the linuxthreads man pages, which are a great reference
|
---|
141 | on the threading API (applicable to NPTL as well):</para>
|
---|
142 |
|
---|
143 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
|
---|
144 |
|
---|
145 | <para>And install these pages:</para>
|
---|
146 |
|
---|
147 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 |
|
---|
152 | <sect2 id="conf-glibc"><title>Configuring Glibc</title>
|
---|
153 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
|
---|
154 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
|
---|
155 |
|
---|
156 | <para>We need to create the <filename>/etc/nsswitch.conf</filename> file,
|
---|
157 | because, although Glibc provides defaults when this file is missing or corrupt,
|
---|
158 | the Glibc defaults don't work well with networking. Also, our time zone needs
|
---|
159 | to be set up.</para>
|
---|
160 |
|
---|
161 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
---|
162 | following:</para>
|
---|
163 |
|
---|
164 | <screen><userinput>cat > /etc/nsswitch.conf << "EOF"</userinput>
|
---|
165 | # Begin /etc/nsswitch.conf
|
---|
166 |
|
---|
167 | passwd: files
|
---|
168 | group: files
|
---|
169 | shadow: files
|
---|
170 |
|
---|
171 | hosts: files dns
|
---|
172 | networks: files
|
---|
173 |
|
---|
174 | protocols: files
|
---|
175 | services: files
|
---|
176 | ethers: files
|
---|
177 | rpc: files
|
---|
178 |
|
---|
179 | # End /etc/nsswitch.conf
|
---|
180 | <userinput>EOF</userinput></screen>
|
---|
181 |
|
---|
182 | <para>To find out what time zone you're in, run the following script:</para>
|
---|
183 |
|
---|
184 | <screen><userinput>tzselect</userinput></screen>
|
---|
185 |
|
---|
186 | <para>When you've answered a few questions about your location, the script will
|
---|
187 | output the name of your time zone, something like <emphasis>EST5EDT</emphasis>
|
---|
188 | or <emphasis>Canada/Eastern</emphasis>. Then create the
|
---|
189 | <filename>/etc/localtime</filename> file by running:</para>
|
---|
190 |
|
---|
191 | <screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime</userinput></screen>
|
---|
192 |
|
---|
193 | <para>The meaning of the option:</para>
|
---|
194 |
|
---|
195 | <itemizedlist>
|
---|
196 | <listitem><para><userinput>--remove-destination</userinput>: This is needed to
|
---|
197 | force removal of the already existing symbolic link. The reason why we copy
|
---|
198 | instead of symlink is to cover the situation where <filename>/usr</filename> is
|
---|
199 | on a separate partition. This could matter, for example, when booted into single
|
---|
200 | user mode.</para></listitem>
|
---|
201 | </itemizedlist>
|
---|
202 |
|
---|
203 | <para>Of course, instead of <emphasis>Canada/Eastern</emphasis>, fill in
|
---|
204 | the name of the time zone that the <command>tzselect</command> script
|
---|
205 | gave you.</para>
|
---|
206 |
|
---|
207 | </sect2>
|
---|
208 |
|
---|
209 |
|
---|
210 | <sect2 id="conf-ld">
|
---|
211 | <title>Configuring Dynamic Loader</title>
|
---|
212 | <indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
|
---|
213 |
|
---|
214 | <para>By default, the dynamic loader
|
---|
215 | (<filename>/lib/ld-linux.so.2</filename>) searches through <filename
|
---|
216 | class="directory">/lib</filename> and <filename class="directory">/usr/lib</filename>
|
---|
217 | for dynamic libraries that are needed
|
---|
218 | by programs when you run them. However, if there are libraries in
|
---|
219 | directories other than <filename class="directory">/lib</filename> and
|
---|
220 | <filename class="directory">/usr/lib</filename>, you need to add them to
|
---|
221 | the <filename>/etc/ld.so.conf</filename> file for the dynamic
|
---|
222 | loader to find them. Two directories that are commonly known to contain
|
---|
223 | additional libraries are <filename class="directory">/usr/local/lib</filename>
|
---|
224 | and <filename class="directory">/opt/lib</filename>, so we add those directories to the
|
---|
225 | dynamic loader's search path.</para>
|
---|
226 |
|
---|
227 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
228 | following:</para>
|
---|
229 |
|
---|
230 | <screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
---|
231 | # Begin /etc/ld.so.conf
|
---|
232 |
|
---|
233 | /usr/local/lib
|
---|
234 | /opt/lib
|
---|
235 |
|
---|
236 | # End /etc/ld.so.conf
|
---|
237 | <userinput>EOF</userinput></screen>
|
---|
238 |
|
---|
239 | </sect2>
|
---|
240 |
|
---|
241 |
|
---|
242 | <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
|
---|
243 |
|
---|
244 | <segmentedlist>
|
---|
245 | <segtitle>Installed programs</segtitle>
|
---|
246 | <segtitle>Installed libraries</segtitle>
|
---|
247 | <seglistitem><seg>catchsegv, gencat, getconf,
|
---|
248 | getent, glibcbug, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
|
---|
249 | localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
|
---|
250 | rpcinfo, sln, sprof, tzselect, xtrace, zdump and zic</seg>
|
---|
251 | <seg>ld.so, libBrokenLocale.[a,so],
|
---|
252 | libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so], libc_nonshared.a,
|
---|
253 | libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
|
---|
254 | libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
|
---|
255 | libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
|
---|
256 | libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so
|
---|
257 | and libutil.[a,so]</seg></seglistitem>
|
---|
258 | </segmentedlist>
|
---|
259 |
|
---|
260 | <variablelist><title>Short descriptions</title>
|
---|
261 |
|
---|
262 | <varlistentry>
|
---|
263 | <term id="catchsegv"><command>catchsegv</command></term>
|
---|
264 | <listitem>
|
---|
265 | <indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
|
---|
266 | <para>can be used to create a stack trace
|
---|
267 | when a program terminates with a segmentation fault.</para>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | <varlistentry>
|
---|
272 | <term id="gencat"><command>gencat</command></term>
|
---|
273 | <listitem>
|
---|
274 | <indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
|
---|
275 | <para>generates message catalogues.</para>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry>
|
---|
280 | <term id="getconf"><command>getconf</command></term>
|
---|
281 | <listitem>
|
---|
282 | <indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
|
---|
283 | <para>displays the system configuration values for file system specific variables.</para>
|
---|
284 | </listitem>
|
---|
285 | </varlistentry>
|
---|
286 |
|
---|
287 | <varlistentry>
|
---|
288 | <term id="getent"><command>getent</command></term>
|
---|
289 | <listitem>
|
---|
290 | <indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
|
---|
291 | <para>gets entries from an administrative database.</para>
|
---|
292 | </listitem>
|
---|
293 | </varlistentry>
|
---|
294 |
|
---|
295 | <varlistentry>
|
---|
296 | <term id="glibcbug"><command>glibcbug</command></term>
|
---|
297 | <listitem>
|
---|
298 | <indexterm zone="ch-system-glibc glibcbug"><primary sortas="b-glibcbug">glibcbug</primary></indexterm>
|
---|
299 | <para>creates a bug report and mails it to the bug email address.</para>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry>
|
---|
304 | <term id="iconv"><command>iconv</command></term>
|
---|
305 | <listitem>
|
---|
306 | <indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
|
---|
307 | <para>performs character set conversion.</para>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry>
|
---|
312 | <term id="iconvconfig"><command>iconvconfig</command></term>
|
---|
313 | <listitem>
|
---|
314 | <indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
|
---|
315 | <para>creates fastloading iconv module configuration file.</para>
|
---|
316 | </listitem>
|
---|
317 | </varlistentry>
|
---|
318 |
|
---|
319 | <varlistentry>
|
---|
320 | <term id="ldconfig"><command>ldconfig</command></term>
|
---|
321 | <listitem>
|
---|
322 | <indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
|
---|
323 | <para>configures the dynamic linker runtime bindings.</para>
|
---|
324 | </listitem>
|
---|
325 | </varlistentry>
|
---|
326 |
|
---|
327 | <varlistentry>
|
---|
328 | <term id="ldd"><command>ldd</command></term>
|
---|
329 | <listitem>
|
---|
330 | <indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
|
---|
331 | <para>reports which shared libraries are required
|
---|
332 | by each given program or shared library.</para>
|
---|
333 | </listitem>
|
---|
334 | </varlistentry>
|
---|
335 |
|
---|
336 | <varlistentry>
|
---|
337 | <term id="lddlibc4"><command>lddlibc4</command></term>
|
---|
338 | <listitem>
|
---|
339 | <indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
|
---|
340 | <para>assists ldd with object files.</para>
|
---|
341 | </listitem>
|
---|
342 | </varlistentry>
|
---|
343 |
|
---|
344 | <varlistentry>
|
---|
345 | <term id="locale"><command>locale</command></term>
|
---|
346 | <listitem>
|
---|
347 | <indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
|
---|
348 | <para>is a Perl program that tells the compiler
|
---|
349 | to enable or disable the use of POSIX locales for built-in operations.</para>
|
---|
350 | </listitem>
|
---|
351 | </varlistentry>
|
---|
352 |
|
---|
353 | <varlistentry>
|
---|
354 | <term id="localedef"><command>localedef</command></term>
|
---|
355 | <listitem>
|
---|
356 | <indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
|
---|
357 | <para>compiles locale specifications.</para>
|
---|
358 | </listitem>
|
---|
359 | </varlistentry>
|
---|
360 |
|
---|
361 | <varlistentry>
|
---|
362 | <term id="mtrace"><command>mtrace</command></term>
|
---|
363 | <listitem>
|
---|
364 | <indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
|
---|
365 | <para>...</para>
|
---|
366 | </listitem>
|
---|
367 | </varlistentry>
|
---|
368 |
|
---|
369 | <varlistentry>
|
---|
370 | <term id="nscd"><command>nscd</command></term>
|
---|
371 | <listitem>
|
---|
372 | <indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
|
---|
373 | <para>is a name service cache daemon providing a
|
---|
374 | cache for the most common name service requests.</para>
|
---|
375 | </listitem>
|
---|
376 | </varlistentry>
|
---|
377 |
|
---|
378 | <varlistentry>
|
---|
379 | <term id="nscd_nischeck"><command>nscd_nischeck</command></term>
|
---|
380 | <listitem>
|
---|
381 | <indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
|
---|
382 | <para>checks whether or not secure mode is necessary for NIS+ lookup.</para>
|
---|
383 | </listitem>
|
---|
384 | </varlistentry>
|
---|
385 |
|
---|
386 | <varlistentry>
|
---|
387 | <term id="pcprofiledump"><command>pcprofiledump</command></term>
|
---|
388 | <listitem>
|
---|
389 | <indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
|
---|
390 | <para>dumps information generated by PC profiling.</para>
|
---|
391 | </listitem>
|
---|
392 | </varlistentry>
|
---|
393 |
|
---|
394 | <varlistentry>
|
---|
395 | <term id="pt_chown"><command>pt_chown</command></term>
|
---|
396 | <listitem>
|
---|
397 | <indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
|
---|
398 | <para>is a helper program for grantpt to set
|
---|
399 | the owner, group and access permissions of a slave pseudo terminal.</para>
|
---|
400 | </listitem>
|
---|
401 | </varlistentry>
|
---|
402 |
|
---|
403 | <varlistentry>
|
---|
404 | <term id="rpcgen"><command>rpcgen</command></term>
|
---|
405 | <listitem>
|
---|
406 | <indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
|
---|
407 | <para>generates C code to implement the RPC protocol.</para>
|
---|
408 | </listitem>
|
---|
409 | </varlistentry>
|
---|
410 |
|
---|
411 | <varlistentry>
|
---|
412 | <term id="rpcinfo"><command>rpcinfo</command></term>
|
---|
413 | <listitem>
|
---|
414 | <indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
|
---|
415 | <para>makes an RPC call to an RPC server.</para>
|
---|
416 | </listitem>
|
---|
417 | </varlistentry>
|
---|
418 |
|
---|
419 | <varlistentry>
|
---|
420 | <term id="sln"><command>sln</command></term>
|
---|
421 | <listitem>
|
---|
422 | <indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
|
---|
423 | <para>is used to make symbolic links. The program
|
---|
424 | is statically linked, so it is useful for making symbolic links to dynamic
|
---|
425 | libraries if the dynamic linking system for some reason is nonfunctional.</para>
|
---|
426 | </listitem>
|
---|
427 | </varlistentry>
|
---|
428 |
|
---|
429 | <varlistentry>
|
---|
430 | <term id="sprof"><command>sprof</command></term>
|
---|
431 | <listitem>
|
---|
432 | <indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
|
---|
433 | <para>reads and displays shared object profiling data.</para>
|
---|
434 | </listitem>
|
---|
435 | </varlistentry>
|
---|
436 |
|
---|
437 | <varlistentry>
|
---|
438 | <term id="tzselect"><command>tzselect</command></term>
|
---|
439 | <listitem>
|
---|
440 | <indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
|
---|
441 | <para>asks the user about the location of the
|
---|
442 | system and reports the corresponding time zone description.</para>
|
---|
443 | </listitem>
|
---|
444 | </varlistentry>
|
---|
445 |
|
---|
446 | <varlistentry>
|
---|
447 | <term id="xtrace"><command>xtrace</command></term>
|
---|
448 | <listitem>
|
---|
449 | <indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
|
---|
450 | <para>traces the execution of a program by
|
---|
451 | printing the currently executed function.</para>
|
---|
452 | </listitem>
|
---|
453 | </varlistentry>
|
---|
454 |
|
---|
455 | <varlistentry>
|
---|
456 | <term id="zdump"><command>zdump</command></term>
|
---|
457 | <listitem>
|
---|
458 | <indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
|
---|
459 | <para>is the time zone dumper.</para>
|
---|
460 | </listitem>
|
---|
461 | </varlistentry>
|
---|
462 |
|
---|
463 | <varlistentry>
|
---|
464 | <term id="zic"><command>zic</command></term>
|
---|
465 | <listitem>
|
---|
466 | <indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
|
---|
467 | <para>is the time zone compiler.</para>
|
---|
468 | </listitem>
|
---|
469 | </varlistentry>
|
---|
470 |
|
---|
471 | <varlistentry>
|
---|
472 | <term id="ld.so"><command>ld.so</command></term>
|
---|
473 | <listitem>
|
---|
474 | <indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
|
---|
475 | <para>is the helper program for shared library executables.</para>
|
---|
476 | </listitem>
|
---|
477 | </varlistentry>
|
---|
478 |
|
---|
479 | <varlistentry>
|
---|
480 | <term id="libBrokenLocale"><command>libBrokenLocale</command></term>
|
---|
481 | <listitem>
|
---|
482 | <indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
|
---|
483 | <para>is used by programs, such as Mozilla, to solve broken locales.</para>
|
---|
484 | </listitem>
|
---|
485 | </varlistentry>
|
---|
486 |
|
---|
487 | <varlistentry>
|
---|
488 | <term id="libSegFault"><command>libSegFault</command></term>
|
---|
489 | <listitem>
|
---|
490 | <indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
|
---|
491 | <para>is a segmentation fault signal handler. It tries to catch segfaults.</para>
|
---|
492 | </listitem>
|
---|
493 | </varlistentry>
|
---|
494 |
|
---|
495 | <varlistentry>
|
---|
496 | <term id="libanl"><command>libanl</command></term>
|
---|
497 | <listitem>
|
---|
498 | <indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
|
---|
499 | <para>is an asynchronous name lookup library.</para>
|
---|
500 | </listitem>
|
---|
501 | </varlistentry>
|
---|
502 |
|
---|
503 | <varlistentry>
|
---|
504 | <term id="libbsd-compat"><command>libbsd-compat</command></term>
|
---|
505 | <listitem>
|
---|
506 | <indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
|
---|
507 | <para>provides the portability needed
|
---|
508 | in order to run certain BSD programs under Linux.</para>
|
---|
509 | </listitem>
|
---|
510 | </varlistentry>
|
---|
511 |
|
---|
512 | <varlistentry>
|
---|
513 | <term id="libc"><command>libc</command></term>
|
---|
514 | <listitem>
|
---|
515 | <indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
|
---|
516 | <para>is the main C library -- a collection of commonly used functions.</para>
|
---|
517 | </listitem>
|
---|
518 | </varlistentry>
|
---|
519 |
|
---|
520 | <varlistentry>
|
---|
521 | <term id="libcrypt"><command>libcrypt</command></term>
|
---|
522 | <listitem>
|
---|
523 | <indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
|
---|
524 | <para>is the cryptography library.</para>
|
---|
525 | </listitem>
|
---|
526 | </varlistentry>
|
---|
527 |
|
---|
528 | <varlistentry>
|
---|
529 | <term id="libdl"><command>libdl</command></term>
|
---|
530 | <listitem>
|
---|
531 | <indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
|
---|
532 | <para>is the dynamic linking interface library.</para>
|
---|
533 | </listitem>
|
---|
534 | </varlistentry>
|
---|
535 |
|
---|
536 | <varlistentry>
|
---|
537 | <term id="libg"><command>libg</command></term>
|
---|
538 | <listitem>
|
---|
539 | <indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
|
---|
540 | <para>is a runtime library for g++.</para>
|
---|
541 | </listitem>
|
---|
542 | </varlistentry>
|
---|
543 |
|
---|
544 | <varlistentry>
|
---|
545 | <term id="libieee"><command>libieee</command></term>
|
---|
546 | <listitem>
|
---|
547 | <indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
|
---|
548 | <para>is the IEEE floating point library.</para>
|
---|
549 | </listitem>
|
---|
550 | </varlistentry>
|
---|
551 |
|
---|
552 | <varlistentry>
|
---|
553 | <term id="libm"><command>libm</command></term>
|
---|
554 | <listitem>
|
---|
555 | <indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
|
---|
556 | <para>is the mathematical library.</para>
|
---|
557 | </listitem>
|
---|
558 | </varlistentry>
|
---|
559 |
|
---|
560 | <varlistentry>
|
---|
561 | <term id="libmcheck"><command>libmcheck</command></term>
|
---|
562 | <listitem>
|
---|
563 | <indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
|
---|
564 | <para>contains code run at boot.</para>
|
---|
565 | </listitem>
|
---|
566 | </varlistentry>
|
---|
567 |
|
---|
568 | <varlistentry>
|
---|
569 | <term id="libmemusage"><command>libmemusage</command></term>
|
---|
570 | <listitem>
|
---|
571 | <indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
|
---|
572 | <para>is used by memusage to help collect
|
---|
573 | information about the memory usage of a program.</para>
|
---|
574 | </listitem>
|
---|
575 | </varlistentry>
|
---|
576 |
|
---|
577 | <varlistentry>
|
---|
578 | <term id="libnsl"><command>libnsl</command></term>
|
---|
579 | <listitem>
|
---|
580 | <indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
|
---|
581 | <para>is the network services library.</para>
|
---|
582 | </listitem>
|
---|
583 | </varlistentry>
|
---|
584 |
|
---|
585 | <varlistentry>
|
---|
586 | <term id="libnss"><command>libnss*</command></term>
|
---|
587 | <listitem>
|
---|
588 | <indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss*">libnss*</primary></indexterm>
|
---|
589 | <para>are the Name Service Switch libraries,
|
---|
590 | containing functions for resolving host names, user names, group names,
|
---|
591 | aliases, services, protocols,and the like.</para>
|
---|
592 | </listitem>
|
---|
593 | </varlistentry>
|
---|
594 |
|
---|
595 | <varlistentry>
|
---|
596 | <term id="libpcprofile"><command>libpcprofile</command></term>
|
---|
597 | <listitem>
|
---|
598 | <indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
|
---|
599 | <para>contains profiling functions used
|
---|
600 | to track the amount of CPU time spent in which source code lines.</para>
|
---|
601 | </listitem>
|
---|
602 | </varlistentry>
|
---|
603 |
|
---|
604 | <varlistentry>
|
---|
605 | <term id="libpthread"><command>libpthread</command></term>
|
---|
606 | <listitem>
|
---|
607 | <indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
|
---|
608 | <para>is the POSIX threads library.</para>
|
---|
609 | </listitem>
|
---|
610 | </varlistentry>
|
---|
611 |
|
---|
612 | <varlistentry>
|
---|
613 | <term id="libresolv"><command>libresolv</command></term>
|
---|
614 | <listitem>
|
---|
615 | <indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
|
---|
616 | <para>contains functions for creating,
|
---|
617 | sending, and interpreting packets to the Internet domain name servers.</para>
|
---|
618 | </listitem>
|
---|
619 | </varlistentry>
|
---|
620 |
|
---|
621 | <varlistentry>
|
---|
622 | <term id="librpcsvc"><command>librpcsvc</command></term>
|
---|
623 | <listitem>
|
---|
624 | <indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
|
---|
625 | <para>contains functions providing miscellaneous RPC services.</para>
|
---|
626 | </listitem>
|
---|
627 | </varlistentry>
|
---|
628 |
|
---|
629 | <varlistentry>
|
---|
630 | <term id="librt"><command>librt</command></term>
|
---|
631 | <listitem>
|
---|
632 | <indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
|
---|
633 | <para>contains functions providing most of the
|
---|
634 | interfaces specified by the POSIX.1b Realtime Extension.</para>
|
---|
635 | </listitem>
|
---|
636 | </varlistentry>
|
---|
637 |
|
---|
638 | <varlistentry>
|
---|
639 | <term id="libthread_db"><command>libthread_db</command></term>
|
---|
640 | <listitem>
|
---|
641 | <indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
|
---|
642 | <para>contains functions useful for
|
---|
643 | building debuggers for multi-threaded programs.</para>
|
---|
644 | </listitem>
|
---|
645 | </varlistentry>
|
---|
646 |
|
---|
647 | <varlistentry>
|
---|
648 | <term id="libutil"><command>libutil</command></term>
|
---|
649 | <listitem>
|
---|
650 | <indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
|
---|
651 | <para>contains code for "standard" functions used in many different Unix utilities.</para>
|
---|
652 | </listitem>
|
---|
653 | </varlistentry>
|
---|
654 | </variablelist>
|
---|
655 |
|
---|
656 | </sect2>
|
---|
657 |
|
---|
658 | </sect1>
|
---|