[OpenAFS-devel] OpenAFS 1.0.1 compile failure

Dave Koziol dkoziol@dragonflymobile.com
Sun, 21 Jan 2001 23:12:23 -0500


> From: openafs-devel-admin@openafs.org
> [mailto:openafs-devel-admin@openafs.org]On Behalf Of M. Hwang
>
> It is result of compile pre-build error_table_nt.c
>
> bison.simple(154) : error C2059: syntax error : 'do'
> bison.simple(168) : error C2059: syntax error : 'else'
> bison.simple(172) : error C2059: syntax error : 'while'
> bison.simple(325) : error C2065: 'yychar' : undeclared identifier
> bison.simple(563) : warning C4013: 'yylex' undefined; assuming
...

The prebuilt file has messed up end of line delimiters.  diff gets confused
and doesn't see any differences, so search for #define YYBACKUP.  Remove all
blank lines between the #define and the "while (0)" line.  This will result
in a file which should build fine.

One additional thing that may come up.  All of the *.et files in the
directory tree have DOS end of line markers if you pull them down with
WinCVS.  These files need to have Unix end of line markers or they won't
parse properly and you'll get compile time errors.

You can easily search for *.et, and file change the end of line markers to
get everything to compile.

Ultimately, these files should either get checked into CVS in binary mode,
or comerr should be changed on NT to support DOS end of line markers.

Let me know if you have any questions,

Dave Koziol                  | koziol@dragonflymobile.com
Software Engineering Manager |
Dragonfly Mobile             | http://www.dragonflymobile.com