From owner-freebsd-openoffice@FreeBSD.ORG Thu Jan 15 08:04:45 2004 Return-Path: Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85AA516A4CE for ; Thu, 15 Jan 2004 08:04:45 -0800 (PST) Received: from KVIW13.KVI.nl (KVIW13.KVI.nl [129.125.15.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2409143D45 for ; Thu, 15 Jan 2004 08:04:43 -0800 (PST) (envelope-from A.S.Usov@KVI.nl) Received: from KVIR52.KVI.nl ("port 4432"@KVIR52.KVI.nl [129.125.37.116]) <01L5FOITS8JWASBSIQ@KVI.nl> for freebsd-openoffice@freebsd.org; Thu, 15 Jan 2004 17:04:37 +0100 (MET) Received: from KVIW06.KVI.NL by KVIR52.KVI.nl (AvMailGate-2.0.1.16) id 11080-1EB26A11; Thu, 15 Jan 2004 17:04:37 +0100 Received: from KVIP88.KVI.nl ("port 55602"@KVIP88.KVI.nl [129.125.15.152]) <01L5FOIOW4RAASBSIQ@KVI.nl> for freebsd-openoffice@freebsd.org; Thu, 15 Jan 2004 17:04:31 +0100 (MET) Date: Thu, 15 Jan 2004 17:04:30 +0100 From: "Alexander S. Usov" To: freebsd-openoffice@freebsd.org Message-id: <200401151704.30607.A.S.Usov@kvi.nl> Organization: KVI MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.5.4 Subject: Syntax error building OO1.1_1 X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 16:04:45 -0000 Hello, I am trying to build russian/openoffice-1.1 on FreeBSD 5.2-RELEASE During compilation I get such a thing: ======================================== Making: ../unxfbsd.pro/obj/parser.obj c++ -w -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxfbsd.pro/inc -I. -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solver/645/unxfbsd.pro/inc/stl -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solver/645/unxfbsd.pro/inc/external -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solver/645/unxfbsd.pro/inc -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solenv/unxfbsd/inc -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solenv/inc -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/res -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solver/645/unxfbsd.pro/inc/stl -I/usr/ports/russian/openoffice-1.1/work/oo_1.1_src/solenv/inc/Xp31 -I/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd -I/usr/local/jdk1.4.2/include/bsd -I/usr/local/jdk1.4.2/include/native_threads/include -I/usr/X11R6/include -I. -I../res -I. -I/usr/X11R6/include -O -pipe -fno-for-scope -fpermissive -fno-rtti -fexceptions -fPIC -DFREEBSD -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -D_USE_NAMESPACE=1 -DX86 -DNEW_SOLAR -DSTLPORT_VERSION=450 -DOSVERSION=502000 -D_THREAD_SAFE -D_REENTRANT -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX645 -DMULTITHREAD -DMULTITHREAD -w -o ../unxfbsd.pro/obj/parser.o ../unxfbsd.pro/misc/parser.cxx ../unxfbsd.pro/misc/parser.cxx: In function `int yyparse()': ../unxfbsd.pro/misc/parser.cxx:4740: error: syntax error before `goto' dmake: Error code 1, while making '../unxfbsd.pro/obj/parser.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /usr/ports/russian/openoffice-1.1/work/oo_1.1_src/idlc/source dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *--- *** Error code 255 Stop in /usr/ports/russian/openoffice-1.1. *** Error code 1 Stop in /usr/ports/russian/openoffice-1.1. ======================================== I did a small search in the archives and decided to look into that parser.cxx: ======================================== /*----------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: /* Suppress GCC warning that yyerrlab1 is unused when no action invokes YYERROR. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) __attribute__ ((__unused__)) #endif /////////////////////// this is line 4740 //////////////////// goto yyerrlab2; /*---------------------------------------------------------------. | yyerrlab2 -- pop states until the error token can be shifted. | `---------------------------------------------------------------*/ ======================================== So the problem is that attribute statement. Just commenting it out and restarting compilation was enought. The problem is that I did that trick 5 or 6 times before it has compiled :) So the question is how do you compile it ??? And about details: FreeBSD 5.2-RELEASE, GCC 3.3.3 from base system, bison 1.875-2 from ports (strange, according to the freshports using "pkg_add -r bison" one should get 1.75 and not a 1.875) and almost all other software is from CD1 or packages. -- Best regards, Alexander.