Changeset e02afe0 for chapter06/zlib.xml


Ignore:
Timestamp:
02/10/2006 07:38:49 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
851829a
Parents:
529c103
Message:

Poerted r7369 from trunk to alphabetical branch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/alphabetical/BOOK@7371 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/zlib.xml

    r529c103 re02afe0  
    11<?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" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-system-zlib" role="wrap">
    7 <title>Zlib-&zlib-version;</title>
    8 <?dbhtml filename="zlib.html"?>
     9  <?dbhtml filename="zlib.html"?>
    910
    10 <indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>
     11  <title>Zlib-&zlib-version;</title>
    1112
    12 <sect2 role="package"><title/>
    13 <para>The Zlib package contains compression and decompression routines used by
    14 some programs.</para>
     13  <indexterm zone="ch-system-zlib">
     14    <primary sortas="a-Zlib">Zlib</primary>
     15  </indexterm>
    1516
    16 <segmentedlist>
    17 <segtitle>&buildtime;</segtitle>
    18 <segtitle>&diskspace;</segtitle>
    19 <seglistitem><seg>0.1 SBU</seg><seg>2.7 MB</seg></seglistitem>
    20 </segmentedlist>
     17  <sect2 role="package">
     18    <title/>
    2119
    22 <segmentedlist>
    23 <segtitle>&dependencies;</segtitle>
    24 <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg></seglistitem>
    25 </segmentedlist>
    26 </sect2>
     20    <para>The Zlib package contains compression and decompression routines used by
     21    some programs.</para>
    2722
    28 <sect2 role="installation">
    29 <title>Installation of Zlib</title>
     23    <segmentedlist>
     24      <segtitle>&buildtime;</segtitle>
     25      <segtitle>&diskspace;</segtitle>
    3026
    31 <note><para>Zlib is known to build its shared library incorrectly if
    32 <envar>CFLAGS</envar> is specified in the environment. If using a
    33 specified <envar>CFLAGS</envar>
    34 variable, be sure to add the <parameter>-fPIC</parameter> directive to
    35 the <envar>CFLAGS</envar> variable for the duration of the
    36 configure command below, then remove it afterwards.</para></note>
     27      <seglistitem>
     28        <seg>0.1 SBU</seg>
     29        <seg>2.7 MB</seg>
     30      </seglistitem>
     31    </segmentedlist>
    3732
    38 <para>Prepare Zlib for compilation:</para>
     33    <segmentedlist>
     34      <segtitle>&dependencies;</segtitle>
     35
     36      <seglistitem>
     37        <seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg>
     38      </seglistitem>
     39    </segmentedlist>
     40
     41  </sect2>
     42
     43  <sect2 role="installation">
     44    <title>Installation of Zlib</title>
     45
     46    <note>
     47      <para>Zlib is known to build its shared library incorrectly if
     48      <envar>CFLAGS</envar> is specified in the environment. If using
     49      a specified <envar>CFLAGS</envar> variable, be sure to add the
     50      <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
     51      variable for the duration of the configure command below, then
     52      remove it afterwards.</para>
     53    </note>
     54
     55    <para>Prepare Zlib for compilation:</para>
    3956
    4057<screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
    4158
    42 <para>Compile the package:</para>
     59    <para>Compile the package:</para>
    4360
    4461<screen><userinput>make</userinput></screen>
    4562
    46 <para>To test the results, issue:
    47 <userinput>make check</userinput>.</para>
     63    <para>To test the results, issue:
     64    <userinput>make check</userinput>.</para>
    4865
    49 <para>Install the shared library:</para>
     66    <para>Install the shared library:</para>
    5067
    5168<screen><userinput>make install</userinput></screen>
    5269
    53 <para>The previous command installed a <filename
    54 class="extension">.so</filename> file in <filename
    55 class="directory">/lib</filename>. We will remove it and relink it into
    56 <filename class="directory">/usr/lib</filename>:</para>
     70    <para>The previous command installed a <filename
     71    class="extension">.so</filename> file in <filename
     72    class="directory">/lib</filename>. We will remove it and relink it into
     73    <filename class="directory">/usr/lib</filename>:</para>
    5774
    5875<screen><userinput>rm -v /lib/libz.so
    5976ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
    6077
    61 <para>Build the static library:</para>
     78    <para>Build the static library:</para>
    6279
    6380<screen><userinput>make clean
     
    6582make</userinput></screen>
    6683
    67 <para>To test the results again, issue:
    68 <userinput>make check</userinput>.</para>
     84    <para>To test the results again, issue:
     85    <userinput>make check</userinput>.</para>
    6986
    70 <para>Install the static library:</para>
     87    <para>Install the static library:</para>
    7188
    7289<screen><userinput>make install</userinput></screen>
    7390
    74 <para>Fix the permissions on the static library:</para>
     91    <para>Fix the permissions on the static library:</para>
    7592
    7693<screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
    7794
    78 </sect2>
     95  </sect2>
    7996
     97  <sect2 id="contents-zlib" role="content">
     98    <title>Contents of Zlib</title>
    8099
    81 <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
     100    <segmentedlist>
     101      <segtitle>Installed libraries</segtitle>
    82102
    83 <segmentedlist>
    84 <segtitle>Installed libraries</segtitle>
    85 <seglistitem><seg>libz.[a,so]</seg></seglistitem>
    86 </segmentedlist>
     103      <seglistitem>
     104        <seg>libz.[a,so]</seg>
     105      </seglistitem>
     106    </segmentedlist>
    87107
    88 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
    89 <?dbfo list-presentation="list"?>
    90 <?dbhtml list-presentation="table"?>
     108    <variablelist>
     109      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     110      <?dbfo list-presentation="list"?>
     111      <?dbhtml list-presentation="table"?>
    91112
    92 <varlistentry id="libz">
    93 <term><filename class="libraryfile">libz</filename></term>
    94 <listitem>
    95 <para>Contains compression and decompression
    96 functions used by some programs</para>
    97 <indexterm zone="ch-system-zlib libz"><primary sortas="c-libz">libz</primary></indexterm>
    98 </listitem>
    99 </varlistentry>
    100 </variablelist>
     113      <varlistentry id="libz">
     114        <term><filename class="libraryfile">libz</filename></term>
     115        <listitem>
     116          <para>Contains compression and decompression functions used by
     117          some programs</para>
     118          <indexterm zone="ch-system-zlib libz">
     119            <primary sortas="c-libz">libz</primary>
     120          </indexterm>
     121        </listitem>
     122      </varlistentry>
    101123
    102 </sect2>
     124    </variablelist>
     125
     126  </sect2>
    103127
    104128</sect1>
    105 
Note: See TracChangeset for help on using the changeset viewer.