1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Zlib</title>
|
---|
5 |
|
---|
6 | <para>Zlib has a potential buffer overflow in its gzprintf() function,
|
---|
7 | that, though difficult to take advantage of, should be taken care of. Do
|
---|
8 | so by applying this patch:</para>
|
---|
9 |
|
---|
10 | <para><screen><userinput>patch -Np1 -i ../zlib-&zlib-patch-version;.patch</userinput></screen></para>
|
---|
11 |
|
---|
12 | <para>Prepare Zlib to be compiled:</para>
|
---|
13 |
|
---|
14 | <para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \
|
---|
15 | ./configure --prefix=/usr --shared</userinput></screen></para>
|
---|
16 |
|
---|
17 | <para>The <emphasis>-fPIC</emphasis> flag helps to assure
|
---|
18 | quality in the dynamic zlib library.</para>
|
---|
19 |
|
---|
20 | <para><screen><userinput>make</userinput></screen></para>
|
---|
21 |
|
---|
22 | <para>Install the libraries:</para>
|
---|
23 |
|
---|
24 | <para><screen><userinput>make install
|
---|
25 | make clean
|
---|
26 | ./configure --prefix=/usr
|
---|
27 | make
|
---|
28 | make test
|
---|
29 | make install</userinput></screen></para>
|
---|
30 |
|
---|
31 | <para>The shared zlib library should be installed in the
|
---|
32 | <filename>/lib</filename> directory. That way, in the event
|
---|
33 | that you must boot without the <filename>/usr</filename>
|
---|
34 | directory, vital system programs will still have access to
|
---|
35 | the library:</para>
|
---|
36 |
|
---|
37 | <para><screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen></para>
|
---|
38 |
|
---|
39 | <para>The <filename>/usr/lib/libz.so</filename> symlink is
|
---|
40 | linked to a file which no longer exists, because we moved
|
---|
41 | it. Create a symbolic link to the new location of the
|
---|
42 | library:</para>
|
---|
43 |
|
---|
44 | <para><screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen></para>
|
---|
45 |
|
---|
46 | <para>Zlib does not install its manual page. Issue the
|
---|
47 | following command to install this documentation:</para>
|
---|
48 |
|
---|
49 | <para><screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen></para>
|
---|
50 |
|
---|
51 | </sect2>
|
---|