[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: LabPlot builds and runs with kf5
From:       Alexander Semke <Alexander.Semke () web ! de>
Date:       2015-03-14 18:40:09
Message-ID: 1694877.EfGnPG5NpH () linux-7xsw ! site
[Download RAW message or body]

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


["gnu_source.diff" (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)
 
 

[Attachment #4 (text/plain)]

_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic