I got the tarball for 3.7a4 and applied this patch, but I still get an error;
-------------------------------------------------------------------
/usr/local/src/ctwm-3.7-alpha4>patch < patch
patching file gram.y
/usr/local/src/ctwm-3.7-alpha4>xmkmf
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
/usr/local/src/ctwm-3.7-alpha4>make
bison -y -d gram.y
conflicts:  8 shift/reduce
mv -f y.tab.c gram.c
mv -f y.tab.h gram.h
gcc -m32 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fno-strict-aliasing
-I/usr/X11R6/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE
-D_SVID_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO    -DUSEM4 -DGNOME  -DXPM -DJPEG         -c -o
gram.o gram.c
gram.y: In function `yyparse':
gram.y:703: error: parse error before '}' token
make: *** [gram.o] Error 1
-------------------------------------------------------------------

However, putting a ';' on line 703 (after the patch), seems to have fixed it.
Now to try it...

On Sat, May 31, 2003 at 11:45:41AM +0200, Rhialto wrote:
> 
> Looking at these, they were indeed real problems in the gram.y file.
> Some of these also seem to be fixed in the 3.7alpha4 version, but it
> introduced one more itself:
> 
> /tmp/ctwm-3.7-alpha4$ bison -y -d gram.y
> gram.y:437: warning: previous rule lacks an ending `;'
> gram.y:705: warning: previous rule lacks an ending `;'
> gram.y:865: warning: previous rule lacks an ending `;'
> 
> --- gram.y.orig       Sat May 31 11:42:24 2003
> +++ gram.y    Sat May 31 11:41:59 2003
> @@ -429,10 +429,10 @@
>  
>               | WINDOW_GEOMETRIES      {  }
>                 wingeom_list
> -               ;
>  
>               | VIRTUAL_SCREENS       { }
>                 geom_list
> +             ;
>  
>  noarg                : KEYWORD               { if (!do_single_keyword ($1)) {
>                                           twmrc_error_prefix();
> @@ -701,6 +701,7 @@
>               | geom_entries geom_entry
>               ;
>  geom_entry   : string { AddToList (&Scr->VirtualScreens, $1, "") }
> +             ;
>  
>  squeeze              : SQUEEZE_TITLE { 
>                                   if (HasShape) Scr->SqueezeTitle = TRUE;
> @@ -861,6 +862,7 @@
>  occupy_window_entry  : string {
>                               AddToClientsList (workspace, $1);
>                         }
> +                     ;
>  
>  icon_list    : LB icon_entries RB {}
>               ;

Reply via email to