Apache OpenOffice (AOO) Bugzilla – Issue 17597
IRIX: cpputools breaks with indicated type conversion is invalid
Last modified: 2010-03-29 20:47:18 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.
added dep
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.
Changed summary to be more appropriate
set target milestone to 1.1.1
reassigned.
retargeting to 1.1.2
per issue 106845 sb removed the partial irix port, so this doesn't make sense in isolation anymore106845
closing