-
Notifications
You must be signed in to change notification settings - Fork 60
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
hiredis-client: use -fvisibility=hidden instead of -exported_symbols_list #82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much cleaner :)
Yeah, but CI is broken for some reason, not sure if related or not. |
Somehow the hiredis test suite pass on my machine, but on CI it's consistently broken for 3.1 and 3.2. 😫 |
Is it also broken on master? Maybe trigger a run from master's commit to see if it's due to these changes or not. |
No it passes fine: https://github.com/redis-rb/redis-client/actions/runs/3968428783/jobs/6801585027 the pure-ruby part of the test suite also pass fine, only the hiredis (binding) part is failing with a weird EAGAIN issue. I probably won't have time to debug this much before a week or two though :/ |
interesting, if I try to repro locally inside the @eregon given that you are on Linux if I understand correctly, I wonder if you get the same issue? |
So the issue seem to be that on Linux the |
Even though |
Well, somehow on 3.2 it is not passed:
But on 3.0 it is:
So that's likely the source of the issue yeah. |
720732a
to
1905d8c
Compare
6b5fcc7
to
f7f1063
Compare
Ok, I finally figured it out. @flavorjones is working on a cleanup of the |
Sounds like heaven to me :) (I've come across many extconf.rb, and most could afford a good cleanup, it tends to be the least readable Ruby scripts of all) |
a9d8ac0
to
0fbefe0
Compare
Rather than to use an exported symbols list, we compile with -fvisibility=hidden and mark the init function with RUBY_FUNC_EXPORTED. This was suggested by @nobu. Ref: #58 (comment)
0fbefe0
to
2dcac79
Compare
Ok, all green. Thank you all! It's much cleaner now. |
Rather than to use an exported symbols list, we compile with -fvisibility=hidden and mark the init function with RUBY_FUNC_EXPORTED.
This was suggested by @nobu.
Ref: #58 (comment)