Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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@suse.cz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.