source: BOOK/final-system/common/bison.xml@ 2dcee038

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2dcee038 was 4c110a5, checked in by William Harrington <kb0iic@…>, 11 years ago

Add commands to final-system for bison eof fix patch. Fixes problem during make check and is reesolved upstream.

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-bison" role="wrap">
9 <?dbhtml filename="bison.html"?>
10
11 <title>Bison-&bison-version;</title>
12
13 <indexterm zone="ch-system-bison">
14 <primary sortas="a-Bison">Bison</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bison package contains a parser generator.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of Bison</title>
26
[1c7171a]27 <para os="t3">The <command>configure </command>script does not determine
28 the correct value for the following. Set the value manually:</para>
29
30<screen os="t4"><userinput>echo "ac_cv_prog_lex_is_flex=yes" &gt; config.cache</userinput></screen>
31
[4c110a5]32 <para os="p1">The test suite may fail during the check phase. Apply an upstream fix with the following patch:</para>
33
34<screen os="p2"><userinput>patch -Np1 -i ../&bison-eof-patch;</userinput></screen>
35
[e0e40d3]36 <para os="a">Prepare Bison for compilation:</para>
[3f8be484]37
[1c7171a]38<screen os="b"><userinput>./configure --prefix=/usr --cache-file=config.cache</userinput></screen>
[3f8be484]39
[e0e40d3]40 <para os="c">Compile the package:</para>
[3f8be484]41
[e0e40d3]42<screen os="d"><userinput>make</userinput></screen>
[3f8be484]43
[e0e40d3]44 <para os="e">To test the results, issue:
[3f8be484]45 <userinput>make check</userinput>.</para>
46
[e0e40d3]47 <para os="f">Install the package:</para>
[3f8be484]48
[e0e40d3]49<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]50
51 </sect2>
52
53 <sect2 id="contents-bison" role="content">
54 <title>Contents of Bison</title>
55
56 <segmentedlist>
57 <segtitle>Installed programs</segtitle>
58 <segtitle>Installed library</segtitle>
[61ad0b7f]59 <segtitle>Installed directory</segtitle>
[3f8be484]60
61 <seglistitem>
62 <seg>bison and yacc</seg>
63 <seg>liby.a</seg>
[61ad0b7f]64 <seg>/usr/share/bison</seg>
[3f8be484]65 </seglistitem>
66 </segmentedlist>
67
68 <variablelist>
69 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
70 <?dbfo list-presentation="list"?>
71 <?dbhtml list-presentation="table"?>
72
73 <varlistentry id="bison">
74 <term><command>bison</command></term>
75 <listitem>
76 <para>Generates, from a series of rules, a program for analyzing
77 the structure of text files; Bison is a replacement for Yacc (Yet
78 Another Compiler Compiler)</para>
79 <indexterm zone="ch-system-bison bison">
80 <primary sortas="b-bison">bison</primary>
81 </indexterm>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry id="yacc">
86 <term><command>yacc</command></term>
87 <listitem>
88 <para>A wrapper for <command>bison</command>, meant for programs that
89 still call <command>yacc</command> instead of <command>bison</command>;
90 it calls <command>bison</command> with the <option>-y</option>
91 option</para>
92 <indexterm zone="ch-system-bison yacc">
93 <primary sortas="b-yacc">yacc</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="liby.a">
99 <term><filename class="libraryfile">liby.a</filename></term>
100 <listitem>
101 <para>The Yacc library containing implementations of Yacc-compatible
102 <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
103 this library is normally not very useful, but POSIX requires it</para>
104 <indexterm zone="ch-system-bison liby.a">
105 <primary sortas="c-liby.a">liby.a</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 </variablelist>
111
112 </sect2>
113
114</sect1>
Note: See TracBrowser for help on using the repository browser.