Apache OpenOffice (AOO) Bugzilla – Issue 78877
MacOSX : Panther gcc-3.3 build fails while compiling sc/source/filter/excel/xeescher.cxx
Last modified: 2017-05-20 11:31:33 UTC
ccache g++-3.3 -fsigned-char -fmessage-length=0 -malign-natural -c -O2 -fno-strict-aliasing -I. -I../../../unxmacxp .pro/inc/excel -I/Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/solver/680/unxmacxp.pro/inc/offuh -I. ./inc -I../../../inc/pch -I../../../inc/sc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Volumes /OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/solver/680/unxmacxp.pro/inc/stl -I/Volumes/OpenOffice.org/Pant her/2.0/work.SRC680_m217/SRC680_m217/solver/680/unxmacxp.pro/inc/external -I/Volumes/OpenOffice.org/Panther/2.0/work.SR C680_m217/SRC680_m217/solver/680/unxmacxp.pro/inc -I/Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/so lenv/unxmacxp/inc -I/Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/solenv/inc -I/Volumes/OpenOffice.o rg/Panther/2.0/work.SRC680_m217/SRC680_m217/res -I/Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/solv er/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Fr ameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/Volumes/OpenOffice.org/Pan ther/2.0/work.SRC680_m217/SRC680_m217/solver/680/unxmacxp.pro/inc/offuh -I. -I../../../res -I. -pipe -malign-natural -f signed-char -Wno-long-double -Wno-ctor-dtor-privacy -Wall -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non- virtual-dtor -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DCVER=C300 -DGLIBC=2 -D_PTHREADS -D_REENT RANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DU NIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DO SL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSRC680=SRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINO R=3 -DBUILD_OS_REV=9 -DSC_DLLIMPLEMENTATION -DSHAREDLIB -D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON - o ../../../unxmacxp.pro/slo/xeescher.o /Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/sc/source/filte r/excel/xeescher.cxx /Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/sc/source/filter/excel/xeescher.cxx: In constructor `X clExpChartObj::XclExpChartObj(const XclExpRoot&, com::sun::star::uno::Reference<com::sun::star::drawing::XShape>)': /Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/sc/source/filter/excel/xeescher.cxx:772: error: parse error before `,' token /Volumes/OpenOffice.org/Panther/2.0/work.SRC680_m217/SRC680_m217/sc/source/filter/excel/xeescher.cxx:771: warning: unus ed variable `SdrObject*pSdrObj' dmake: Error code 1, while making '../../../unxmacxp.pro/slo/xeescher.obj' ---* tg_merge.mk *---
thoughtlessly, i created a patch just merely pass the compilation. cvs diff: Diffing sc/source/filter/excel Index: sc/source/filter/excel/xeescher.cxx =================================================================== RCS file: /cvs/sc/sc/source/filter/excel/xeescher.cxx,v retrieving revision 1.21 diff -u -r1.21 xeescher.cxx --- sc/source/filter/excel/xeescher.cxx 22 May 2007 19:46:51 -0000 1.21 +++ sc/source/filter/excel/xeescher.cxx 26 Jun 2007 02:01:45 -0000 @@ -769,7 +769,7 @@ // client anchor if( SdrObject* pSdrObj = ::GetSdrObjectFromXShape( xShape ) ) - XclExpEscherAnchor( GetRoot(), *pSdrObj ).WriteData( rEscherEx ); + XclExpEscherAnchor( rRoot, *pSdrObj ).WriteData( rEscherEx ); // client data (the following OBJ record) rEscherEx.AddAtom( 0, ESCHER_ClientData );
@nn: Please check whether GetRoot() -> rRoot is a valid fix here (there are already similar lines in that file, but that might be coincidence). Otherwise, rewriting as (XclExpEscherAnchor( GetRoot(), *pSdrObj )).WriteData( rEscherEx ); might help (maybe naho can try it out).
@maho: Your fix is ok and will work.
sb and dr, sb's suggestion, following patch is also working. cvs diff: Diffing sc/source/filter/excel Index: sc/source/filter/excel/xeescher.cxx =================================================================== RCS file: /cvs/sc/sc/source/filter/excel/xeescher.cxx,v retrieving revision 1.21 diff -u -r1.21 xeescher.cxx --- sc/source/filter/excel/xeescher.cxx 22 May 2007 19:46:51 -0000 1.21 +++ sc/source/filter/excel/xeescher.cxx 29 Jun 2007 00:22:11 -0000 @@ -769,7 +769,7 @@ // client anchor if( SdrObject* pSdrObj = ::GetSdrObjectFromXShape( xShape ) ) - XclExpEscherAnchor( GetRoot(), *pSdrObj ).WriteData( rEscherEx ); + (XclExpEscherAnchor( GetRoot(), *pSdrObj )).WriteData( rEscherEx ); // client data (the following OBJ record) rEscherEx.AddAtom( 0, ESCHER_ClientData ); BTW: does anybody has cws handy? if not, I'll take care of this.
anyway, thanks for you all!
This seems to be resolved with issue 80162 (already integrated), right?
Reset assigne to the default "issues@openoffice.apache.org".