Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 16:19:20 -0500
From:      Tim Kellers <timothyk@wallnet.com>
To:        Kris Kennaway <kris@obsecurity.org>, Tim Kellers <timothyk@serv1.wallnet.com>
Cc:        ports@freebsd.org
Subject:   Re: wxgtk fails (solved)
Message-ID:  <200211301619.21122.timothyk@wallnet.com>
In-Reply-To: <20021130002705.GA38347@rot13.obsecurity.org>
References:  <20021129155701.R87468-100000@serv1.wallnet.com> <20021130002705.GA38347@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The wxgtk 2.2.9 configure script checks to see if bison is installed and =
if it=20
supports 'bison -y.'

If bison-1.35_1 is installed: configure completes and the build of wxgtk =
is=20
successful.

If no bison at all is installed: configure completes and the build of wxg=
tk is=20
successful

If bison (GNU Bison) 1.75 (/usr/ports/devel/bison) is installed, the buil=
d=20
fails with the following:

flex ./src/common/lexer.l
bison -y ./src/common/parser.y
=2E/src/common/parser.y:102.6: parse error, unexpected ":", expecting ";"=
 or "|"
=2E/src/common/parser.y:114.26-53: invalid $ value
=2E/src/common/parser.y:114.26-53: $5 of `arg' has no declared type
=2E/src/common/parser.y:114.26-115.73: invalid $ value
=2E/src/common/parser.y:114.26-115.73: $5 of `arg' has no declared type
gmake: *** [parser.c] Error 1
*** Error code 2

If  an ; is placed at parser.y:101:10, the build completes successfuly

Here's the parser.y diff -c between 2 seperate wxgtk foilders:

*** /usr/ports/x11-toolkits/wxgtk/work/wxGTK-2.2.9/src/common/parser.y  F=
ri=20
Jan  4 10:47:57 2002
--- /usr/ports/x11-toolkits/wxgtk1/work/wxGTK-2.2.9/src/common/parser.y S=
at=20
Nov 30 12:09:45 2002
***************
*** 98,104 ****
                           free($1); }
        |       arg1
                        {$$ =3D $1; }
!
  arg1  :       WORD
                        {$$ =3D wxmake_word($1); free($1);}
        |       STRING
--- 98,105 ----
                           free($1); }
        |       arg1
                        {$$ =3D $1; }
!       ;
!
  arg1  :       WORD
                        {$$ =3D wxmake_word($1); free($1);}
        |       STRING

I don't know if a note about using Bison 1.75 is in order or if a patch=20
including the added ; to parser.y is sufficient.

The extra ; at parser.y:101:10 does not break systems with no bison insta=
lled,=20
nor does it break systems with bison-1.35_1 installed.  I've tested each =
one=20
on four seperate 4.7-STABLE machines, twice.

Tim Kellers
CPE/NJIT

On Friday 29 November 2002 07:27 pm, Kris Kennaway wrote:
> On Fri, Nov 29, 2002 at 04:11:09PM -0500, Tim Kellers wrote:
>
> The wxgtk ports currently build on clean 4.7-STABLE systems:
>
> bento# ls -l wxgtk*
> -rw-r--r--  1 root  wheel  2178478 Nov 13 20:25 wxgtk-2.2.9,1.tgz
> -rw-r--r--  1 root  wheel  1980950 Nov 13 20:28 wxgtk-2.3.2_1.tgz
>
> Your problem is either a stale dependency, or random extra stuff on
> your system.
>
> Kris


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211301619.21122.timothyk>