Bug 54771

Summary: : Build failure with --with-system-boost
Product: LibreOffice Reporter: Bernhard Rosenkraenzer <bero>
Component: LibreOfficeAssignee: David Tardon <dtardon>
Status: RESOLVED FIXED    
Severity: normal CC: dtardon, kdudka
Priority: medium    
Version: 3.6.1.2 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Preliminary fix

Description Bernhard Rosenkraenzer 2012-09-11 12:35:00 UTC
Problem description: 
Attempting to compile LibreOffice 3.6.1.2 with system boost results in

[ build LNK ] Library/libsclo.so
/home/bero/packages/libreoffice/BUILD/libreoffice-3.6.1/workdir/unxlngx6.pro/CxxObject/sc/source/core/tool/scmatrix.o:scmatrix.cxx:function _GLOBAL__sub_I_scmatrix.cxx: error: undefined reference to 'boost::system::generic_category()'
/home/bero/packages/libreoffice/BUILD/libreoffice-3.6.1/workdir/unxlngx6.pro/CxxObject/sc/source/core/tool/scmatrix.o:scmatrix.cxx:function _GLOBAL__sub_I_scmatrix.cxx: error: undefined reference to 'boost::system::generic_category()'
/home/bero/packages/libreoffice/BUILD/libreoffice-3.6.1/workdir/unxlngx6.pro/CxxObject/sc/source/core/tool/scmatrix.o:scmatrix.cxx:function _GLOBAL__sub_I_scmatrix.cxx: error: undefined reference to 'boost::system::system_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/bero/packages/libreoffice/BUILD/libreoffice-3.6.1/workdir/unxlngx6.pro/LinkTarget/Library/libsclo.so] Error 1
make[2]: Leaving directory `/home/bero/packages/libreoffice/BUILD/libreoffice-3.6.1/tail_build'
make[1]: *** [tail_build] Error 2

because the build system "forgets" to link to libboost_system.
Comment 1 Bernhard Rosenkraenzer 2012-09-11 12:45:21 UTC
Created attachment 66968 [details]
Preliminary fix

This fixes it for me, but probably isn't quite the right thing to do (haven't fully figured out the new build system yet).
Comment 2 David Tardon 2012-09-12 04:36:24 UTC
We need to backport http://cgit.freedesktop.org/libreoffice/core/commit/?id=43a20bf6fc3213c38a77a2941a4999313bdfefbe into 3.6 .
Comment 3 David Tardon 2012-09-12 07:57:34 UTC
I have posted a review request for inclusion of the fix in 3.6