incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <>
Subject Re: [BUILD]AOO build error in solaris
Date Sat, 17 Dec 2011 15:38:55 GMT
Hi "L'oiseau de mer",

On Sat, Dec 17, 2011 at 04:58:12PM +0800, L'oiseau de mer wrote:
> Thanks for your help, now i meet another problem in building binfilter:
> In file ooo/main/binfilter/inc/bf_goodies/hmatrix.hxx in line 115~117:
> I don't know how to modify it , because i don't know what's means "lvalue".....

so you won't understand the error. Google lvalue and rvalue sure you'll
find some tutorial.

> ===============================================================
> Entering /UNIX-LAB/ooo/main/binfilter/bf_sch/source/ui/docshell
> Compiling: binfilter/bf_sch/source/ui/docshell/sch_docshell.cxx
> "../../../../inc/bf_goodies/hmatrix.hxx", line 115: Error:
> Initializing binfilter::Point4D& requires an lvalue.
> "../../../../inc/bf_goodies/hmatrix.hxx", line 116: Error:
> Initializing binfilter::Vector3D& requires an lvalue.
> "../../../../inc/bf_goodies/hmatrix.hxx", line 117: Error:
> Initializing binfilter::Vector3D& requires an lvalue.

your compiler's behaviour has changed:
You cannot initialize a reference to a non-const object with an rvalue
or temporary.

You can fix this in different ways:

a) changing AOO source code, where relevant. In this case, for example,

   You can add your compiler in the line
   #if defined ( ICC ) || defined( GCC )

b) modify the options passed to the compiler, so that it can restore the
old behaviour. According to the Oracle documentation:
[Do not] Allow binding a non-const reference to an rvalue or temporary.
Default: -features=no%rvalueref
The C++ compiler, by default, enforces the rule that a non-const
reference cannot be bound to a temporary or rvalue. To override this
rule, use the option -features=rvalueref.

See also

For (b) you can:
b.1. modify AOO settings in trunk/main/solenv
b.2. try exporting ARCH_FLAGS, vid.

So please open an issue for this in bugzilla, and try

export ARCH_FLAGS=-features=rvalueref

and tell us if this worked for you.

Ariel Constenla-Haile
La Plata, Argentina

View raw message