[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-zlib" role="wrap">
|
---|
| 11 | <?dbhtml filename="zlib.html"?>
|
---|
| 12 |
|
---|
| 13 | <title>Zlib-&zlib-version;</title>
|
---|
| 14 |
|
---|
| 15 | <indexterm zone="ch-system-zlib">
|
---|
| 16 | <primary sortas="a-Zlib">Zlib</primary>
|
---|
| 17 | </indexterm>
|
---|
| 18 |
|
---|
| 19 | <sect2 role="package">
|
---|
| 20 | <title/>
|
---|
| 21 |
|
---|
| 22 | <para>The Zlib package contains compression and decompression routines
|
---|
| 23 | used by some programs.</para>
|
---|
| 24 |
|
---|
| 25 | <segmentedlist>
|
---|
| 26 | <segtitle>&buildtime;</segtitle>
|
---|
| 27 | <segtitle>&diskspace;</segtitle>
|
---|
| 28 |
|
---|
| 29 | <seglistitem>
|
---|
| 30 | <seg>Not checked yet</seg>
|
---|
| 31 | <seg>Not checked yet</seg>
|
---|
| 32 | </seglistitem>
|
---|
| 33 | </segmentedlist>
|
---|
| 34 |
|
---|
| 35 | <segmentedlist>
|
---|
| 36 | <segtitle>&dependencies;</segtitle>
|
---|
| 37 |
|
---|
| 38 | <seglistitem>
|
---|
| 39 | <seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg>
|
---|
| 40 | </seglistitem>
|
---|
| 41 | </segmentedlist>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
| 44 |
|
---|
| 45 | <sect2 role="installation">
|
---|
| 46 | <title>Installation of Zlib</title>
|
---|
| 47 |
|
---|
| 48 | <note os="a">
|
---|
| 49 | <para>Zlib is known to build its shared library incorrectly if
|
---|
| 50 | <envar>CFLAGS</envar> is specified in the environment. If using a
|
---|
| 51 | specified <envar>CFLAGS</envar> variable, be sure to add the
|
---|
| 52 | <option>-fPIC</option> directive to the <envar>CFLAGS</envar>
|
---|
| 53 | variable for the duration of the configure command below, then
|
---|
| 54 | remove it afterwards.</para>
|
---|
| 55 | </note>
|
---|
| 56 |
|
---|
| 57 | <para os="b">Prepare Zlib for compilation:</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
---|
| 60 |
|
---|
| 61 | <para os="c">Compile the package:</para>
|
---|
| 62 |
|
---|
| 63 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 64 |
|
---|
| 65 | <para os="e">To test the results, issue:
|
---|
| 66 | <userinput>make check</userinput>.</para>
|
---|
| 67 |
|
---|
| 68 | <para os="f">Install the shared library:</para>
|
---|
| 69 |
|
---|
| 70 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
| 71 |
|
---|
| 72 | <para os="h">The previous command installed a <filename
|
---|
| 73 | class="extension">.so</filename> file in <filename
|
---|
| 74 | class="directory">/lib</filename>. We will remove it and relink it into
|
---|
| 75 | <filename class="directory">/usr/lib</filename>:</para>
|
---|
| 76 |
|
---|
| 77 | <screen os="i"><userinput>rm /lib/libz.so
|
---|
| 78 | ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
---|
| 79 |
|
---|
| 80 | <para os="j">Build the static library:</para>
|
---|
| 81 |
|
---|
| 82 | <screen><userinput>make clean
|
---|
| 83 | ./configure --prefix=/usr
|
---|
| 84 | make</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para os="k">To test the results again, issue:
|
---|
| 87 | <userinput>make check</userinput>.</para>
|
---|
| 88 |
|
---|
| 89 | <para os="l">Install the static library:</para>
|
---|
| 90 |
|
---|
| 91 | <screen os="m"><userinput>make install</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | <para os="n">Fix the permissions on the static library:</para>
|
---|
| 94 |
|
---|
| 95 | <screen os="o"><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 id="contents-zlib" role="content">
|
---|
| 100 | <title>Contents of Zlib</title>
|
---|
| 101 |
|
---|
| 102 | <segmentedlist>
|
---|
| 103 | <segtitle>Installed libraries</segtitle>
|
---|
| 104 |
|
---|
| 105 | <seglistitem>
|
---|
| 106 | <seg>libz.[a,so]</seg>
|
---|
| 107 | </seglistitem>
|
---|
| 108 | </segmentedlist>
|
---|
| 109 |
|
---|
| 110 | <variablelist>
|
---|
| 111 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 112 | <?dbfo list-presentation="list"?>
|
---|
| 113 | <?dbhtml list-presentation="table"?>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="libz">
|
---|
| 116 | <term><filename class="libraryfile">libz</filename></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Contains compression and decompression
|
---|
| 119 | functions used by some programs</para>
|
---|
| 120 | <indexterm zone="ch-system-zlib libz">
|
---|
| 121 | <primary sortas="c-libz">libz</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | </variablelist>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | </sect1>
|
---|