build difficulty

Stephan van den Akker stephanv778 at gmail.com
Thu Aug 29 12:27:01 PDT 2013


Hi Terry and Kohei,

Running openSUSE 11.4 as well, having the same problem as you two.
Over on #libreoffice-dev the suggestion was that my compiler and my
system boost libs are too old. I'm currently trying their suggestion
of:
1 - building boost 1.47 from source
2 - building LO with this boost version

I chose boost version 1.47 because is is the oldest version that has
all the functionality needed by LO. I is old enough to be compatible
with my compiler.

Kohei: Can you explain what your change does? I might try that too.

2013/8/29 Kohei Yoshida <kohei.yoshida at suse.de>:
> On 08/29/2013 09:56 AM, dk122 at torfree.net wrote:
>>
>> I am unable to build (after `make clean`) master 139a7d2 (pulled today
>> around 12:30 UTC). The messages are, line-wrapped for e-mail, ...
>>
>> /home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
>> boost/boost/noncopyable.hpp:27:21:
>> error: ‘boost::noncopyable_::noncopyable::noncopyable()’ declared
>> with non-public access cannot be defaulted in the class body
>> /home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
>> boost/boost/noncopyable.hpp:28:22:
>> error: ‘boost::noncopyable_::noncopyable::~noncopyable()’
>> declared with non-public access cannot be defaulted in the class body
>>
>> I have to suspect that this has something to do with commit 4910c54
>> "Update the bundled boost to 1.54" combined with the fact that I am
>> building on an old release, ubuntu-natty (11.04) 32-bit.
>>
>> Suggestions welcome.
>
>
> Try this change
>
> diff --git a/solenv/gbuild/platform/com_GCC_defs.mk
> b/solenv/gbuild/platform/com_GCC_defs.mk
> index c9adf88..4b7e413 100644
> --- a/solenv/gbuild/platform/com_GCC_defs.mk
> +++ b/solenv/gbuild/platform/com_GCC_defs.mk
> @@ -66,6 +66,7 @@ gb_CXXFLAGS_COMMON := \
> -fmessage-length=0 \
> -fno-common \
> -pipe \
> + -DBOOST_NO_DEFAULTED_FUNCTIONS \
>
> ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)
> gb_CXXFLAGS_COMMON += -fno-threadsafe-statics
>
> I'm having the same issue on my machine running a slightly antiquated
> version of openSUSE (11.4), and this change fixes it for me.
>
> Kohei
>
> --
> Kohei Yoshida, LibreOffice Calc hacker, SUSE.
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice


More information about the LibreOffice mailing list