Re: Problems compiling 2.6.2 on RHEL
Bob Luckin <[email protected]> Fri, 8 Jul 2005 13:49:03 -0500
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Stephen,
Trawling through some old emails, I see this is a known bug in ftpcmd.y; if I
recall correctly it has been fixed in CVS.
You have a couple of options :
a) If you have bison 1.35 or earlier (or Berkeley yacc 1.9), you can use that;
these versions are tolerant of the incorrect syntax (which presumably is
why it appeared in ftpcmd.y in the first place).
b) Edit ftpcmd.y to change all occurrences of "<tab>=<tab>{" to "<tab>{".
Thanks to Keith Thompson, who first diagnosed this issue and reported it to
the list.
Cheers, Bob
On Fri, Jul 08, 2005 at 09:40:38AM -0400, Stephen More wrote:
> I am trying to build version 2.6.2 on a RedHat Enterprise box.
>
> It stops at:
>
> bison -y ftpcmd.y
> ftpcmd.y:197.9: syntax error, unexpected "="
> ftpcmd.y:205.9: syntax error, unexpected "="
> ftpcmd.y:228.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:260.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:271.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:310.55-56: $4 of `cmd' has no declared type
> ftpcmd.y:311.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:312.25-26: $4 of `cmd' has no declared type
> ftpcmd.y:325.55-56: $4 of `cmd' has no declared type
> ftpcmd.y:326.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:327.25-26: $4 of `cmd' has no declared type
> ftpcmd.y:340.45-46: $4 of `cmd' has no declared type
> ftpcmd.y:341.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:347.50-51: $4 of `cmd' has no declared type
> ftpcmd.y:347.54-55: invalid $ value
> ftpcmd.y:347.54-55: $8 of `cmd' has no declared type
> ftpcmd.y:348.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:354.55-56: $4 of `cmd' has no declared type
> ftpcmd.y:355.17-18: $2 of `cmd' has no declared type
> ftpcmd.y:355.23-24: $4 of `cmd' has no declared type
> ftpcmd.y:355.53-54: $4 of `cmd' has no declared type
> ftpcmd.y:357.41-42: $4 of `cmd' has no declared type
> ...
> ...
>
>
> $ bison --version
> bison (GNU Bison) 1.875c
> Written by Robert Corbett and Richard Stallman.
>
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> -Thanks
> Steve More
--
Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C"