[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ftpcmd.y -- syntax error
From: |
Hans Aberg |
Subject: |
Re: ftpcmd.y -- syntax error |
Date: |
Mon, 5 Apr 2004 19:22:32 +0200 |
You should probably have '=' or "=" in your grammar line 197. In the latter
case, you need a declaration like
%token ASSIGNMENT "="
and your lexer should then return the token ASSIGNMENT when it detects a =.
At 12:25 -0400 2004/04/05, Jacques Dejean wrote:
>Hello,
>
>I encounter the following error when compiling from source
>wu-ftpd-2.6.1-18.src.rpm
>wu-ftpd-2.6.2-8.src.rpm. After reading several mailing lists articles, I
>upgraded to
>bison 1.875; however, the error continues.
>
>My environment is SuSE Linux 8.2.
>
>The errors are as follows:
>make[1]: Entering directory `/usr/src/packages/BUILD/wu-ftpd/src'
>gcc -O2 -march=i486 -mcpu=i686 -I.. -I../support -c -o COPYRIGHT.o
>COPYRIGHT.c
>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
><< snipped >>
>ftpcmd.y:1336.9: syntax error, unexpected "="
>ftpcmd.y:1360.12: warning: empty rule for typed nonterminal, and no action
>ftpcmd.y:1361.9: syntax error, unexpected "="
>make[1]: *** [ftpcmd.c] Error 1
>make[1]: Leaving directory `/usr/src/packages/BUILD/wu-ftpd/src'
>make: *** [all] Error 2
>Bad exit status from /var/tmp/rpm-tmp.91856 (%build)
>
>The code portion in "ftpcmd.y" is --
> 194
> 195 cmd_list: /* empty */
> 196 | cmd_list cmd
> 197 = {
> 198 fromname = (char *) NULL;
> 199 restart_point = 0;
> 200 }
> 201 | cmd_list rcmd
> 202 ;
>
>Any suggestions on the cause of this error would be greatly appreciated.
>
>Regards,
>Jacques Dejean
>Lead Systems Administrator, CSA-HPUX
>Alliance Entertainment Corp.
>954-255-4344 (v)
>
>
>_______________________________________________
>address@hidden http://mail.gnu.org/mailman/listinfo/help-bison
- ftpcmd.y -- syntax error, Jacques Dejean, 2004/04/05
- RE: ftpcmd.y -- syntax error, Jacques Dejean, 2004/04/05
- RE: ftpcmd.y -- syntax error, Jacques Dejean, 2004/04/05
- RE: ftpcmd.y -- syntax error, Urdaneta, Alfonso E (N-Summitt Technologies), 2004/04/05
- RE: ftpcmd.y -- syntax error, Urdaneta, Alfonso E (N-Summitt Technologies), 2004/04/05
- RE: ftpcmd.y -- syntax error, Jacques Dejean, 2004/04/06