source: BOOK/final-system/x86_64-64/glibc.xml@ dc47e4c

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

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 5.8 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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-glibc" role="wrap">
11 <?dbhtml filename="glibc.html"?>
12
13 <title>Glibc-&glibc-version;</title>
14
15 <indexterm zone="ch-system-glibc">
16 <primary sortas="a-Glibc">Glibc</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
23 href="../common/glibc.xml"
24 xpointer="xpointer(//*[@role='package']/para[1])"/>
25
26 <segmentedlist>
27 <segtitle>&buildtime;</segtitle>
28 <segtitle>&diskspace;</segtitle>
29
30 <seglistitem>
31 <seg>Not checked yet</seg>
32 <seg>Not checked yet</seg>
33 </seglistitem>
34 </segmentedlist>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../common/glibc.xml"
38 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Glibc</title>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../common/glibc.xml"
47 xpointer="xpointer(//*[@os='a'])"/>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/glibc.xml"
51 xpointer="xpointer(//*[@os='b'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../common/glibc.xml"
55 xpointer="xpointer(//*[@os='c'])"/>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../common/glibc.xml"
59 xpointer="xpointer(//*[@os='d'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../common/glibc.xml"
63 xpointer="xpointer(//*[@os='e'])"/>
64
65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
66 href="../common/glibc.xml"
67 xpointer="xpointer(//*[@os='f'])"/>
68
69 <para>Now we make sure the Glibc goes into
70 <filename class="directory">/lib</filename>:</para>
71
72<screen><userinput>echo "slibdir=/lib" &gt;&gt; configparms</userinput></screen>
73
74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
75 href="../common/glibc.xml"
76 xpointer="xpointer(//*[@os='g'])"/>
77
78<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
79 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
80 --libexecdir=/usr/lib/glibc --libdir=/usr/lib</userinput></screen>
81
82 <variablelist>
83 <title>The meaning of the new configure option:</title>
84
85 <varlistentry>
86 <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
87 <listitem>
88 <para>This changes the location of the <command>pt_chown</command>
89 program from its default of <filename
90 class="directory">/usr/libexec</filename> to <filename
91 class="directory">/usr/lib64/glibc</filename>.</para>
92 </listitem>
93 </varlistentry>
94 </variablelist>
95
96 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
97 href="../common/glibc.xml"
98 xpointer="xpointer(//*[@os='j'])"/>
99
100 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
101 href="../common/glibc.xml"
102 xpointer="xpointer(//*[@os='k'])"/>
103
104 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
105 href="../common/glibc.xml"
106 xpointer="xpointer(//*[@os='l'])"/>
107
108 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
109 href="../common/glibc.xml"
110 xpointer="xpointer(//*[@os='m'])"/>
111
112 <!-- test comments from 64bit which is clean -->
113 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
114 href="../multilib/glibc-64bit.xml"
115 xpointer="xpointer(//*[@os='n'])"/>
116
117 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
118 href="../common/glibc.xml"
119 xpointer="xpointer(//*[@os='q'])"/>
120
121 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
122 href="../common/glibc.xml"
123 xpointer="xpointer(//*[@os='r'])"/>
124
125 <para>The install will finish by checking that everything is correctly installed.
126 Unfortunately, it will test for a multilib installation. On common this means
127 it will try to test the non-existent 32-bit loader which has a different name
128 from the 64-bit loader (unlike on other 64-bit architectures). We fool it by
129 creating a symlink to the real loader.</para>
130
131 <screen><userinput>ln -s ld-2.3.90.so /lib/ld-linux.so.2</userinput></screen>
132
133 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
134 href="../common/glibc.xml"
135 xpointer="xpointer(//*[@os='s'])"/>
136
137 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
138 href="../common/glibc.xml"
139 xpointer="xpointer(//*[@os='t'])"/>
140
141 <para>Now we can remove this symlink. We also need to correct the <command>
142 /usr/bin/ldd</command> script - if you look at this, you will see it references
143 not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker
144 is. The following <command>sed</command> will correct this.</para>
145
146 <screen><userinput>
147 rm /lib/ld-linux.so.2
148 cp /usr/bin/ldd{,.bak}
149 sed '/RTLDLIST/s%/ld-linux.so.2 /lib64%%' /usr/bin/ldd.bak >/usr/bin/ldd
150 </userinput></screen>
151
152 <para>Check the script to make sure the sed worked correctly, then delete
153 the backup.</para>
154
155 <screen><userinput>rm /usr/bin/ldd.bak</userinput></screen>
156
157 </sect2>
158
159 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
160 href="../common/glibc.xml"
161 xpointer="xpointer(id('i18n-glibc'))"/>
162
163 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
164 href="../common/glibc.xml"
165 xpointer="xpointer(id('conf-glibc'))"/>
166
167 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
168 href="../common/glibc.xml"
169 xpointer="xpointer(id('conf-ld'))"/>
170
171 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
172 href="../common/glibc.xml"
173 xpointer="xpointer(id('contents-glibc'))"/>
174
175</sect1>
Note: See TracBrowser for help on using the repository browser.