2003-01-16 00:59:20 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2002-08-04 15:59:31 +01:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
2003-05-11 16:09:30 +01:00
|
|
|
<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>
|
|
|
|
|
2003-05-12 23:03:49 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../zlib-&zlib-patch-version;.patch</userinput></screen></para>
|
2003-05-11 16:09:30 +01:00
|
|
|
|
2003-01-16 00:59:20 +00:00
|
|
|
<para>Prepare Zlib to be compiled:</para>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2003-01-06 16:04:14 +00:00
|
|
|
<para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \
|
2003-01-16 00:59:20 +00:00
|
|
|
./configure --prefix=/usr --shared</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>The <emphasis>-fPIC</emphasis> flag helps to assure
|
|
|
|
quality in the dynamic zlib library.</para>
|
|
|
|
|
2003-05-11 18:03:47 +01:00
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
2003-01-16 00:59:20 +00:00
|
|
|
|
|
|
|
<para>Install the libraries:</para>
|
|
|
|
|
2003-05-13 08:38:47 +01:00
|
|
|
<para><screen><userinput>make install
|
|
|
|
make clean
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make test
|
2003-05-11 18:03:47 +01:00
|
|
|
make install</userinput></screen></para>
|
2003-01-16 00:59:20 +00:00
|
|
|
|
|
|
|
<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
|
2003-01-27 22:10:07 +00:00
|
|
|
the library:</para>
|
2003-01-16 00:59:20 +00:00
|
|
|
|
|
|
|
<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>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
|
|
|
</sect2>
|