2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-10 19:05:30 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-zlib" role="wrap">
|
2006-02-10 19:05:30 +00:00
|
|
|
<?dbhtml filename="zlib.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>zlib</productname>
|
|
|
|
<productnumber>&zlib-version;</productnumber>
|
|
|
|
<address>&zlib-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<title>Zlib-&zlib-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-zlib">
|
|
|
|
<primary sortas="a-Zlib">Zlib</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>The Zlib package contains compression and decompression routines used by
|
|
|
|
some programs.</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&zlib-ch6-sbu;</seg>
|
|
|
|
<seg>&zlib-ch6-du;</seg>
|
2006-02-10 19:05:30 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
2010-06-27 05:40:36 +01:00
|
|
|
<para>First, fix a typo in the package header file:</para>
|
2010-06-27 05:34:24 +01:00
|
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>
|
|
|
|
|
2010-04-12 18:44:04 +01:00
|
|
|
<para>Prepare Zlib for compilation:</para>
|
2009-05-17 03:08:02 +01:00
|
|
|
|
2010-06-27 05:04:10 +01:00
|
|
|
<screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the new configure environment variable:</title>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Setting CFLAGS overrides the default optimization in the
|
2010-08-15 20:37:38 +01:00
|
|
|
package to prevent some run time errors. Note that the -mstackrealign
|
2010-10-28 15:13:07 +01:00
|
|
|
may cause build failures in non-Intel architecture systems.</para>
|
2010-06-27 05:04:10 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
|
2004-02-04 22:22:26 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<para>To test the results, issue:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
2003-11-27 02:32:47 +00:00
|
|
|
|
2010-04-12 18:44:04 +01:00
|
|
|
<para>Install the package:</para>
|
2009-05-27 07:33:49 +01:00
|
|
|
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
2010-04-12 18:44:04 +01:00
|
|
|
<para>The shared library needs to be moved to
|
|
|
|
<filename class="directory">/lib</filename>, and as a result the
|
|
|
|
<filename class="extension">.so</filename> file in
|
|
|
|
<filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
2009-05-27 07:33:49 +01:00
|
|
|
|
2010-04-13 05:16:10 +01:00
|
|
|
<screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
|
2009-05-27 07:33:49 +01:00
|
|
|
ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 id="contents-zlib" role="content">
|
|
|
|
<title>Contents of Zlib</title>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed libraries</segtitle>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
2006-04-14 10:37:17 +01:00
|
|
|
<seg>libz.{a,so}</seg>
|
2006-02-10 19:05:30 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<varlistentry id="libz">
|
|
|
|
<term><filename class="libraryfile">libz</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Contains compression and decompression functions used by
|
|
|
|
some programs</para>
|
|
|
|
<indexterm zone="ch-system-zlib libz">
|
|
|
|
<primary sortas="c-libz">libz</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect1>
|