[bf8c11f] | 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 |
|
---|
[1bb70b1] | 19 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 20 | href="../common/glibc.xml"
|
---|
| 21 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[bf8c11f] | 22 |
|
---|
| 23 | <sect2 role="installation">
|
---|
| 24 | <title>Installation of Glibc</title>
|
---|
| 25 |
|
---|
| 26 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 27 | href="../common/glibc.xml"
|
---|
[531b5e5] | 28 | xpointer="xpointer(//*[@os='z'])"/>
|
---|
[bf8c11f] | 29 |
|
---|
| 30 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 31 | href="../common/glibc.xml"
|
---|
| 32 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 33 |
|
---|
| 34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 35 | href="../common/glibc.xml"
|
---|
| 36 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 37 |
|
---|
| 38 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 39 | href="../common/glibc.xml"
|
---|
| 40 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 41 |
|
---|
| 42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 43 | href="../common/glibc.xml"
|
---|
| 44 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 45 |
|
---|
| 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 47 | href="../common/glibc.xml"
|
---|
| 48 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 49 |
|
---|
| 50 | <para>Now we make sure the Glibc goes into
|
---|
| 51 | <filename class="directory">/lib</filename>:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput>echo "slibdir=/lib" >> configparms</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 56 | href="../common/glibc.xml"
|
---|
| 57 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
| 60 | --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
|
---|
| 61 | --libexecdir=/usr/lib/glibc --libdir=/usr/lib</userinput></screen>
|
---|
| 62 |
|
---|
| 63 | <variablelist>
|
---|
| 64 | <title>The meaning of the new configure option:</title>
|
---|
| 65 |
|
---|
| 66 | <varlistentry>
|
---|
| 67 | <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>This changes the location of the <command>pt_chown</command>
|
---|
| 70 | program from its default of <filename
|
---|
| 71 | class="directory">/usr/libexec</filename> to <filename
|
---|
| 72 | class="directory">/usr/lib64/glibc</filename>.</para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 | </variablelist>
|
---|
| 76 |
|
---|
| 77 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 78 | href="../common/glibc.xml"
|
---|
| 79 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
| 80 |
|
---|
| 81 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 82 | href="../common/glibc.xml"
|
---|
| 83 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
| 84 |
|
---|
| 85 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 86 | href="../common/glibc.xml"
|
---|
| 87 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 88 |
|
---|
| 89 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 90 | href="../common/glibc.xml"
|
---|
| 91 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 92 |
|
---|
| 93 | <!-- test comments from 64bit which is clean -->
|
---|
| 94 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 95 | href="../multilib/glibc-64bit.xml"
|
---|
| 96 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
| 97 |
|
---|
| 98 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 99 | href="../common/glibc.xml"
|
---|
| 100 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 101 |
|
---|
| 102 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 103 | href="../common/glibc.xml"
|
---|
| 104 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
| 105 |
|
---|
| 106 | <para>The install will finish by checking that everything is correctly installed.
|
---|
| 107 | Unfortunately, it will test for a multilib installation. On common this means
|
---|
| 108 | it will try to test the non-existent 32-bit loader which has a different name
|
---|
| 109 | from the 64-bit loader (unlike on other 64-bit architectures). We fool it by
|
---|
| 110 | creating a symlink to the real loader.</para>
|
---|
| 111 |
|
---|
| 112 | <screen><userinput>ln -s ld-2.3.90.so /lib/ld-linux.so.2</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 115 | href="../common/glibc.xml"
|
---|
| 116 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 117 |
|
---|
| 118 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 119 | href="../common/glibc.xml"
|
---|
| 120 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
| 121 |
|
---|
| 122 | <para>Now we can remove this symlink. We also need to correct the <command>
|
---|
| 123 | /usr/bin/ldd</command> script - if you look at this, you will see it references
|
---|
| 124 | not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker
|
---|
| 125 | is. The following <command>sed</command> will correct this.</para>
|
---|
| 126 |
|
---|
| 127 | <screen><userinput>
|
---|
| 128 | rm /lib/ld-linux.so.2
|
---|
| 129 | cp /usr/bin/ldd{,.bak}
|
---|
| 130 | sed '/RTLDLIST/s%/ld-linux.so.2 /lib64%%' /usr/bin/ldd.bak >/usr/bin/ldd
|
---|
| 131 | </userinput></screen>
|
---|
| 132 |
|
---|
| 133 | <para>Check the script to make sure the sed worked correctly, then delete
|
---|
| 134 | the backup.</para>
|
---|
| 135 |
|
---|
[531b5e5] | 136 | <screen><userinput>rm /usr/bin/ldd.bak</userinput></screen>
|
---|
[bf8c11f] | 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 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 149 | href="../common/glibc.xml"
|
---|
| 150 | xpointer="xpointer(id('conf-ld'))"/>
|
---|
| 151 |
|
---|
| 152 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 153 | href="../common/glibc.xml"
|
---|
| 154 | xpointer="xpointer(id('contents-glibc'))"/>
|
---|
| 155 |
|
---|
| 156 | </sect1>
|
---|