Issue 78877 - MacOSX : Panther gcc-3.3 build fails while compiling sc/source/filter/excel/xeescher.cxx
Summary: MacOSX : Panther gcc-3.3 build fails while compiling sc/source/filter/excel/x...
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: 680m217
Hardware: All Mac OS X, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 01:48 UTC by maho.nakata
Modified: 2017-05-20 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description maho.nakata 2007-06-26 01:48:13 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 *---
Comment 1 maho.nakata 2007-06-26 03:02:19 UTC
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 );
Comment 2 Stephan Bergmann 2007-06-28 07:36:10 UTC
@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).
Comment 3 daniel.rentz 2007-06-28 09:05:55 UTC
@maho: Your fix is ok and will work.
Comment 4 maho.nakata 2007-06-29 01:25:27 UTC
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.
Comment 5 maho.nakata 2007-06-29 01:25:51 UTC
anyway, thanks for you all!
Comment 6 niklas.nebel 2007-09-04 18:41:23 UTC
This seems to be resolved with issue 80162 (already integrated), right?
Comment 7 Marcus 2017-05-20 11:31:33 UTC
Reset assigne to the default "issues@openoffice.apache.org".