[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[ddd5542] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-zlib" role="wrap">
|
---|
[ddd5542] | 9 | <?dbhtml filename="zlib.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>zlib</productname>
|
---|
| 13 | <productnumber>&zlib-version;</productnumber>
|
---|
| 14 | <address>&zlib-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[ddd5542] | 17 | <title>Zlib-&zlib-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-zlib">
|
---|
| 20 | <primary sortas="a-Zlib">Zlib</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[24380c7] | 25 |
|
---|
[ddd5542] | 26 | <para>The Zlib package contains compression and decompression routines used by
|
---|
| 27 | some programs.</para>
|
---|
[673b0d8] | 28 |
|
---|
[ddd5542] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[ddd5542] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&zlib-ch6-sbu;</seg>
|
---|
| 35 | <seg>&zlib-ch6-du;</seg>
|
---|
[ddd5542] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[673b0d8] | 38 |
|
---|
[ddd5542] | 39 | </sect2>
|
---|
[81fd230] | 40 |
|
---|
[ddd5542] | 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Zlib</title>
|
---|
| 43 |
|
---|
[2998724] | 44 | <para>First, fix a typo in the package header file:</para>
|
---|
[3524efb] | 45 |
|
---|
| 46 | <screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>
|
---|
| 47 |
|
---|
[85d68de] | 48 | <para>Prepare Zlib for compilation:</para>
|
---|
[4a8b9b3] | 49 |
|
---|
[98a92531] | 50 | <screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <variablelist>
|
---|
| 53 | <title>The meaning of the new configure environment variable:</title>
|
---|
| 54 |
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Setting CFLAGS overrides the default optimization in the
|
---|
[8aaa1278] | 59 | package to prevent some run time errors. Note that the -mstackrealign
|
---|
[7a8f9f3f] | 60 | may cause build failures in non-Intel architecture systems.</para>
|
---|
[98a92531] | 61 | </listitem>
|
---|
| 62 | </varlistentry>
|
---|
| 63 | </variablelist>
|
---|
| 64 |
|
---|
| 65 |
|
---|
[4248b0e] | 66 |
|
---|
[ddd5542] | 67 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 68 |
|
---|
[0445a3d] | 69 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 70 |
|
---|
[0445a3d] | 71 | <para>To test the results, issue:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[dfddb12] | 74 |
|
---|
[85d68de] | 75 | <para>Install the package:</para>
|
---|
[ea2dfe7] | 76 |
|
---|
| 77 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 78 |
|
---|
[85d68de] | 79 | <para>The shared library needs to be moved to
|
---|
| 80 | <filename class="directory">/lib</filename>, and as a result the
|
---|
| 81 | <filename class="extension">.so</filename> file in
|
---|
| 82 | <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
---|
[ea2dfe7] | 83 |
|
---|
[c7a2699] | 84 | <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
|
---|
[ea2dfe7] | 85 | ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
---|
| 86 |
|
---|
[ddd5542] | 87 | </sect2>
|
---|
[24380c7] | 88 |
|
---|
[ddd5542] | 89 | <sect2 id="contents-zlib" role="content">
|
---|
| 90 | <title>Contents of Zlib</title>
|
---|
[5888299] | 91 |
|
---|
[ddd5542] | 92 | <segmentedlist>
|
---|
| 93 | <segtitle>Installed libraries</segtitle>
|
---|
[673b0d8] | 94 |
|
---|
[ddd5542] | 95 | <seglistitem>
|
---|
[0090db5] | 96 | <seg>libz.{a,so}</seg>
|
---|
[ddd5542] | 97 | </seglistitem>
|
---|
| 98 | </segmentedlist>
|
---|
[81fd230] | 99 |
|
---|
[ddd5542] | 100 | <variablelist>
|
---|
| 101 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 102 | <?dbfo list-presentation="list"?>
|
---|
| 103 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 104 |
|
---|
[ddd5542] | 105 | <varlistentry id="libz">
|
---|
| 106 | <term><filename class="libraryfile">libz</filename></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Contains compression and decompression functions used by
|
---|
| 109 | some programs</para>
|
---|
| 110 | <indexterm zone="ch-system-zlib libz">
|
---|
| 111 | <primary sortas="c-libz">libz</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
[673b0d8] | 115 |
|
---|
[ddd5542] | 116 | </variablelist>
|
---|
[673b0d8] | 117 |
|
---|
[ddd5542] | 118 | </sect2>
|
---|
[81fd230] | 119 |
|
---|
[ddd5542] | 120 | </sect1>
|
---|