Apache OpenOffice (AOO) Bugzilla – Issue 17867
IRIX: sc: function is inaccessable or MipsPro doesnt like friend functions
Last modified: 2004-02-05 12:39:58 UTC
CC -c -I. -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/offuh -I../inc -I../../../inc -I../../../unx/inc -I../../../unxirxm3.pro/inc -I. -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/external -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/unxirxm3/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/res -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc/Xp31 -I/usr/java2/include -I/usr/java2/include/irix -I/usr/java2/include/native_threads/include -I. -I../../../res -I. -O2 -g -LANG:ansi-for-init-scope=OFF -LANG:std -LANG:libc_in_namespace_std=ON -LANG:exceptions=OFF -KPIC -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730 -D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR -DSGI_STL -D__STL_THROW_RANGE_ERRORS -D__DMAKE -DUNIX -DCPPU_ENV=MipsPro -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -w -o ../../../unxirxm3.pro/slo/cell2.o /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/sc/source/core/data/cell2.cxx cc-1238 CC: ERROR File = ../../../inc/chgtrack.hxx, Line = 717 The function "ScChangeActionDel::UndoCutOffMoves" is inaccessible. friend void ScChangeActionDel::UndoCutOffMoves(); ^ cc-1238 CC: ERROR File = ../../../inc/chgtrack.hxx, Line = 1012 The function "ScChangeActionContent::Select" is inaccessible. friend BOOL ScChangeActionContent::Select( ScDocument*, ScChangeTrack*, BOOL, Stack* ); ^ 2 errors detected in the compilation of "/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/sc/source/core/data/cell2.cxx". dmake: Error code 2, while making '../../../unxirxm3.pro/slo/cell2.obj'
Changing the friends from functions to classes makes the compiler happy, although I dont think this is a good thing (on the other hand, I'm not sure why the compiler doesn't like the friend functions).
Perhaps MipsPro doesn't like friend functions...? sc/source/filter/inc/xcl97rec.hxx friend void XclObjComment::SaveCont( XclExpStream& ); to friend class XclObjComment;
sw/source/filter/ww8/wrtw8esh.hxx friend void WW8_WrPlcSepx::WriteOlst( SwWW8Writer& rWrt, USHORT i ); to friend class WW8_WrPlcSepx;
set target milestone to 1.1.1
commited (with #ifdef IRIX for now) in ooo111fix1 for sc/inc/chgtrack.hxx but: there is no sw/source/filter/ww8/wrtw8esh.hxx sc/source/filter/inc/xcl97rec.hxx doesn't contain such firend declaration please reopen if its just me being confused...
mark as verified.
closing issue, feel free to reopen in case a problem is left.