[gnu.utils.bug] Installation report for gawk 2.11.1

pinard@iro.umontreal.ca (Francois Pinard) (01/16/90)

Here are a few comments from installing gawk 2.11.1.

* PARSER definition in Makefile

	PARSER should be defined as ``yacc'' *or* ``bison -y''.  By
	not using the -y, this generates a (non-fatal) error preparing
	awk.tab.c:

------------------------------------------------------------>
bison -v awk.y 
awk.y contains 42 shift/reduce conflicts. 
mv -f y.tab.c awk.tab.c 
mv: y.tab.c: Cannot access: No such file or directory 
make: *** [awk.tab.c] Error 1 (ignored) 
------------------------------------------------------------<

* Compiling on a Sun 3 with SunOS 3.5:

	The following errors show with the stock cc compiler and also
	with gcc 1.36:

------------------------------------------------------------>
cc -DSTRERROR_MISSING -DSTRCASE_MISSING    -O    -c io.c -o io.o 
"io.c", line 569: warning: illegal pointer combination 
"io.c", line 570: warning: illegal pointer combination 
"io.c", line 571: warning: illegal pointer combination 
------------------------------------------------------------<

------------------------------------------------------------>
gcc -DSTRERROR_MISSING -DSTRCASE_MISSING    -O -g    -c io.c -o io.o 
io.c: In function gawk_pclose: 
io.c:569: warning: assignment between incompatible pointer types 
io.c:570: warning: assignment between incompatible pointer types 
io.c:571: warning: assignment between incompatible pointer types 
------------------------------------------------------------<

	The following errors show with the stock cc compiler, but they
	do not show with gcc 1.36:

------------------------------------------------------------>
cc -DSTRERROR_MISSING -DSTRCASE_MISSING    -O    -c awk.tab.c -o awk.tab.o 
"awk.y", line 389: warning: enumeration type clash, operator = 
"awk.y", line 391: warning: enumeration type clash, operator = 
"awk.y", line 396: warning: enumeration type clash, operator = 
"awk.y", line 398: warning: enumeration type clash, operator = 
------------------------------------------------------------<

* Compiling on a Sun sparc with SunOS 4.0:

	The following error shows while loading the output of the gcc
	1.36 compiler, it does not show with the stock cc compiler:

------------------------------------------------------------>
gcc -o gawk -DSTRERROR_MISSING -DSTRCASE_MISSING    -O -g  main.o eval.o builtin.o msg.o debug.o io.o field.o array.o node.o version.o missing.o awk.tab.o regex.o  -lm
_fixunsdfsi.o: Undefined symbol "Fund" referenced
------------------------------------------------------------<

* Preparing Info documentation

	I met a few problems while preparing Info documents with the
	command ``emacs -batch -f batch-texinfo-format $*''.  These
	were, using emacs 18.54:

		1) @syncodeindex is not recognized
		2) @ref is not recognized
		3) @dots{} is not recognized in a specific context

	Here is a quick diff of a quick (dirty) mod to get the
	documentation.  It should help locate the specific occurrences
	of the said problems:

------------------------------------------------------------>
182) diff gawk.texinfo gawk.texinfo.new
6,7c6,7
< @syncodeindex fn cp
< @syncodeindex vr cp
---
> @c @syncodeindex fn cp
> @c @syncodeindex vr cp
3517c3517
< @ref{Boolean Ops}.
---
> @pxref{Boolean Ops}.
3660c3660
< described later; see @ref{User-defined}.)
---
> described later; see @pxref{User-defined}.)
3846c3846
< @item \x@var{hh@dots{}}
---
> @item \x@var{hh...}
------------------------------------------------------------<

-- 
Franc,ois Pinard                                    pinard@iro.umontreal.ca
(514) 588-4656           ``Vivement GNU!''          ...!uunet!iros1!pinard

pinard@iro.umontreal.ca (Francois Pinard) (01/23/90)

To: arnold@skeeve.atl.ga.us
CC: bug-gnu-utils@prep.ai.mit.edu
In-reply-to: Arnold D. Robbins's message of Sun, 21 Jan 90 16:07:39 EST <9001211607.AA04072@skeeve.UUCP>

   > Here are a few comments from installing gawk 2.11.1.
   [...]

Thanks for your answers, in particular, regarding the forgotten
-DTMPNAM_MISSING on SunOS 3.5 and the possible local installation
glitch for GNU C on the Sparcs, here.  About:

   [...]
   This is known -- not all versions of bison accept the -y flag.  The rule
   in the Makefile specifically starts with a "-" for this reason.
   [...]
   None of these are serious [C compilation] errors, particularly the
   last ones.  Gawk should work just fine.

No doubt it works.  Nevertheless, it would be nicer if there were
really not any installation nor compilation complaints.  About bison,
only old versions would not accept -y.  Why not use -y and simply add
a comment in the Makefile saying something like:

	# If you bison does not understand -y, get a more recent version
	# of bison or, if you prefer, adjust the following lines.

   It is known that gawk.texinfo and texinfo-format-buffer don't get
   along.  [...]  There is a program called makeinfo [...] which is
   unfortunately not released yet.

One day :-).

-- 
Franc,ois Pinard                                    pinard@iro.umontreal.ca
(514) 588-4656           ``Vivement GNU!''          ...!uunet!iros1!pinard

arnold@audiofax.com (Arnold Robbins) (01/24/90)

In article <9001222301.AA22726@kovic.IRO.UMontreal.CA> pinard@iro.umontreal.ca (Francois Pinard) writes:
>No doubt it works.  Nevertheless, it would be nicer if there were
>really not any installation nor compilation complaints.

Unfortunately, it is impossible for us to verify that gawk compiles and
installs with no complaints on every possible Unix variant.  In particular,
neither David nor I had access to SunOS 3.5 when we were doing gawk 2.11.
My current work environment does include SunOS 3.5, so maybe that environment
will be included in the next patch.

> About bison,
>only old versions would not accept -y.  Why not use -y and simply add
>a comment in the Makefile saying something like:
>
>	# If you bison does not understand -y, get a more recent version
>	# of bison or, if you prefer, adjust the following lines.

This is reasonable.  If I don't forget about it, it'll be in the next patch
or in 2.12.  (Who knows when...)
-- 
Arnold Robbins -- Senior Research Scientist - AudioFAX | Laundry increases
2000 Powers Ferry Road, #220 / Marietta, GA. 30067     | exponentially in the
INTERNET: arnold@audiofax.com	Phone: +1 404 933 7600 | number of children.
UUCP:	  emory!audfax!arnold	Fax:   +1 404 933 7606 |   -- Miriam Hartholz