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