Indenting chapter 6, part 2.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7324 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Manuel Canales Esparcia 2006-02-01 20:41:29 +00:00
parent 50e693d738
commit 92474b4514
3 changed files with 480 additions and 362 deletions

View File

@ -1,122 +1,154 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent"> <!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities; %general-entities;
]> ]>
<sect1 id="ch-system-bash" role="wrap"> <sect1 id="ch-system-bash" role="wrap">
<title>Bash-&bash-version;</title> <?dbhtml filename="bash.html"?>
<?dbhtml filename="bash.html"?>
<indexterm zone="ch-system-bash"><primary sortas="a-Bash">Bash</primary></indexterm> <title>Bash-&bash-version;</title>
<sect2 role="package"><title/> <indexterm zone="ch-system-bash">
<para>The Bash package contains the Bourne-Again SHell.</para> <primary sortas="a-Bash">Bash</primary>
</indexterm>
<segmentedlist> <sect2 role="package">
<segtitle>&buildtime;</segtitle> <title/>
<segtitle>&diskspace;</segtitle>
<seglistitem><seg>1.2 SBU</seg><seg>24.6 MB</seg></seglistitem>
</segmentedlist>
<segmentedlist> <para>The Bash package contains the Bourne-Again SHell.</para>
<segtitle>&dependencies;</segtitle>
<seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
GCC, Glibc, Grep, Make, Ncurses, and Sed.</seg></seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation"> <segmentedlist>
<title>Installation of Bash</title> <segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<para>If you downloaded the Bash documentation tarball and wish to install HTML <seglistitem>
documentation, issue the following commands:</para> <seg>1.2 SBU</seg>
<seg>24.6 MB</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make,
Ncurses, and Sed.</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Bash</title>
<para>If you downloaded the Bash documentation tarball and wish to install
HTML documentation, issue the following commands:</para>
<screen><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &amp;&amp; <screen><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &amp;&amp;
sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
Makefile.in</userinput></screen> Makefile.in</userinput></screen>
<para>Prepare Bash for compilation:</para> <para>Prepare Bash for compilation:</para>
<screen><userinput>./configure --prefix=/usr --bindir=/bin \ <screen><userinput>./configure --prefix=/usr --bindir=/bin \
--without-bash-malloc --with-installed-readline</userinput></screen> --without-bash-malloc --with-installed-readline</userinput></screen>
<para>The meaning of the configure options:</para> <variablelist>
<title>The meaning of the configure options:</title>
<variablelist> <varlistentry>
<varlistentry> <term><parameter>--with-installed-readline</parameter></term>
<term><parameter>--with-installed-readline</parameter></term> <listitem>
<listitem><para>This option tells Bash to use the <para>This option tells Bash to use the <filename
<filename class="libraryfile">readline</filename> library that is already installed class="libraryfile">readline</filename> library that is already
on the system rather than using its own readline version.</para></listitem> installed on the system rather than using its own readline
</varlistentry> version.</para>
</variablelist> </listitem>
</varlistentry>
<para>Compile the package:</para> </variablelist>
<para>Compile the package:</para>
<screen><userinput>make</userinput></screen> <screen><userinput>make</userinput></screen>
<para>To test the results, issue: <para>To test the results, issue:
<userinput>make tests</userinput>.</para> <userinput>make tests</userinput>.</para>
<para>Install the package:</para> <para>Install the package:</para>
<screen><userinput>make install</userinput></screen> <screen><userinput>make install</userinput></screen>
<para>Run the newly compiled <command>bash</command> program (replacing the one that is <para>Run the newly compiled <command>bash</command> program (replacing the one that is
currently being executed):</para> currently being executed):</para>
<screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen> <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
<note><para>The parameters used make the <command>bash</command> <note>
process an interactive login shell and continue to disable hashing so <para>The parameters used make the <command>bash</command>
that new programs are found as they become available.</para></note> process an interactive login shell and continue to disable hashing so
that new programs are found as they become available.</para>
</note>
</sect2> </sect2>
<sect2 id="contents-bash" role="content">
<title>Contents of Bash</title>
<sect2 id="contents-bash" role="content"><title>Contents of Bash</title> <segmentedlist>
<segtitle>Installed programs</segtitle>
<segmentedlist> <seglistitem>
<segtitle>Installed programs</segtitle> <seg>bash, bashbug, and sh (link to bash)</seg>
<seglistitem><seg>bash, bashbug, and sh (link to bash)</seg></seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> <variablelist>
<?dbfo list-presentation="list"?> <bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbhtml list-presentation="table"?> <?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="bash"> <varlistentry id="bash">
<term><command>bash</command></term> <term><command>bash</command></term>
<listitem> <listitem>
<para>A widely-used command interpreter; it performs many types of <para>A widely-used command interpreter; it performs many types of
expansions and substitutions on a given command line before executing expansions and substitutions on a given command line before executing
it, thus making this interpreter a powerful tool</para> it, thus making this interpreter a powerful tool</para>
<indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm> <indexterm zone="ch-system-bash bash">
</listitem> <primary sortas="b-bash">bash</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="bashbug"> <varlistentry id="bashbug">
<term><command>bashbug</command></term> <term><command>bashbug</command></term>
<listitem> <listitem>
<para>A shell script to help the user compose and mail standard formatted bug <para>A shell script to help the user compose and mail standard
reports concerning <command>bash</command></para> formatted bug reports concerning <command>bash</command></para>
<indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm> <indexterm zone="ch-system-bash bashbug">
</listitem> <primary sortas="b-bashbug">bashbug</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="sh"> <varlistentry id="sh">
<term><command>sh</command></term> <term><command>sh</command></term>
<listitem> <listitem>
<para>A symlink to the <command>bash</command> program; when invoked <para>A symlink to the <command>bash</command> program; when invoked
as <command>sh</command>, <command>bash</command> tries to mimic the as <command>sh</command>, <command>bash</command> tries to mimic the
startup behavior of historical versions of <command>sh</command> as startup behavior of historical versions of <command>sh</command> as
closely as possible, while conforming to the POSIX standard as well</para> closely as possible, while conforming to the POSIX standard as
<indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm> well</para>
</listitem> <indexterm zone="ch-system-bash sh">
</varlistentry> <primary sortas="b-sh">sh</primary>
</variablelist> </indexterm>
</listitem>
</varlistentry>
</sect2> </variablelist>
</sect2>
</sect1> </sect1>

View File

@ -1,277 +1,336 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent"> <!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities; %general-entities;
]> ]>
<sect1 id="ch-system-binutils" role="wrap"> <sect1 id="ch-system-binutils" role="wrap">
<title>Binutils-&binutils-version;</title> <?dbhtml filename="binutils.html"?>
<?dbhtml filename="binutils.html"?>
<indexterm zone="ch-system-binutils"><primary sortas="a-Binutils">Binutils</primary></indexterm> <title>Binutils-&binutils-version;</title>
<sect2 role="package"><title/> <indexterm zone="ch-system-binutils">
<para>The Binutils package contains a linker, an assembler, and other tools for <primary sortas="a-Binutils">Binutils</primary>
handling object files.</para> </indexterm>
<segmentedlist> <sect2 role="package">
<segtitle>&buildtime;</segtitle> <title/>
<segtitle>&diskspace;</segtitle>
<seglistitem><seg>1.3 SBU</seg><seg>158 MB</seg></seglistitem>
</segmentedlist>
<segmentedlist> <para>The Binutils package contains a linker, an assembler, and other
<segtitle>&dependencies;</segtitle> tools for handling object files.</para>
<seglistitem><seg>Bash, Coreutils, Diffutils, GCC, Gettext,
Glibc, Grep, M4, Make, Perl, Sed, and Texinfo</seg></seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation"> <segmentedlist>
<title>Installation of Binutils</title> <segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<para>Verify that the PTYs are working properly inside the chroot <seglistitem>
environment. Check that everything is set up correctly by performing a <seg>1.3 SBU</seg>
simple test:</para> <seg>158 MB</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Bash, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, M4,
Make, Perl, Sed, and Texinfo</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Binutils</title>
<para>Verify that the PTYs are working properly inside the chroot
environment. Check that everything is set up correctly by performing a
simple test:</para>
<screen><userinput>expect -c "spawn ls"</userinput></screen> <screen><userinput>expect -c "spawn ls"</userinput></screen>
<para>If the following message shows up, the chroot environment is not <para>If the following message shows up, the chroot environment is not
set up for proper PTY operation:</para> set up for proper PTY operation:</para>
<screen><computeroutput>The system has no more ptys. <screen><computeroutput>The system has no more ptys.
Ask your system administrator to create more.</computeroutput></screen> Ask your system administrator to create more.</computeroutput></screen>
<para>This issue needs to be resolved before running the test suites <para>This issue needs to be resolved before running the test suites
for Binutils and GCC.</para> for Binutils and GCC.</para>
<para>The Binutils documentation recommends building Binutils outside of the <para>The Binutils documentation recommends building Binutils outside of the
source directory in a dedicated build directory:</para> source directory in a dedicated build directory:</para>
<screen><userinput>mkdir -v ../binutils-build <screen><userinput>mkdir -v ../binutils-build
cd ../binutils-build</userinput></screen> cd ../binutils-build</userinput></screen>
<para>Prepare Binutils for compilation:</para> <para>Prepare Binutils for compilation:</para>
<screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr \ <screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr \
--enable-shared</userinput></screen> --enable-shared</userinput></screen>
<para>Compile the package:</para> <para>Compile the package:</para>
<screen><userinput>make tooldir=/usr</userinput></screen> <screen><userinput>make tooldir=/usr</userinput></screen>
<variablelist> <variablelist>
<title>The meaning of the make parameter:</title> <title>The meaning of the make parameter:</title>
<varlistentry>
<term><parameter>tooldir=/usr</parameter></term>
<listitem>
<para>Normally, the tooldir (the directory where the executables will
ultimately be located) is set to <filename
class="directory">$(exec_prefix)/$(target_alias)</filename>. For
example, i686 machines would expand that to <filename
class="directory">/usr/i686-pc-linux-gnu</filename>. Because this is
a custom system, this target-specific directory in <filename
class="directory">/usr</filename> is not required. <filename
class="directory">$(exec_prefix)/$(target_alias)</filename> would be
used if the system was used to cross-compile (for example, compiling a
package on an Intel machine that generates code that can be executed
on PowerPC machines).</para>
</listitem>
</varlistentry>
</variablelist>
<important><para>The test suite for Binutils in this section is <varlistentry>
considered critical. Do not skip it under any <term><parameter>tooldir=/usr</parameter></term>
circumstances.</para></important> <listitem>
<para>Normally, the tooldir (the directory where the executables will
ultimately be located) is set to <filename
class="directory">$(exec_prefix)/$(target_alias)</filename>. For
example, i686 machines would expand that to <filename
class="directory">/usr/i686-pc-linux-gnu</filename>. Because this is
a custom system, this target-specific directory in <filename
class="directory">/usr</filename> is not required. <filename
class="directory">$(exec_prefix)/$(target_alias)</filename> would be
used if the system was used to cross-compile (for example, compiling a
package on an Intel machine that generates code that can be executed
on PowerPC machines).</para>
</listitem>
</varlistentry>
<para>Test the results:</para> </variablelist>
<important>
<para>The test suite for Binutils in this section is considered critical.
Do not skip it under any circumstances.</para>
</important>
<para>Test the results:</para>
<screen><userinput>make check</userinput></screen> <screen><userinput>make check</userinput></screen>
<para>Install the package:</para> <para>Install the package:</para>
<screen><userinput>make tooldir=/usr install</userinput></screen> <screen><userinput>make tooldir=/usr install</userinput></screen>
<para>Install the <filename class="headerfile">libiberty</filename> header file that is needed by <para>Install the <filename class="headerfile">libiberty</filename> header
some packages:</para> file that is needed by some packages:</para>
<screen><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen> <screen><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen>
</sect2> </sect2>
<sect2 id="contents-binutils" role="content"><title>Contents of Binutils</title> <sect2 id="contents-binutils" role="content">
<title>Contents of Binutils</title>
<segmentedlist> <segmentedlist>
<segtitle>Installed programs</segtitle> <segtitle>Installed programs</segtitle>
<segtitle>Installed libraries</segtitle> <segtitle>Installed libraries</segtitle>
<seglistitem><seg>addr2line, ar, as, c++filt, gprof, ld, nm, objcopy, objdump,
ranlib, readelf, size, strings, and strip</seg>
<seg>libiberty.a, libbfd.[a,so], and libopcodes.[a,so]</seg></seglistitem>
</segmentedlist>
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> <seglistitem>
<?dbfo list-presentation="list"?> <seg>addr2line, ar, as, c++filt, gprof, ld, nm, objcopy, objdump,
<?dbhtml list-presentation="table"?> ranlib, readelf, size, strings, and strip</seg>
<seg>libiberty.a, libbfd.[a,so], and libopcodes.[a,so]</seg>
</seglistitem>
</segmentedlist>
<varlistentry id="addr2line"> <variablelist>
<term><command>addr2line</command></term> <bridgehead renderas="sect3">Short Descriptions</bridgehead>
<listitem> <?dbfo list-presentation="list"?>
<para>Translates program addresses to file names and line numbers; <?dbhtml list-presentation="table"?>
given an address and the name of an executable, it uses the debugging
information in the executable to determine which source file and line
number are associated with the address</para>
<indexterm zone="ch-system-binutils addr2line"><primary sortas="b-addr2line">addr2line</primary></indexterm>
</listitem>
</varlistentry>
<varlistentry id="ar"> <varlistentry id="addr2line">
<term><command>ar</command></term> <term><command>addr2line</command></term>
<listitem> <listitem>
<para>Creates, modifies, and extracts from archives</para> <para>Translates program addresses to file names and line numbers;
<indexterm zone="ch-system-binutils ar"><primary sortas="b-ar">ar</primary></indexterm> given an address and the name of an executable, it uses the debugging
</listitem> information in the executable to determine which source file and line
</varlistentry> number are associated with the address</para>
<indexterm zone="ch-system-binutils addr2line">
<primary sortas="b-addr2line">addr2line</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="as"> <varlistentry id="ar">
<term><command>as</command></term> <term><command>ar</command></term>
<listitem> <listitem>
<para>An assembler that assembles the output of <command>gcc</command> <para>Creates, modifies, and extracts from archives</para>
into object files</para> <indexterm zone="ch-system-binutils ar">
<indexterm zone="ch-system-binutils as"><primary sortas="b-as">as</primary></indexterm> <primary sortas="b-ar">ar</primary>
</listitem> </indexterm>
</varlistentry> </listitem>
</varlistentry>
<varlistentry id="c-filt"> <varlistentry id="as">
<term><command>c++filt</command></term> <term><command>as</command></term>
<listitem> <listitem>
<para>Used by the linker to de-mangle C++ and Java symbols and to keep <para>An assembler that assembles the output of <command>gcc</command>
overloaded functions from clashing</para> into object files</para>
<indexterm zone="ch-system-binutils c-filt"><primary sortas="b-c++filt">c++filt</primary></indexterm> <indexterm zone="ch-system-binutils as">
</listitem> <primary sortas="b-as">as</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="gprof"> <varlistentry id="c-filt">
<term><command>gprof</command></term> <term><command>c++filt</command></term>
<listitem> <listitem>
<para>Displays call graph profile data</para> <para>Used by the linker to de-mangle C++ and Java symbols and to keep
<indexterm zone="ch-system-binutils gprof"><primary sortas="b-gprof">gprof</primary></indexterm> overloaded functions from clashing</para>
</listitem> <indexterm zone="ch-system-binutils c-filt">
</varlistentry> <primary sortas="b-c++filt">c++filt</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ld"> <varlistentry id="gprof">
<term><command>ld</command></term> <term><command>gprof</command></term>
<listitem> <listitem>
<para>A linker that combines a number of object and archive files into a single file, <para>Displays call graph profile data</para>
relocating their data and tying up symbol references</para> <indexterm zone="ch-system-binutils gprof">
<indexterm zone="ch-system-binutils ld"><primary sortas="b-ld">ld</primary></indexterm> <primary sortas="b-gprof">gprof</primary>
</listitem> </indexterm>
</varlistentry> </listitem>
</varlistentry>
<varlistentry id="nm"> <varlistentry id="ld">
<term><command>nm</command></term> <term><command>ld</command></term>
<listitem> <listitem>
<para>Lists the symbols occurring in a given object file</para> <para>A linker that combines a number of object and archive files
<indexterm zone="ch-system-binutils nm"><primary sortas="b-nm">nm</primary></indexterm> into a single file, relocating their data and tying up symbol
</listitem> references</para>
</varlistentry> <indexterm zone="ch-system-binutils ld">
<primary sortas="b-ld">ld</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="objcopy"> <varlistentry id="nm">
<term><command>objcopy</command></term> <term><command>nm</command></term>
<listitem> <listitem>
<para>Translates one type of object file into another</para> <para>Lists the symbols occurring in a given object file</para>
<indexterm zone="ch-system-binutils objcopy"><primary sortas="b-objcopy">objcopy</primary></indexterm> <indexterm zone="ch-system-binutils nm">
</listitem> <primary sortas="b-nm">nm</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="objdump"> <varlistentry id="objcopy">
<term><command>objdump</command></term> <term><command>objcopy</command></term>
<listitem> <listitem>
<para>Displays information about the given object file, with options <para>Translates one type of object file into another</para>
controlling the particular information to display; the information <indexterm zone="ch-system-binutils objcopy">
shown is useful to programmers who are working on the compilation <primary sortas="b-objcopy">objcopy</primary>
tools</para> </indexterm>
<indexterm zone="ch-system-binutils objdump"><primary sortas="b-objdump">objdump</primary></indexterm> </listitem>
</listitem> </varlistentry>
</varlistentry>
<varlistentry id="ranlib"> <varlistentry id="objdump">
<term><command>ranlib</command></term> <term><command>objdump</command></term>
<listitem> <listitem>
<para>Generates an index of the contents of an archive and stores it <para>Displays information about the given object file, with options
in the archive; the index lists all of the symbols defined by archive controlling the particular information to display; the information
members that are relocatable object files</para> shown is useful to programmers who are working on the compilation
<indexterm zone="ch-system-binutils ranlib"><primary sortas="b-ranlib">ranlib</primary></indexterm> tools</para>
</listitem> <indexterm zone="ch-system-binutils objdump">
</varlistentry> <primary sortas="b-objdump">objdump</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="readelf"> <varlistentry id="ranlib">
<term><command>readelf</command></term> <term><command>ranlib</command></term>
<listitem> <listitem>
<para>Displays information about ELF type binaries</para> <para>Generates an index of the contents of an archive and stores it
<indexterm zone="ch-system-binutils readelf"><primary sortas="b-readelf">readelf</primary></indexterm> in the archive; the index lists all of the symbols defined by archive
</listitem> members that are relocatable object files</para>
</varlistentry> <indexterm zone="ch-system-binutils ranlib">
<primary sortas="b-ranlib">ranlib</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="size"> <varlistentry id="readelf">
<term><command>size</command></term> <term><command>readelf</command></term>
<listitem> <listitem>
<para>Lists the section sizes and the total size for the given object files</para> <para>Displays information about ELF type binaries</para>
<indexterm zone="ch-system-binutils size"><primary sortas="b-size">size</primary></indexterm> <indexterm zone="ch-system-binutils readelf">
</listitem> <primary sortas="b-readelf">readelf</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="strings"> <varlistentry id="size">
<term><command>strings</command></term> <term><command>size</command></term>
<listitem> <listitem>
<para>Outputs, for each given file, the sequences of printable <para>Lists the section sizes and the total size for the given
characters that are of at least the specified length (defaulting to object files</para>
four); for object files, it prints, by default, only the strings from <indexterm zone="ch-system-binutils size">
the initializing and loading sections while for other types of files, it <primary sortas="b-size">size</primary>
scans the entire file</para> </indexterm>
<indexterm zone="ch-system-binutils strings"><primary sortas="b-strings">strings</primary></indexterm> </listitem>
</listitem> </varlistentry>
</varlistentry>
<varlistentry id="strip"> <varlistentry id="strings">
<term><command>strip</command></term> <term><command>strings</command></term>
<listitem> <listitem>
<para>Discards symbols from object files</para> <para>Outputs, for each given file, the sequences of printable
<indexterm zone="ch-system-binutils strip"><primary sortas="b-strip">strip</primary></indexterm> characters that are of at least the specified length (defaulting to
</listitem> four); for object files, it prints, by default, only the strings from
</varlistentry> the initializing and loading sections while for other types of files, it
scans the entire file</para>
<indexterm zone="ch-system-binutils strings">
<primary sortas="b-strings">strings</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libiberty"> <varlistentry id="strip">
<term><filename class="libraryfile">libiberty</filename></term> <term><command>strip</command></term>
<listitem> <listitem>
<para>Contains routines used by various GNU programs, including <para>Discards symbols from object files</para>
<command>getopt</command>, <command>obstack</command>, <indexterm zone="ch-system-binutils strip">
<command>strerror</command>, <command>strtol</command>, and <primary sortas="b-strip">strip</primary>
<command>strtoul</command></para> </indexterm>
<indexterm zone="ch-system-binutils libiberty"><primary sortas="c-libiberty">libiberty</primary></indexterm> </listitem>
</listitem> </varlistentry>
</varlistentry>
<varlistentry id="libbfd"> <varlistentry id="libiberty">
<term><filename class="libraryfile">libbfd</filename></term> <term><filename class="libraryfile">libiberty</filename></term>
<listitem> <listitem>
<para>The Binary File Descriptor library</para> <para>Contains routines used by various GNU programs, including
<indexterm zone="ch-system-binutils libbfd"><primary sortas="c-libbfd">libbfd</primary></indexterm> <command>getopt</command>, <command>obstack</command>,
</listitem> <command>strerror</command>, <command>strtol</command>, and
</varlistentry> <command>strtoul</command></para>
<indexterm zone="ch-system-binutils libiberty">
<primary sortas="c-libiberty">libiberty</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libopcodes"> <varlistentry id="libbfd">
<term><filename class="libraryfile">libopcodes</filename></term> <term><filename class="libraryfile">libbfd</filename></term>
<listitem> <listitem>
<para>A library for dealing with opcodes&mdash;the <quote>readable <para>The Binary File Descriptor library</para>
text</quote> versions of instructions for the processor; <indexterm zone="ch-system-binutils libbfd">
it is used for building utilities like <primary sortas="c-libbfd">libbfd</primary>
<command>objdump</command>.</para> </indexterm>
<indexterm zone="ch-system-binutils libopcodes"><primary sortas="c-libopcodes">libopcodes</primary></indexterm> </listitem>
</listitem> </varlistentry>
</varlistentry>
</variablelist>
</sect2> <varlistentry id="libopcodes">
<term><filename class="libraryfile">libopcodes</filename></term>
<listitem>
<para>A library for dealing with opcodes&mdash;the <quote>readable
text</quote> versions of instructions for the processor;
it is used for building utilities like
<command>objdump</command>.</para>
<indexterm zone="ch-system-binutils libopcodes">
<primary sortas="c-libopcodes">libopcodes</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1> </sect1>

View File

@ -1,102 +1,129 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent"> <!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities; %general-entities;
]> ]>
<sect1 id="ch-system-bison" role="wrap"> <sect1 id="ch-system-bison" role="wrap">
<title>Bison-&bison-version;</title> <?dbhtml filename="bison.html"?>
<?dbhtml filename="bison.html"?>
<indexterm zone="ch-system-bison"><primary sortas="a-Bison">Bison</primary></indexterm> <title>Bison-&bison-version;</title>
<sect2 role="package"><title/> <indexterm zone="ch-system-bison">
<para>The Bison package contains a parser generator.</para> <primary sortas="a-Bison">Bison</primary>
</indexterm>
<segmentedlist> <sect2 role="package">
<segtitle>&buildtime;</segtitle> <title/>
<segtitle>&diskspace;</segtitle>
<seglistitem><seg>0.6 SBU</seg><seg>9.9 MB</seg></seglistitem>
</segmentedlist>
<segmentedlist> <para>The Bison package contains a parser generator.</para>
<segtitle>&dependencies;</segtitle>
<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
GCC, Gettext, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation"> <segmentedlist>
<title>Installation of Bison</title> <segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<para>Prepare Bison for compilation:</para> <seglistitem>
<seg>0.6 SBU</seg>
<seg>9.9 MB</seg>
</seglistitem>
</segmentedlist>
<segmentedlist>
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
Grep, M4, Make, and Sed</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Bison</title>
<para>Prepare Bison for compilation:</para>
<screen><userinput>./configure --prefix=/usr</userinput></screen> <screen><userinput>./configure --prefix=/usr</userinput></screen>
<para>The configure system causes bison to be built without support for <para>The configure system causes bison to be built without support for
internationalization of error messages if a <command>bison</command> internationalization of error messages if a <command>bison</command>
program is not already in $PATH. The following addition will correct program is not already in $PATH. The following addition will correct
this.</para> this.</para>
<screen>echo '#define YYENABLE_NLS 1' >> config.h</screen> <screen>echo '#define YYENABLE_NLS 1' >> config.h</screen>
<para>Compile the package:</para> <para>Compile the package:</para>
<screen><userinput>make</userinput></screen> <screen><userinput>make</userinput></screen>
<para>To test the results, issue: <para>To test the results, issue:
<userinput>make check</userinput>.</para> <userinput>make check</userinput>.</para>
<para>Install the package:</para> <para>Install the package:</para>
<screen><userinput>make install</userinput></screen> <screen><userinput>make install</userinput></screen>
</sect2> </sect2>
<sect2 id="contents-bison" role="content"><title>Contents of Bison</title> <sect2 id="contents-bison" role="content">
<title>Contents of Bison</title>
<segmentedlist> <segmentedlist>
<segtitle>Installed programs</segtitle> <segtitle>Installed programs</segtitle>
<segtitle>Installed library</segtitle> <segtitle>Installed library</segtitle>
<seglistitem><seg>bison and yacc</seg><seg>liby.a</seg></seglistitem>
</segmentedlist>
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> <seglistitem>
<?dbfo list-presentation="list"?> <seg>bison and yacc</seg>
<?dbhtml list-presentation="table"?> <seg>liby.a</seg>
</seglistitem>
</segmentedlist>
<varlistentry id="bison"> <variablelist>
<term><command>bison</command></term> <bridgehead renderas="sect3">Short Descriptions</bridgehead>
<listitem> <?dbfo list-presentation="list"?>
<para>Generates, from a series of rules, a program for analyzing the structure <?dbhtml list-presentation="table"?>
of text files; Bison is a replacement for Yacc (Yet Another Compiler
Compiler)</para>
<indexterm zone="ch-system-bison bison"><primary sortas="b-bison">bison</primary></indexterm>
</listitem>
</varlistentry>
<varlistentry id="yacc"> <varlistentry id="bison">
<term><command>yacc</command></term> <term><command>bison</command></term>
<listitem> <listitem>
<para>A wrapper for <command>bison</command>, meant for programs <para>Generates, from a series of rules, a program for analyzing the
that still call <command>yacc</command> instead of <command>bison</command>; structure of text files; Bison is a replacement for Yacc (Yet Another
it calls <command>bison</command> with the <parameter>-y</parameter> option</para> Compiler Compiler)</para>
<indexterm zone="ch-system-bison yacc"><primary sortas="b-yacc">yacc</primary></indexterm> <indexterm zone="ch-system-bison bison">
</listitem> <primary sortas="b-bison">bison</primary>
</varlistentry> </indexterm>
</listitem>
</varlistentry>
<varlistentry id="liby.a"> <varlistentry id="yacc">
<term><filename class="libraryfile">liby.a</filename></term> <term><command>yacc</command></term>
<listitem> <listitem>
<para>The Yacc library containing implementations of Yacc-compatible <para>A wrapper for <command>bison</command>, meant for programs that
<emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions; still call <command>yacc</command> instead of <command>bison</command>;
this library is normally not very useful, but POSIX requires it calls <command>bison</command> with the <parameter>-y</parameter>
it</para> option</para>
<indexterm zone="ch-system-bison liby.a"><primary sortas="c-liby.a">liby.a</primary></indexterm> <indexterm zone="ch-system-bison yacc">
</listitem> <primary sortas="b-yacc">yacc</primary>
</varlistentry> </indexterm>
</variablelist> </listitem>
</varlistentry>
</sect2> <varlistentry id="liby.a">
<term><filename class="libraryfile">liby.a</filename></term>
<listitem>
<para>The Yacc library containing implementations of Yacc-compatible
<function>yyerror</function> and <function>main</function> functions;
this library is normally not very useful, but POSIX requires it</para>
<indexterm zone="ch-system-bison liby.a">
<primary sortas="c-liby.a">liby.a</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1> </sect1>