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

error: 'strtod_l' was not declared in this scope on Solaris #1203

Closed
vedranmiletic opened this issue Jun 23, 2019 · 4 comments
Closed

error: 'strtod_l' was not declared in this scope on Solaris #1203

vedranmiletic opened this issue Jun 23, 2019 · 4 comments

Comments

@vedranmiletic
Copy link

Trying to compile fmt on OpenIndiana Hipster 2019.04:

[1/165] Compiling C++ object 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o'.
FAILED: subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o 
c++ -Isubprojects/fmt-5.3.0/8e83f07@@fmt@sha -Isubprojects/fmt-5.3.0 -I../subprojects/fmt-5.3.0 -I../subprojects/fmt-5.3.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -g -fPIC -MD -MQ 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o' -MF 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o.d' -o 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o' -c ../subprojects/fmt-5.3.0/src/posix.cc
In file included from ../subprojects/fmt-5.3.0/src/posix.cc:13:
../subprojects/fmt-5.3.0/include/fmt/posix.h: In member function 'double fmt::v5::Locale::strtod(const char*&) const':
../subprojects/fmt-5.3.0/include/fmt/posix.h:316:21: error: 'strtod_l' was not declared in this scope
     double result = strtod_l(str, &end, locale_);
                     ^~~~~~~~
../subprojects/fmt-5.3.0/include/fmt/posix.h:316:21: note: suggested alternative: 'strtod'
     double result = strtod_l(str, &end, locale_);
                     ^~~~~~~~
                     strtod
[3/165] Compiling C++ object 'subprojects/spdlog-1.3.1/tests/7c1051b@@tests_exe@exe/test_errors.cpp.o'.
@vedranmiletic
Copy link
Author

vedranmiletic commented Jun 23, 2019

Forgot to mention I'm using GCC 8.3:

$ g++ --version
g++ (OpenIndiana 8.3.0-OI-0) 8.3.0

OpenIndiana provides many versions of GCC and Clang 4.0, but I'm using the current release that doesn't include a fix for #1115.

@vitaut
Copy link
Contributor

vitaut commented Jun 24, 2019

Should be fixed in d5d5865. Could you confirm that it works for you?

@vitaut vitaut closed this as completed Jun 24, 2019
@vedranmiletic
Copy link
Author

I will check this week, I managed to somehow break my installation of OpenIndiana right after reporting this.

@vedranmiletic
Copy link
Author

Confirmed working.

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

2 participants