Apache OpenOffice (AOO) Bugzilla – Issue 13610
Unable to Build OOo 1.1 beta - Error(s) on Compilation of idlc
Last modified: 2003-05-22 13:20:23 UTC
Hello ! My box is running LinuX and is Configured as following : Hardware --------- Software --------- LinuX Dist. : Sorcerer LinuX LinuX Kenrel : 2.4.21-pre7 BinUtils : 2.13.2.1 GLIBC : 2.3.2 GCC : 3.2.2 JDK : 1.4.1 (Blackdown's) Bash : 2.05b tcsh : 6.12.00 Zip : 2.3 Unzip : 5.5 XFree86 : 4.3 KDE : 3.1.1a -- i've Downloaded the OOo_1.1beta_source.tar.bz2 Tarball, Unpacked it, Downloaded the GPC 2.31 lib & placed the files as written. I've than Followed every step as written at http://tools.openoffice.org/dev_docs/build_linux.html#GeneratingtheBuildEnvironmentandBuildTools after "dmake"-ing, it started the compilation, but never finished it - giving me the following Error Message : <compilation.log::snippet> ============= Building project soltools ============= /root/dev/oo_1.1beta_src/soltools/mkdepend mkout -- version: 1.3 ------------------------------ Making: ../unxlngi4.pro/misc/make_makedepend.dpc NOT-Making: Depend-Lists ------------------------------ Making: ../unxlngi4.pro/obj/cppsetup.obj gcc -fmessage-length=0 -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxlngi4.pro/inc -I. -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/dont_use_stl -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/external -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc -I/root/dev/oo_1.1beta_src/solenv/unxlngi4/inc -I/root/dev/oo_1.1beta_src/solenv/inc -I/root/dev/oo_1.1beta_src/res -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/dont_use_stl -I/root/dev/oo_1.1beta_src/solenv/inc/Xp31 -I/usr/include -I/usr/include/linux -I/usr/include/native_threads/include -I/usr/X11R6/include -I. -I../res -I. -g -O1 -pipe -mcpu=pentiumpro -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=644 -DBUILD=8557 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX644 -DNO_X11 -DXP_PC -DHW_THREADS -DINCLUDEDIR=\".\" -DSINGLETHREAD -w -o ../unxlngi4.pro/obj/cppsetup.o cppsetup.c In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from def.h:39, from cppsetup.c:29: /usr/include/gconv.h:72: parse error before "size_t" /usr/include/gconv.h:88: parse error before "size_t" /usr/include/gconv.h:97: parse error before "size_t" /usr/include/gconv.h:174: parse error before "size_t" /usr/include/gconv.h:177: parse error before '}' token In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from def.h:39, from cppsetup.c:29: /usr/include/_G_config.h:47: field `__cd' has incomplete type /usr/include/_G_config.h:50: field `__cd' has incomplete type /usr/include/_G_config.h:52: confused by earlier errors, bailing out dmake: Error code 1, while making '../unxlngi4.pro/obj/cppsetup.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /root/dev/oo_1.1beta_src/soltools/mkdepend dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *--- # </compilation.log::snippet> if you need any more info - i've got it all, just ask. Greets, Moran Z.
Created attachment 5750 [details] Logs (configure, compilation, env-setting)
My Hardware Config. -------------------- CPU : AMD Athlon 1.6GHz RAM : 512 MB HDD : 160 GB (free on linux (building) part. : 3.0 GB)
same as issue 6220, I suppose. You include /usr/include/linux, which probably happens because you have java in /usr - more a configure design fault rather than yours
actually i've got Java at /opt/j2sdk it's Blackdown' 1.4.1-01-linux-i586-gcc3.2
BIG RED NOTE : <b>i've called you to the rescue because i'd like to have a solution/workaround for the problem - i care not who's fault is it !</b> the pre-compiled binary 1.1b apps. takes just around 10-15 sec. (!!!) to load - which is hardly bearable !
This is your problem: -I/usr/include/linux Can you check JAVA_HOME in your .set file that you source. If it is set up as you think then it should be /opt/j??? not /usr. If it is not then change it to the directory you said and rebuild. The problem is with configure. We need a little more info on how you ran configure in order to correct this properly.
i've found a workaround for this issue (that works for me) : ./configure --with-jdk-home=/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2 (sure enough one should replace [/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2] this with the path on one' box...) thanks for helping to pin-point this issue ! :) that'd be nice if the ./configure'd auto-detect the /path/to/jdk/ by itself - like in the installation of OpenOffice ;-)
Reopen - now on idlc proj.... i've setup my build-env-config-etc-and-friends as following : <building_setup> $SRC_ROOT> cd config_office $SRC_ROOT/config_office> ./configure --with-jdk-home=/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2 $SRC_ROOT> bootstrap /* as i'm using bash : */ $SRC_ROOT> source LinuxIntelEnv.Set.sh $SRC_ROOT> dmake </building_setup> The current error(s) : <err> ============= Building project idlc ============= /root/dev/oo_1.1beta_src/idlc/source/preproc mkout -- version: 1.3 ------------------------------ Making: ../../unxlngi4.pro/misc/idlcpp.dpc Making : Dependencies touch ../../unxlngi4.pro/misc/idlcpp.dpc ------------------------------ [...all ok here...] Making: ../unxlngi4.pro/obj/parser.obj g++ -fmessage-length=0 -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxlngi4.pro/inc -I. -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/stl -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/external -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc -I/root/dev/oo_1.1beta_src/solenv/unxlngi4/inc -I/root/dev/oo_1.1beta_src/solenv/inc -I/root/dev/oo_1.1beta_src/res -I/root/dev/oo_1.1beta_src/solver/644/unxlngi4.pro/inc/stl -I/root/dev/oo_1.1beta_src/solenv/inc/Xp31 -I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include -I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include/linux -I/opt/j2sdk/1.4.1-01-linux-i586-gcc3.2/include/native_threads/include -I/usr/X11R6/include -I. -I../res -I. -g -O1 -pipe -mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti -include preinclude.h -fexceptions -fno-enforce-eh-specs -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=644 -DBUILD=8557 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX644 -DMULTITHREAD -DMULTITHREAD -w -o ../unxlngi4.pro/obj/parser.o ../unxlngi4.pro/misc/parser.cxx ../unxlngi4.pro/misc/parser.cxx: In function `int yyparse()': ../unxlngi4.pro/misc/parser.cxx:4740: parse error before `goto' dmake: Error code 1, while making '../unxlngi4.pro/obj/parser.obj' ---* TG_SLO.MK *--- </err>
This flex problem looks like a duplicate of issue 13385. Are you using very new versions of the flex tool like Debian linux unstable? The Java problem has an issue 12892. I am currently involved in a port so I cannot work on it. Please feel free to work out a patch :-)
nope, i'm using not else but Sorcerer Linux ( http://sorcerer.wox.org/ ) ! :) the installed flex version is 2.5.4a
The version that works for me is 2.5.4, the version that break is 2.5.4a. Can you get a downgrade flex and try again?
flex 2.5.4's not working for me too... :(
not that's so important, but now it 3 days that i use the 2.4.21-rc1 kernel
Found it. The problem is your release of Bison. http://www.openoffice.org/issues/show_bug.cgi?id=11386
that surely'd be nice if i could get bison-1.875a from http://ftp.gnu.org/gnu/bison/ unfortunately, i can NOT - because there just NO such (official ?) version exist... :(
I did some searching and found some info: http://www.openoffice.org/issues/show_bug.cgi?id=11386
reassigned to mh
mh->waratah: do we still have an issue on the beta2 tree ?
This has been handled by update to the FAQ. There is no fix, it is a buggy release of bison.
Closing resolved invalid.
Closing resolved invalid. Please re-open if you think this decision is wrong.