From kde-edu Sat Mar 14 18:40:09 2015 From: Alexander Semke Date: Sat, 14 Mar 2015 18:40:09 +0000 To: kde-edu Subject: Re: LabPlot builds and runs with kf5 Message-Id: <1694877.EfGnPG5NpH () linux-7xsw ! site> X-MARC-Message: https://marc.info/?l=kde-edu&m=142635847332387 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart2079992.pftXEovbze" This is a multi-part message in MIME format. --nextPart2079992.pftXEovbze Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi, > > The errors come from a file that was apparently generated with bison or > > yacc. Do you know if it is indeed generated from the .y file before you > > start building, or is a pre-generated C++ result being used? The file parser.y is written by hand. Bison generates the file parser.tab.c out of it. parser.y includes locale.h that on the other hand includes xlocale.h if __USE_XOPEN2K8 is set. xlocal.h has the typedef locale_t Marko is missing now. So, if I see it correctly, it should be sufficient to set this flag which is also the case when the GNU feature set of glibc is used. Marko, does the attached fix solve the problem? Regards Alexander --nextPart2079992.pftXEovbze Content-Disposition: attachment; filename="gnu_source.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="gnu_source.diff" diff --git a/CMakeLists.txt b/CMakeLists.txt index ef4412a..a4716cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ add_definitions (-DLVERSION='\"2.0.1\"') add_definitions(-D QT_STATICPLUGIN ) add_definitions(-DSUPPRESS_SCRIPTING_INIT) set(BUILD_SHARED_LIBS true) +set(_GNU_SOURCE true) add_definitions(-fvisibility=default) --nextPart2079992.pftXEovbze Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Ka2RlLWVkdSBt YWlsaW5nIGxpc3QKa2RlLWVkdUBtYWlsLmtkZS5vcmcKaHR0cHM6Ly9tYWlsLmtkZS5vcmcvbWFp bG1hbi9saXN0aW5mby9rZGUtZWR1Cg== --nextPart2079992.pftXEovbze--