source: BOOK/final-system/mips64/glibc-64bit.xml@ fb28751

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fb28751 was 014d098b, checked in by Jim Gifford <clfs@…>, 19 years ago

r710@server (orig r708): ken | 2005-11-15 14:45:37 -0800
Change text for >2 directories in ld.so.conf. Thanks to G. Moko

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-glibc" role="wrap">
9 <?dbhtml filename="glibc-64bit.html"?>
10
11 <title>Glibc-&glibc-version; 64-Bit</title>
12
13 <indexterm zone="ch-system-glibc">
14 <primary sortas="a-Glibc">Glibc</primary>
15 </indexterm>
16
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18 href="glibc.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
20
21 <sect2 role="installation">
22 <title>Installation of Glibc</title>
23
24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
25 href="glibc.xml"
26 xpointer="xpointer(//*[@os='b'])"/>
27
28 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
29 href="../common/glibc.xml"
30 xpointer="xpointer(//*[@os='c'])"/>
31
32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
33 href="../common/glibc.xml"
34 xpointer="xpointer(//*[@os='d'])"/>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../mips/glibc.xml"
38 xpointer="xpointer(//*[@os='m1'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../mips/glibc.xml"
42 xpointer="xpointer(//*[@os='m2'])"/>
43
44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45 href="glibc.xml"
46 xpointer="xpointer(//*[@os='e'])"/>
47
48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
49 href="glibc.xml"
50 xpointer="xpointer(//*[@os='f'])"/>
51
52 <para>Now we make sure the Glibc goes into
53 <filename class="directory">/lib64</filename>:</para>
54
55<screen><userinput>echo "slibdir=/lib64" &gt;&gt; configparms</userinput></screen>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="glibc.xml"
59 xpointer="xpointer(//*[@os='g'])"/>
60
61<screen><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
62 ../glibc-&glibc-version;/configure --prefix=/usr \
63 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
64 --libexecdir=/usr/lib64/glibc --libdir=/usr/lib64</userinput></screen>
65
66 <variablelist>
67 <title>The meaning of the new configure option:</title>
68
69 <varlistentry>
70 <term><parameter>--libexecdir=/usr/lib64/glibc</parameter></term>
71 <listitem>
72 <para>This changes the location of the <command>pt_chown</command>
73 program from its default of <filename
74 class="directory">/usr/libexec</filename> to <filename
75 class="directory">/usr/lib64/glibc</filename>.</para>
76 </listitem>
77 </varlistentry>
78 </variablelist>
79
80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
81 href="glibc.xml"
82 xpointer="xpointer(//*[@os='j'])"/>
83
84 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
85 href="glibc.xml"
86 xpointer="xpointer(//*[@os='k'])"/>
87
88 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
89 href="glibc.xml"
90 xpointer="xpointer(//*[@os='l'])"/>
91
92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
93 href="glibc.xml"
94 xpointer="xpointer(//*[@os='m'])"/>
95
96<!-- items n,o,p here are now the master, not multilib, because
97 the tests are known to all pass on multilib_64 -->
98
99<screen os="n"><userinput>make check</userinput></screen>
100
101 <para os="o">The Glibc test suite is highly dependent on certain functions of
102 the host system, in particular the kernel. In general, the Glibc test
103 suite is always expected to pass. However, in certain circumstances,
104 some failures are unavoidable. This is a list of the most common
105 issues:</para>
106
107 <itemizedlist os="p">
108 <listitem>
109 <para>The <emphasis>math</emphasis> tests sometimes fail.
110 Certain optimization settings are known to be a
111 factor here.</para>
112 </listitem>
113 <listitem>
114 <para>The <emphasis>gettext</emphasis> test sometimes fails due to
115 host system issues. The exact reasons are not yet clear.</para>
116 </listitem>
117 <listitem>
118 <para>If you have mounted the LFS partition with the
119 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test
120 will fail. As mentioned in <xref linkend="ch-partitioning-mounting"/>,
121 do not use the <parameter>noatime</parameter> option while building
122 LFS.</para>
123 </listitem>
124 <listitem>
125 <para>When running on older and slower hardware, some tests
126 can fail because of test timeouts being exceeded.</para>
127 </listitem>
128 </itemizedlist>
129
130 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
131 href="glibc.xml"
132 xpointer="xpointer(//*[@os='s'])"/>
133
134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="glibc.xml"
136 xpointer="xpointer(//*[@os='t'])"/>
137
138 </sect2>
139
140 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
141 href="../common/glibc.xml"
142 xpointer="xpointer(id('i18n-glibc'))"/>
143
144 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
145 href="../common/glibc.xml"
146 xpointer="xpointer(id('conf-glibc'))"/>
147
148 <sect2 id="conf-ld" role="configuration">
149 <title>Configuring Dynamic Loader</title>
150
151 <indexterm zone="conf-ld">
152 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
153 </indexterm>
154
155 <para>By default, the dynamic loader (<filename
156 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
157 <filename class="directory">/lib</filename> and <filename
158 class="directory">/usr/lib</filename> for dynamic libraries that are
159 needed by programs as they are run. However, if there are libraries in
160 directories other than <filename class="directory">/lib</filename> and
161 <filename class="directory">/usr/lib</filename>, these need to be
162 added to the <filename>/etc/ld.so.conf</filename> file in order
163 for the dynamic loader to find them. Some directories that are commonly
164 known to contain additional libraries are
165 <filename class="directory">/usr/local/lib</filename>,
166 <filename class="directory">/usr/local/lib32</filename>,
167 <filename class="directory">/usr/local/lib64</filename>,
168 <filename class="directory">/opt/lib</filename>,
169 <filename class="directory">/opt/lib32</filename>,
170 and <filename class="directory">/opt/lib64</filename>,
171 so add those directories to the dynamic loader's search path.</para>
172
173 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
174 following:</para>
175
176<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
177<literal># Begin /etc/ld.so.conf
178
179/usr/local/lib
180/usr/local/lib32
181/usr/local/lib64
182/opt/lib
183/opt/lib32
184/opt/lib64
185
186# End /etc/ld.so.conf</literal>
187EOF</userinput></screen>
188
189 </sect2>
190
191 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
192 href="../common/glibc.xml"
193 xpointer="xpointer(id('contents-glibc'))"/>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.