1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
5 | %general-entities;
|
---|
6 | %patches-entities;
|
---|
7 | ]>
|
---|
8 | <sect1 id="ch-system-zlib" role="wrap">
|
---|
9 | <title>Zlib-&zlib-version;</title>
|
---|
10 | <?dbhtml filename="zlib.html"?>
|
---|
11 |
|
---|
12 | <indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>
|
---|
13 |
|
---|
14 | <sect2 role="package"><title/>
|
---|
15 | <para>The Zlib package contains compression and decompression routines used by
|
---|
16 | some programs.</para>
|
---|
17 |
|
---|
18 | <segmentedlist>
|
---|
19 | <segtitle>&buildtime;</segtitle>
|
---|
20 | <segtitle>&diskspace;</segtitle>
|
---|
21 | <seglistitem><seg>0.1 SBU</seg><seg>2.7 MB</seg></seglistitem>
|
---|
22 | </segmentedlist>
|
---|
23 |
|
---|
24 | <segmentedlist>
|
---|
25 | <segtitle>&dependencies;</segtitle>
|
---|
26 | <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg></seglistitem>
|
---|
27 | </segmentedlist>
|
---|
28 | </sect2>
|
---|
29 |
|
---|
30 | <sect2 role="installation">
|
---|
31 | <title>Installation of Zlib</title>
|
---|
32 |
|
---|
33 | <note><para>Zlib is known to build its shared library incorrectly if
|
---|
34 | <envar>CFLAGS</envar> is specified in the environment. If using a
|
---|
35 | specified <envar>CFLAGS</envar>
|
---|
36 | variable, be sure to add the <parameter>-fPIC</parameter> directive to
|
---|
37 | the <envar>CFLAGS</envar> variable for the duration of the
|
---|
38 | configure command below, then remove it afterwards.</para></note>
|
---|
39 |
|
---|
40 | <para>Prepare Zlib for compilation:</para>
|
---|
41 |
|
---|
42 | <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
---|
43 |
|
---|
44 | <para>Compile the package:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>make</userinput></screen>
|
---|
47 |
|
---|
48 | <para>To test the results, issue:
|
---|
49 | <userinput>make check</userinput>.</para>
|
---|
50 |
|
---|
51 | <para>Install the shared library:</para>
|
---|
52 |
|
---|
53 | <screen><userinput>make install</userinput></screen>
|
---|
54 |
|
---|
55 | <para>The previous command installed a <filename
|
---|
56 | class="extension">.so</filename> file in <filename
|
---|
57 | class="directory">/lib</filename>. We will remove it and relink it into
|
---|
58 | <filename class="directory">/usr/lib</filename>:</para>
|
---|
59 |
|
---|
60 | <screen><userinput>rm -v /lib/libz.so
|
---|
61 | ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
---|
62 |
|
---|
63 | <para>Build the static library:</para>
|
---|
64 |
|
---|
65 | <screen><userinput>make clean
|
---|
66 | ./configure --prefix=/usr
|
---|
67 | make</userinput></screen>
|
---|
68 |
|
---|
69 | <para>To test the results again, issue:
|
---|
70 | <userinput>make check</userinput>.</para>
|
---|
71 |
|
---|
72 | <para>Install the static library:</para>
|
---|
73 |
|
---|
74 | <screen><userinput>make install</userinput></screen>
|
---|
75 |
|
---|
76 | <para>Fix the permissions on the static library:</para>
|
---|
77 |
|
---|
78 | <screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 |
|
---|
83 | <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
|
---|
84 |
|
---|
85 | <segmentedlist>
|
---|
86 | <segtitle>Installed libraries</segtitle>
|
---|
87 | <seglistitem><seg>libz.[a,so]</seg></seglistitem>
|
---|
88 | </segmentedlist>
|
---|
89 |
|
---|
90 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
91 | <?dbfo list-presentation="list"?>
|
---|
92 | <?dbhtml list-presentation="table"?>
|
---|
93 |
|
---|
94 | <varlistentry id="libz">
|
---|
95 | <term><filename class="libraryfile">libz</filename></term>
|
---|
96 | <listitem>
|
---|
97 | <para>Contains compression and decompression
|
---|
98 | functions used by some programs</para>
|
---|
99 | <indexterm zone="ch-system-zlib libz"><primary sortas="c-libz">libz</primary></indexterm>
|
---|
100 | </listitem>
|
---|
101 | </varlistentry>
|
---|
102 | </variablelist>
|
---|
103 |
|
---|
104 | </sect2>
|
---|
105 |
|
---|
106 | </sect1>
|
---|
107 |
|
---|