Issue 17597 - IRIX: cpputools breaks with indicated type conversion is invalid
Summary: IRIX: cpputools breaks with indicated type conversion is invalid
Status: CLOSED WONT_FIX
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: sander_traveling
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 809
  Show dependency tree
 
Reported: 2003-07-30 03:01 UTC by nickb
Modified: 2010-03-29 20:47 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-07-30 03:01:23 UTC
CC -c -I.  -I../../unxirxm3.pro/inc -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  
-LANG:ansi-for-init-scope=OFF -LANG:std=ON -LANG:libc_in_namespace_std=ON
-LANG:exceptions=ON     -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730
-D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR
-D__DMAKE -DUNIX -DCPPU_ENV=MipsPro -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA
-DSRX645  -DMULTITHREAD  -w -o ../../unxirxm3.pro/obj/regsingleton.o
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx
cc-1168 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/com/sun/star/uno/Reference.h,
Line = 334
  The indicated type conversion is invalid.

                { return static_cast< interface_type * >( _pInterface ); }
                         ^
          detected during instantiation of
                    "com::sun::star::registry::XRegistryKey
                    *com::sun::star::uno::Reference<com::sun::star::registry::X
                    RegistryKey>::operator->() const" at line 133 of
                    "/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputo
                    ols/source/regsingleton/regsingleton.cxx"

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 133
  A pointer to an incomplete class type is not allowed.

                  xRoot->deleteKey( OUSTR("SINGLETONS") );
                  ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 146
  A pointer to an incomplete class type is not allowed.

              Reference< registry::XRegistryKey > xKey( xRoot->openKey(
OUSTR("SINGLETONS") ) );
                                                        ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 148
  A pointer to an incomplete class type is not allowed.

                  xKey = xRoot->createKey( OUSTR("SINGLETONS") );
                         ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 165
  A pointer to an incomplete class type is not allowed.

                          Reference< registry::XRegistryKey > xEntry(
xKey->openKey( singleton ) );
                                                                      ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 167
  A pointer to an incomplete class type is not allowed.

                              xEntry = xKey->createKey( singleton );
                                       ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 168
  A pointer to an incomplete class type is not allowed.

                          xEntry->setStringValue( service );
                          ^

cc-1367 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx,
Line = 182
  A pointer to an incomplete class type is not allowed.

                          xKey->deleteKey( singleton );
                          ^

8 errors detected in the compilation of
"/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton/regsingleton.cxx".
dmake:  Error code 2, while making '../../unxirxm3.pro/obj/regsingleton.obj'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/cpputools/source/regsingleton

I'm not really sure what to do here.
Comment 1 nickb 2003-07-30 03:01:37 UTC
added dep
Comment 2 nickb 2003-07-30 03:34:42 UTC
Changing solver/645/unxirxm3.pro/inc/com/sun/star/uno/Reference.h to a
reinterpret_cast<> (or a C-style cast) allows building, but I am not
sure of the ramifications.

I dont think it will cause problems, but why the compiler has marked
using a static_cast<> as a problem should be investigated.

The incomplete class issues.... From looking at the preprocessed source,
this is the only reference I find:
#line 16
"../../unxirxm3.pro/inc/com/sun/star/registry/XSimpleRegistry.hdl"





namespace com { namespace sun { namespace star { namespace registry {
class XRegistryKey;
} } } }

#line 37
"../../unxirxm3.pro/inc/com/sun/star/registry/XSimpleRegistry.hdl"

So, indeed, it looks like an incomplete class.
Bah, a rebuild in that directory cleared it up. XRegistryKey.hdl was
zero length.

However, the cast issue is real.
Comment 3 nickb 2003-07-31 02:51:52 UTC
Changed summary to be more appropriate
Comment 4 Martin Hollmichel 2003-08-07 15:56:19 UTC
set target milestone to 1.1.1
Comment 5 Martin Hollmichel 2003-10-17 08:21:13 UTC
reassigned.
Comment 6 sander_traveling 2003-12-04 03:34:34 UTC
retargeting to 1.1.2
Comment 7 caolanm 2010-03-29 20:47:03 UTC
per issue 106845 sb removed the partial irix port, so this doesn't make sense in
isolation anymore106845
Comment 8 caolanm 2010-03-29 20:47:18 UTC
closing