Apache OpenOffice (AOO) Bugzilla – Issue 95662
Build breaks in xmlhelp with gcc version 4.2.4
Last modified: 2009-01-19 14:32:24 UTC
The build of OOO300_m10 (I have filed it as m9 as m10 is missing in versions list) failes with the following error message (and in at least two other files with similar messages): /space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/xmlhelp/source/cxxhelp/provider ------------------------------ Making: ../../../unxlngx6.pro/slo/urlparameter.obj g++ -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing -Wuninitialized -DHAVE_EXPAT_H -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/external/libxml -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/external/libxslt -I. -I../../../unxlngx6.pro/inc/chelp -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngx6.pro/inc -I. -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/stl -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/external -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solenv/unxlngx6/inc -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solenv/inc -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/res -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/stl -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solenv/inc/Xp31 -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include/linux -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include/native_threads/include -I/usr/include -I/space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/solver/300/unxlngx6.pro/inc/offuh -I. -I../../../res -I. -pipe -Wno-ctor-dtor-privacy -fno-use-cxa-atexit -fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Werror -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.2 -DSUPD=300 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSHAREDLIB -D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../../unxlngx6.pro/slo/urlparameter.o /space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/xmlhelp/source/cxxhelp/provider/urlparameter.cxx cc1plus: warnings being treated as errors /space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/xmlhelp/source/cxxhelp/provider/urlparameter.cxx: In constructor 'InputStreamTransformer::InputStreamTransformer(chelp::URLParameter*, chelp::Databases*, bool)': /space/termite/slavedir/Ubuntu-64-Sun/workdir_xmlhelp/xmlhelp/source/cxxhelp/provider/urlparameter.cxx:884: warning: allocating zero-element array dmake: Error code 1, while making '../../../unxlngx6.pro/slo/urlparameter.obj'
Created attachment 57581 [details] Patch that may fix/workaround the problem
Fix does also work on DEV300_m34 where this problem also occurs.
As this problem still occurs on DEV300_m35 I will commit patch via CWS cli004.
Fixed in cli004.
Andreas, Do you see any risk in this proposed change?
Looks reasonable, I see no problems
Thanks, Andreas.
Please masterfix this for OOO300_m12 as this issue also applies to this milestone. The patch still works fine.
Patch applied as masterfix on branch mws_ooo300
Please verify && close
Reassign
Verified in mws_ooo300/CVS.
Closing.