From 73aedd1d35747ff2fad4ddf514dca810721a612a Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sat, 1 Nov 2003 22:31:50 +0000 Subject: Merging caption and installation sections for all packages in chapters 5 and 6. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/zlib.xml | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) (limited to 'chapter06/zlib.xml') diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index 0a204357d..fba00043f 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -7,7 +7,71 @@ Estimated required disk space: &zlib-compsize; &aa-zlib-shortdesc; &aa-zlib-dep; -&c6-zlib-inst; + +   + + +Installation of Zlib + +Zlib has a potential buffer overflow in its +gzprintf() function, that, though difficult to take +advantage of, should be taken care of by applying this patch: + +patch -Np1 -i ../&zlib-patch; + +Now prepare Zlib for compilation: + +./configure --prefix=/usr --shared + +Note: Zlib is known to build its shared library incorrectly if a CFLAGS +is specified in the environment. If you are using your own CFLAGS variables, +ensure you add the -fPIC directive during +this stage, and remove it afterwards. + +Compile the package: + +make + +Install the shared libraries: + +make install + +Now also build the non-shared libraries: +make clean +./configure --prefix=/usr +make + +This package has a test suite available which can perform a number of +checks to ensure it built correctly. Should you choose to run it, the +following command will do so: + +make test + +And install the package: + +make install + +The shared Zlib library should be installed in the +/lib directory. That way, in the event +that you must boot without the /usr +directory, vital system programs will still have access to +the library: + +mv /usr/lib/libz.so.* /lib + +The /usr/lib/libz.so 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: + +ln -sf ../../lib/libz.so.1 /usr/lib/libz.so + +Zlib does not install its manual page. Issue the +following command to install this documentation: + +cp zlib.3 /usr/share/man/man3 + + -- cgit v1.2.3-54-g00ecf