From owner-freebsd-ports Sat Nov 30 13:19:51 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5480537B401 for ; Sat, 30 Nov 2002 13:19:49 -0800 (PST) Received: from serv1.wallnet.com (server1.wallnet.com [208.225.162.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F79743EBE for ; Sat, 30 Nov 2002 13:19:48 -0800 (PST) (envelope-from timothyk@wallnet.com) Received: (from root@localhost) by serv1.wallnet.com (8.11.5/8.11.5) id gAULJlF56188; Sat, 30 Nov 2002 16:19:47 -0500 (EST) (envelope-from timothyk@wallnet.com) Received: from 10.0.1.9 (mts-125.wallnet.com [208.225.162.57]) by serv1.wallnet.com (8.11.5/8.11.5av) with ESMTP id gAULJhg56180; Sat, 30 Nov 2002 16:19:44 -0500 (EST) (envelope-from timothyk@wallnet.com) Content-Type: text/plain; charset="iso-8859-1" From: Tim Kellers To: Kris Kennaway , Tim Kellers Subject: Re: wxgtk fails (solved) Date: Sat, 30 Nov 2002 16:19:20 -0500 User-Agent: KMail/1.4.3 Cc: ports@freebsd.org References: <20021129155701.R87468-100000@serv1.wallnet.com> <20021130002705.GA38347@rot13.obsecurity.org> In-Reply-To: <20021130002705.GA38347@rot13.obsecurity.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211301619.21122.timothyk@wallnet.com> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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