Build errors

Stephan Bergmann sbergman at redhat.com
Fri Aug 28 08:27:14 PDT 2015


On 08/27/2015 10:45 PM, quailman wrote:
> I am trying to build LibreOffice for the first time, and am running into
> difficulties.
>
> This is my clone command: git clone
> git://anongit.freedesktop.org/libreoffice/core libreoffice
> This is my gcc: (Debian 4.9.3-3) 4.9.3
>
> The autogen script  works fine with no modifications. When I actually
> attempt to make it though, I keep on running into the same error, which
> I could find no information on. The error is the same each time, besides
> where in the source it is obviously :
> *
> */In file included from
> /home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpheader.hxx:75:0,//
> //                 from
> /home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.hxx:67,//
> //                 from
> /home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.cxx:61://
> ///home/quailman/code/libreoffice/include/rtl/ustring.hxx:168:5: note:
> declared here//
> //     OUString(int) = delete;//
> //     ^//
> ///home/quailman/code/libreoffice/lotuswordpro/source/filter/lwpbulletstylemgr.cxx:119:16:
> error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]//
> //         return "";/
>
> Each time it is in a function which returns a OUString, but the actual
> return statement is the *return "";*
>
> If I change the return statement to *return OUString();* it seems to
> work, but after running into the error in three separate files(and
> having no familiarity with the code), I figure I must be missing
> something bigger. Is this a familiar problem to anyone?

Just "git pull" again.  Some GCC versions have trouble with such 
statements, and those that unfortunately made it into master recently 
are fixed again with 8be00a3f757618b98d2407978eec2b8526e33232 "Help GCC."


More information about the LibreOffice mailing list