[dev] Link-Error with Boost

2007-07-19 Thread A. Klitzing
Hi again,

I have a link error with boost here in m221. I tried it with boost
1.33.1 and 1.34.0.
I only find a helpful documentation in boost [1] about that function.

What does I need to do to fix that problem?


Regards,
André

[1] http://www.boost.org/libs/utility/throw_exception.html
--
Making: ../unxlngi6/lib/libsw680li.so
g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' 
-shared -L../unxlngi6/lib -L../lib 
-L/home/andre/SRC680_m221/solenv/unxlngi6/lib 
-L/home/andre/SRC680_m221/solver/680/unxlngi6/lib 
-L/home/andre/SRC680_m221/solenv/unxlngi6/lib -LNO_JAVA_HOME/lib 
-LNO_JAVA_HOME/jre/lib/i386 -LNO_JAVA_HOME/jre/lib/i386/client 
-LNO_JAVA_HOME/jre/lib/i386/native_threads -L/usr/lib 
../unxlngi6/slo/sw_dflt_version.o -o ../unxlngi6/lib/libsw680li.so 
../unxlngi6/slo/swmodule.o ../unxlngi6/slo/swdll.o ../unxlngi6/slo/acccell.o 
../unxlngi6/slo/acccontext.o ../unxlngi6/slo/accdoc.o 
../unxlngi6/slo/accembedded.o ../unxlngi6/slo/accfootnote.o 
../unxlngi6/slo/accframe.o ../unxlngi6/slo/accframebase.o 
../unxlngi6/slo/accfrmobj.o ../unxlngi6/slo/accfrmobjmap.o 
../unxlngi6/slo/accfrmobjslist.o ../unxlngi6/slo/accgraphic.o 
../unxlngi6/slo/accheaderfooter.o ../unxlngi6/slo/acchyperlink.o 
../unxlngi6/slo/acchypertextdata.o ../unxlngi6/slo/accmap.o 
../unxlngi6/slo/accnotextframe.o ../unxlngi6/slo/accpage.o 
../unxlngi6/slo/accpara.o ../unxlngi6/slo/accportions.o 
../unxlngi6/slo/accpreview.o ../unxlngi6/slo/accselectionhelper.o 
../unxlngi6/slo/acctable.o ../unxlngi6/slo/acctextframe.o 
../unxlngi6/slo/grfatr.o ../unxlngi6/slo/ndgrf.o ../unxlngi6/slo/paratr.o 
../unxlngi6/slo/calbck.o ../unxlngi6/slo/cellatr.o 
../unxlngi6/slo/fmtfollowtextflow.o ../unxlngi6/slo/fmtwrapinfluenceonobjpos.o 
../unxlngi6/slo/format.o ../unxlngi6/slo/hints.o ../unxlngi6/slo/swatrset.o 
../unxlngi6/slo/edfldexp.o ../unxlngi6/slo/edtab.o ../unxlngi6/slo/acorrect.o 
../unxlngi6/slo/autofmt.o ../unxlngi6/slo/edatmisc.o ../unxlngi6/slo/edattr.o 
../unxlngi6/slo/eddel.o ../unxlngi6/slo/edfcol.o ../unxlngi6/slo/edfld.o 
../unxlngi6/slo/edfmt.o ../unxlngi6/slo/edglbldc.o ../unxlngi6/slo/edglss.o 
../unxlngi6/slo/editsh.o ../unxlngi6/slo/edlingu.o ../unxlngi6/slo/ednumber.o 
../unxlngi6/slo/edredln.o ../unxlngi6/slo/edtox.o ../unxlngi6/slo/edundo.o 
../unxlngi6/slo/edws.o ../unxlngi6/slo/edsect.o ../unxlngi6/slo/bookmrk.o 
../unxlngi6/slo/callnk.o ../unxlngi6/slo/crbm.o ../unxlngi6/slo/crsrsh.o 
../unxlngi6/slo/crstrvl.o ../unxlngi6/slo/crstrvl1.o ../unxlngi6/slo/findattr.o 
../unxlngi6/slo/findcoll.o ../unxlngi6/slo/findfmt.o ../unxlngi6/slo/findtxt.o 
../unxlngi6/slo/pam.o ../unxlngi6/slo/paminit.o ../unxlngi6/slo/swcrsr.o 
../unxlngi6/slo/trvlcol.o ../unxlngi6/slo/trvlfnfl.o ../unxlngi6/slo/trvlreg.o 
../unxlngi6/slo/trvltbl.o ../unxlngi6/slo/unocrsr.o ../unxlngi6/slo/viscrs.o 
../unxlngi6/slo/scrrect.o ../unxlngi6/slo/vdraw.o ../unxlngi6/slo/viewimp.o 
../unxlngi6/slo/viewsh.o ../unxlngi6/slo/viewpg.o ../unxlngi6/slo/vnew.o 
../unxlngi6/slo/vprint.o ../unxlngi6/slo/pagepreviewlayout.o 
../unxlngi6/slo/dview.o ../unxlngi6/slo/dcontact.o ../unxlngi6/slo/dflyobj.o 
../unxlngi6/slo/drawdoc.o ../unxlngi6/slo/dobjfac.o ../unxlngi6/slo/dpage.o 
../unxlngi6/slo/swacorr.o ../unxlngi6/slo/sw3convert.o 
../unxlngi6/slo/swblocks.o ../unxlngi6/slo/SwXMLBlockImport.o 
../unxlngi6/slo/SwXMLSectionList.o ../unxlngi6/slo/SwXMLBlockExport.o 
../unxlngi6/slo/SwXMLBlockListContext.o ../unxlngi6/slo/SwXMLTextBlocks.o 
../unxlngi6/slo/SwXMLTextBlocks1.o ../unxlngi6/slo/atrfrm.o 
../unxlngi6/slo/anchoredobject.o ../unxlngi6/slo/anchoreddrawobject.o 
../unxlngi6/slo/calcmove.o ../unxlngi6/slo/colfrm.o ../unxlngi6/slo/findfrm.o 
../unxlngi6/slo/flowfrm.o ../unxlngi6/slo/fly.o ../unxlngi6/slo/flycnt.o 
../unxlngi6/slo/flyincnt.o ../unxlngi6/slo/flylay.o ../unxlngi6/slo/flypos.o 
../unxlngi6/slo/frmtool.o ../unxlngi6/slo/ftnfrm.o ../unxlngi6/slo/hffrm.o 
../unxlngi6/slo/layact.o ../unxlngi6/slo/laycache.o ../unxlngi6/slo/layouter.o 
../unxlngi6/slo/movedfwdfrmsbyobjpos.o ../unxlngi6/slo/newfrm.o 
../unxlngi6/slo/objectformatter.o ../unxlngi6/slo/objectformattertxtfrm.o 
../unxlngi6/slo/objectformatterlayfrm.o 
../unxlngi6/slo/objstmpconsiderwrapinfl.o ../unxlngi6/slo/pagechg.o 
../unxlngi6/slo/pagedesc.o ../unxlngi6/slo/paintfrm.o ../unxlngi6/slo/sectfrm.o 
../unxlngi6/slo/softpagebreak.o ../unxlngi6/slo/sortedobjs.o 
../unxlngi6/slo/sortedobjsimpl.o ../unxlngi6/slo/ssfrm.o 
../unxlngi6/slo/tabfrm.o ../unxlngi6/slo/trvlfrm.o ../unxlngi6/slo/unusedf.o 
../unxlngi6/slo/virtoutp.o ../unxlngi6/slo/wsfrm.o ../unxlngi6/slo/dbg_lay.o 
../unxlngi6/slo/atrstck.o ../unxlngi6/slo/EnhancedPDFExportHelper.o 
../unxlngi6/slo/frmcrsr.o ../unxlngi6/slo/frmform.o ../unxlngi6/slo/frminf.o 
../unxlngi6/slo/frmpaint.o ../unxlngi6/slo/guess.o ../unxlngi6/slo/inftxt.o 
../unxlngi6/slo/itradj.o ../unxlngi6/slo/itratr.o ../unxlngi6/slo/itrcrsr.o 
../unxlngi6/slo/itrform2.o ../unxlngi6/slo/itrpaint.o ../unxlngi6/slo/itrtxt.o 

Re: [dev] Link-Error with Boost

2007-07-19 Thread Caolan McNamara
On Thu, 2007-07-19 at 16:45 +0200, A. Klitzing wrote:
 Hi again,
 
 What does I need to do to fix that problem?
 
 
 Regards,
 André

  -ltl680li -li18nisolang1gcc3 -lcomphelp4gcc3 -lucbhelper4gcc3
 -luno_cppuhelpergcc3 -luno_cppu -lvos3gcc3 -luno_sal
 -luno_salhelpergcc3 -licuuc -li18nutilgcc3 -lavmedia680li -lxml2 -ldl
 -lpthread -lm -Wl,-Bdynamic -lstlport_gcc_stldebug
 ../unxlngi6/slo/formatclipboard.o: In function
 `boost::detail::shared_count::shared_countSfxPoolItem(SfxPoolItem*)':
 formatclipboard.cxx:(.text._ZN5boost6detail12shared_countC1I11SfxPoolItemEEPT_[boost::detail::shared_count::shared_countSfxPoolItem(SfxPoolItem*)]+0x66):
  undefined reference to `boost::throw_exception(std::exception const)'
 collect2: ld returned 1 exit status
 dmake:  Error code 1, while making '../unxlngi6/lib/libsw680li.so'
 ---* tg_merge.mk *---

This likely means that OOo has been configured to use the external boost
headers. The copy that OOo has internally has hacked some of the headers
to disable exceptions IIRC, and so it is likely that the file
formatclipboard.cxx is in a no exceptions makefile.mk in sw.

So, quick workaround is to add formatclipboard.obj to the
EXCEPTIONSFILES section of the makefile.mk in sw/source/ui/uiview like
one of the other examples there.

C.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]