Issue 17867 - IRIX: sc: function is inaccessable or MipsPro doesnt like friend functions
Summary: IRIX: sc: function is inaccessable or MipsPro doesnt like friend functions
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: Martin Hollmichel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 809
  Show dependency tree
 
Reported: 2003-08-05 02:46 UTC by nickb
Modified: 2004-02-05 12:39 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 nickb 2003-08-05 02:46:20 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'
Comment 1 nickb 2003-08-05 05:18:18 UTC
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).
Comment 2 nickb 2003-08-05 05:29:57 UTC
Perhaps MipsPro doesn't like friend functions...?
sc/source/filter/inc/xcl97rec.hxx

        friend void XclObjComment::SaveCont( XclExpStream& );
to
        friend class XclObjComment;

Comment 3 nickb 2003-08-06 03:08:41 UTC
sw/source/filter/ww8/wrtw8esh.hxx
friend void WW8_WrPlcSepx::WriteOlst( SwWW8Writer& rWrt, USHORT i );
to
friend class WW8_WrPlcSepx;
Comment 4 Martin Hollmichel 2003-08-07 15:56:22 UTC
set target milestone to 1.1.1
Comment 5 sander_traveling 2003-10-16 21:27:46 UTC
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...
Comment 6 Martin Hollmichel 2004-02-05 12:28:53 UTC
mark as verified.
Comment 7 Martin Hollmichel 2004-02-05 12:39:58 UTC
closing issue, feel free to reopen in case a problem is left.