Bug 69333

Summary: Other: Compiler failure on filter/source/svg/svgexport.cxx and svgfilter.cxx
Product: LibreOffice Reporter: Mikhail T. <mi+libreoffice>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WONTFIX    
Severity: normal CC: bjoern.michaelsen, michael.stahl, serval2412
Priority: medium    
Version: 4.0.5.2 release   
Hardware: Other   
OS: BSD (Others)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Build log ending with the "ambiguous" errors

Description Mikhail T. 2013-09-13 19:07:50 UTC
Created attachment 85792 [details]
Build log ending with the "ambiguous" errors

I'm using g++46 (and system boost-1.48) to build the editors/libreoffice FreeBSD port. The compile runs for a while, and then dies with:

svgexport.cxx:121:44: error: call of overloaded 'insert(com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage>&)' is ambiguous

Build log -- ending with the above error -- attached.

By default libreoffice builds with clang on FreeBSD. But it should be buildable with moder g++ just as well, should not it?
Operating System: BSD
Version: 4.0.5.2 release
Comment 1 Mikhail T. 2013-09-13 23:59:49 UTC
FWIW, upgrading Boost to 1.52 (the latest offered by FreeBSD ports) did not help. The error is the same.
Comment 2 Julien Nabet 2013-09-18 19:33:34 UTC
Mikhail T.: after having upgraded Boost, did you run a "make clean" before building again?
did you follow the advice given at this page?
(https://wiki.documentfoundation.org/Development/BuildingOnLinux)
Do you reproduce this with master sources?
Comment 3 Mikhail T. 2013-09-18 19:45:35 UTC
> did you run a "make clean" before building again?

I did a complete rebuild from scratch.

> did you follow the advice given at this page? ... /BuildingOnLinux

No, I'm not building on Linux. I'm building on FreeBSD using the editors/libreoffice port:

  http://www.freshports.org/editors/libreoffice

> Do you reproduce this with master sources?

The port downloads the master sources (4.0.5), but also includes a fair number of patches:

  http://svnweb.freebsd.org/ports/head/editors/libreoffice/files/

None of those touch anything "svg", however. Are you able to build the project yourself using g++ 4.6?
Comment 4 Julien Nabet 2013-09-18 19:55:42 UTC
Mikhail: I'm building on pc Debian testing x86-64. (gcc (Debian 4.7.3-4))

Bjoern/Michael: building problem here. Could one of you might help here?
Comment 5 Caolán McNamara 2014-11-20 10:01:55 UTC
You could try changing the code at those lines, which probably looks like this

aMasterPageTargetSet.insert( xMasterPageTarget->getMasterPage() );

to

aMasterPageTargetSet.insert(
    Reference<XInterface>(xMasterPageTarget->getMasterPage()));

But of course 4.0.X.Y is too old at this point for us to support