Apache OpenOffice (AOO) Bugzilla – Issue 5753
Include files confilcts with STLPort4 header files
Last modified: 2003-03-16 20:12:22 UTC
OS: Red hat Linux 7.3 Module: autodoc In autodoc module, there is a directory named utility in source/inc, and since autodoc use STLPort4, there also is a include file <utility> When build autodoc, the include path will be -I../../../source/inc -I <STLPort> ... this make the directory <utility> goes fist, this will case some of STLPort header files failed. The autodoc can not be built due to this problem.
I cannot reproduce the problem - autodoc builds cleanly. Can you send us a concrete error message?
I have the same error, but this time it is with the 1.0.1 sources and with SuSE 7.3 (with additionally gcc 2.95.2 installed). Here is the last part of dmake output: ============= Building project autodoc ============= /home/simon/oo_1.0.1_src/autodoc/source/displa_i/idoc ------------------------------ Making: ../../../unxlngi3.pro/obj/api_file.obj g++ -nostdinc -c -I. -I. -I../inc -I../../../source/inc -I../../../inc -I../../../unx/inc -I../../../unxlngi3.pro/inc -I. -I/home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl -I/home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/external -I/home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc -I/home/simon/oo_1.0.1_src/solenv/unxlngi3/inc -I/home/simon/oo_1.0.1_src/solenv/inc -I/home/simon/oo_1.0.1_src/res -I/usr/include -I/home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl -I/home/simon/oo_1.0.1_src/solenv/inc/Xp31 -I/home/simon/jdk1.3.1_04/include -I/home/simon/jdk1.3.1_04/include/linux -I/home/simon/jdk1.3.1_04/include/native_threads/include -I/usr/X11R6/include -I/usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include -I/usr/include -I. -I../../../res -I. -O2 -pipe -mpentiumpro -fno-for-scope -fpermissive -fexceptions -frtti -DLINUX -DUNX -DVCL -DGCC -DC295 -DINTEL -DCVER=C295 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc2 -DSUPD=641 -DBUILD=7663 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC641 -DMULTITHREAD -w -o ../../../unxlngi3.pro/obj/api_file.o /home/simon/oo_1.0.1_src/autodoc/source/displa_i/idoc/api_file.cxx In file included from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl/stl/_ios.h:23, from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl/stl/_istream.h:27, from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl/iostream:30, from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/cosv/csv_ostream.hxx:74, from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/cosv/string.hxx:73, from /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/cosv/csv_precomp.h:70, from ../../../source/inc/precomp.h:74, from /home/simon/oo_1.0.1_src/autodoc/source/displa_i/idoc/api_file.cxx:62: /home/simon/oo_1.0.1_src/solver/641/unxlngi3.pro/inc/stl/stl/_ios_base.h:25: directory `../../../source/inc/utility' specified in #include dmake: Error code 1, while making '../../../unxlngi3.pro/obj/api_file.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /home/simon/oo_1.0.1_src/autodoc/source/displa_i/idoc dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *---
see also #5863?
This problem is for GCC 2.95 only. gcc 3.0 correctly recognises utility as a directory and ignores that particular path. gcc 2.95 see the directory and crashes teh compile without searching further.
The temporary fix is to rename the utility directory under autodoc to something else, build and then rename back again. This solves the immediate problem.
REsolved on teh OO643C branch
As discussed with Armin, he thought these bug were closed, he sees all of them as verified.