[Libreoffice] bison 2.5 breaks build process

Lubos Lunak l.lunak at suse.cz
Thu May 19 09:50:03 PDT 2011

On Wednesday 18 of May 2011, Andreas Radke wrote:
> Since bison 2.5 update I get this build break with 3.4rc1:
> In file included from
> /build/src/build/connectivity/source/parse/wrap_sqlbison.cxx:32:0:
> ../../unxlngx6.pro/misc/sqlbison.cxx: In function 'int SQLyyparse()':
> ../../unxlngx6.pro/misc/sqlbison.cxx:7814:9: error: invalid conversion from
> 'const char*' to 'sal_Char*' [-fpermissive]
> ../../inc/connectivity/sqlparse.hxx:235:14: error:   initializing
> argument 1 of 'void connectivity::OSQLParser::error(sal_Char*)'
> [-fpermissive]
> Afaik this can be fixed with adding -fpermissive to the CXXFLAGS.
> But is this the proper fix?

 No. Presumably the new bison version finally realized it's 21st century and 
started using const char* instead of plain char* when referring const 
strings. Try adding const to the relevant places in sqlbison.y .

 Lubos Lunak
 l.lunak at suse.cz

More information about the LibreOffice mailing list