Date: Thu, 15 Jan 2004 17:04:30 +0100 From: "Alexander S. Usov" <A.S.Usov@KVI.nl> To: freebsd-openoffice@freebsd.org Subject: Syntax error building OO1.1_1 Message-ID: <200401151704.30607.A.S.Usov@kvi.nl>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401151704.30607.A.S.Usov>