-
Notifications
You must be signed in to change notification settings - Fork 75
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
build error in python-alpine #659
Comments
Thanks @pepedocs for reporting the err! The code is part of an (rarely used) IFDEF,
It'll be good to have our build tested on Alpine, as I think it uses a different libC (?)
|
Hmmm, good you pointed this out. I was going to use this function in something I am working on. The linux man page for strerror_r( ) says:
XSI complient version returns an int. The GNU-specific version returns char*. The std:: lib has strerror( ) but it is not thread-safe. There is stderror_s( ) which returns the int which might be more universal (C++11) and is thread-safe.
|
I will create a PR to change strerror_r( ) to stderror_s everyplace. |
Hmmm, strerrorlen_s( ) is not available in MSVC 2017. But the length is never more than 94 characters so a fixed sized buffer of 100 or so would be ok. |
Oh, strerror_r is used only in OSUnix.cpp in the function getErrorMessageFromErrorCode( ). There is one of these for Windows and one for Unix. BUT getErrorMessageFromErrorCode( ) is never used by anyone. So, I am just going of get rid of it entirely. :-) |
Please note OS*.cpp have been removed in the recent PR, if there is
confusion about that
…--
Marek Otahal :o)
|
Oh, you beat me to it :) |
I was trying to build htm.core using the python installation instructions. But I encountered some errors below. The build was executed in;
docker image: python-alpine
python: 3.7.4
gcc: 8.3.0
Am I missing something?
The text was updated successfully, but these errors were encountered: