I’m using gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) on Ubuntu 12.04. When I pull the latest code from the repository using ‘git pull -r’ and rerun autogen, make then fails with compiler errors:
[build RDB] scriptproviderforjavascript
In file included from /home/richard_git/libo3/include/rtl/string.hxx:32:0,
from /home/richard_git/libo3/include/rtl/ustring.hxx:31,
from /home/richard_git/libo3/registry/tools/fileurl.hxx:23,
from /home/richard_git/libo3/registry/tools/fileurl.cxx:20:
/home/richard_git/libo3/include/rtl/stringutils.hxx:78:20: sorry, unimplemented: non-static data member initialisers
/home/richard_git/libo3/include/rtl/stringutils.hxx:84:18: error: expected unqualified-id before ‘using’
In file included from /home/richard_git/libo3/registry/tools/fileurl.hxx:23:0,
from /home/richard_git/libo3/registry/tools/fileurl.cxx:20:
/home/richard_git/libo3/include/rtl/ustring.hxx: In constructor ‘rtl::OUString::OUString(char)’:
/home/richard_git/libo3/include/rtl/ustring.hxx:170:9: error: type ‘rtl::OUString’ is not a direct base of ‘rtl::OUString’
In file included from /home/richard_git/libo3/registry/tools/fileurl.hxx:23:0,
from /home/richard_git/libo3/registry/tools/fileurl.cxx:20:
/home/richard_git/libo3/include/rtl/ustring.hxx: At global scope:
/home/richard_git/libo3/include/rtl/ustring.hxx:2797:14: error: ‘rtl::OUStringLiteral1’ has not been declared
make[1]: *** [/home/richard_git/libo3/workdir/CxxObject/registry/tools/fileurl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2
As the cascade of errors starts with an apology, I assume my problem lies in the choice of compiler.
I run autogen thus:
./autogen.sh --enable-dbgutil --with-lang=‘en-GB th’ --disable-gtk3 --disable-gstreamer-1-0
I presume I’m building LibreOffice 5.0.0.0.