Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build with libqalculate 3.9.0 #145

Closed
doronbehar opened this issue Apr 16, 2020 · 7 comments
Closed

Doesn't build with libqalculate 3.9.0 #145

doronbehar opened this issue Apr 16, 2020 · 7 comments

Comments

@doronbehar
Copy link

On NixOS, we would like to update libqalculate to 3.9.0 per https://github.com/Qalculate/libqalculate/releases/tag/v3.9.0 . When testing dependencies of it in our packages collection, we are hitting this error for nasc:

building
build flags: -j2 -l2 SHELL=/nix/store/ffli6m23501dkiznwlkf6n4xvrj02snr-bash-4.4-p23/bin/bash
Scanning dependencies of target qalculatenasc
[  5%] Building CXX object libqalculatenasc/CMakeFiles/qalculatenasc.dir/QalculateNasc.cc.o
/build/source/libqalculatenasc/QalculateNasc.cc: In function 'char* get_function_name(int)':
/build/source/libqalculatenasc/QalculateNasc.cc:38:13: error: 'string' was not declared in this scope; did you mean 'std::string'?
   38 |             string str = ename_r->name;
      |             ^~~~~~
      |             std::string
@parnoldx
Copy link
Owner

parnoldx commented May 9, 2020

Sounds like some compiler issue like #143

@parnoldx
Copy link
Owner

parnoldx commented May 17, 2020

replace all string with std::string if you want to fix this. Master has libqalculate as submodule now

@jtojnar
Copy link

jtojnar commented May 28, 2020

Using libqualculate as a submodule is not very good for Linux distros since we now need to fix issues in both the libqualculate package and nasc.

@parnoldx
Copy link
Owner

libqalculate in the ubuntu repos is ages old, so it's the way it will be.

@jtojnar
Copy link

jtojnar commented May 28, 2020

There are ways to use a submodule on ancient distros and the system variant on modern ones. It is actually pretty easy in Meson: https://mesonbuild.com/Subprojects.html#toggling-between-system-libraries-and-embedded-sources

@doronbehar
Copy link
Author

Also, I didn't manage to figure out how was this a "fix" for the issue presented - we are not ubuntu, the issue was with a rather recent libqalculate version we tried to use, isn't libqalculate 3.9.0 recent enough for your latest releases?

@parnoldx
Copy link
Owner

The submodule switch has nothing todo with this bug.
The target is the elementary OS and there a ancient libqalculate is present so that's why a submodule is used now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants