Apache OpenOffice (AOO) Bugzilla – Issue 38506
sfx2 fails to compile under gcc 3.3
Last modified: 2005-02-10 10:08:16 UTC
/data2/office/sfx2/source/doc/doctempl.cxx: In function `sal_Bool getTextProperty_Impl(ucb::Content&, const rtl::OUString&, rtl::OUString&)': /data2/office/sfx2/source/doc/doctempl.cxx:2681: error: `SfxURLRelocator_Impl comphelper::getProcessServiceFactory()' should have been declared inside `comphelper' /data2/office/sfx2/source/doc/doctempl.cxx:2681: error: parse error before `.' token dmake: Error code 1, while making '../../unxlngi4.pro/slo/doctempl.obj'
What version you try to build? 'Current' isn't very specific
confirmed on 680m65
Created attachment 20203 [details] Fix for this issue.
committed to cws mmeeks02 (since no-one seems to be committing it).
.
AS->mmeeks: You fixed it .. you should be the owner of this task .-)
/data2/office/sfx2/source/toolbox/tbxitem.cxx: In function `svt::ToolboxController* SfxToolBoxControllerFactory(const com::sun::star::uno::Reference<com::sun::star::frame::XFrame>&, ToolBox*, short unsigned int, const rtl::OUString&)': /data2/office/sfx2/source/toolbox/tbxitem.cxx:256: warning: cast to pointer from integer of different size /data2/office/sfx2/source/toolbox/tbxitem.cxx: In member function `virtual voidSfxToolBoxControl::statusChanged(const com::sun::star::frame::FeatureStateEvent&)': /data2/office/sfx2/source/toolbox/tbxitem.cxx:548: warning: cast to pointer from integer of different size /data2/office/sfx2/source/toolbox/tbxitem.cxx: In member function `virtual voidSfxFrameStatusListener::statusChanged(const com::sun::star::frame::FeatureStateEvent&)': /data2/office/sfx2/source/toolbox/tbxitem.cxx:1171: warning: cast to pointer from integer of different size /data2/office/sfx2/source/toolbox/tbxitem.cxx: In member function `long int SfxAppToolBoxControl_Impl::Activate(Menu*)': /data2/office/sfx2/source/toolbox/tbxitem.cxx:1851: error: no matching functionfor call to `SvFileInformationManager::GetImage(String&, int, BOOL&)' /data2/office/solver/680/unxlngi4.pro/inc/svtools/imagemgr.hxx:114: error: candidates are: static Image SvFileInformationManager::GetImage(const INetURLObject&, unsigned char) /data2/office/solver/680/unxlngi4.pro/inc/svtools/imagemgr.hxx:120: error: static Image SvFileInformationManager::GetImage(const INetURLObject&, unsigned char, unsigned char) Note the error about int.
waratah, this is not a breakage caused by my fix, is it? If not, you should consider opening a new issue for it, as the original problem was really fixed.
Ken - this is most odd; we are building successfully here with gcc-3.3.3 - and indeed, the above fix fixes the build for us; and the bug you initially mention. You have a different bug [ that is rather odd given our success ] - can you re-file that elsewhere so this cws can get nominated, such that 3.3.3 users can build :-)
To identify the code base for this fix, I change the 'target milestone' to OOo 2.0.
gcc 3.3 can build head now.