Issue 38506 - sfx2 fails to compile under gcc 3.3
Summary: sfx2 fails to compile under gcc 3.3
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 680m65
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: mmeeks
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks: 42382
  Show dependency tree
 
Reported: 2004-12-06 16:18 UTC by foskey
Modified: 2005-02-10 10:08 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Fix for this issue. (628 bytes, patch)
2004-12-07 12:19 UTC, kendy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description foskey 2004-12-06 16:18:15 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'
Comment 1 Olaf Felka 2004-12-06 16:48:03 UTC
What version you try to build? 'Current' isn't very specific
Comment 2 Martin Hollmichel 2004-12-06 17:40:33 UTC
confirmed on 680m65
Comment 3 kendy 2004-12-07 12:19:20 UTC
Created attachment 20203 [details]
Fix for this issue.
Comment 4 mmeeks 2004-12-14 14:12:32 UTC
committed to cws mmeeks02 (since no-one seems to be committing it).
Comment 5 andreas.schluens 2004-12-15 06:20:32 UTC
.
Comment 6 andreas.schluens 2004-12-15 06:21:23 UTC
AS->mmeeks: You fixed it .. you should be the owner of this task .-)
Comment 7 andreas.schluens 2004-12-15 06:21:57 UTC
.
Comment 8 foskey 2004-12-16 07:43:46 UTC
/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.
Comment 9 kendy 2004-12-16 09:20:01 UTC
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. 
Comment 10 mmeeks 2004-12-16 10:18:18 UTC
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 :-)
Comment 11 thorsten.ziehm 2004-12-20 14:02:58 UTC
To identify the code base for this fix, I change the 'target milestone' to OOo 2.0.
Comment 12 foskey 2005-02-10 10:08:16 UTC
gcc 3.3 can build head now.