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

Work around compiler errors on newer versions of gcc #90

Closed
wants to merge 2 commits into from

Conversation

nickmarden
Copy link
Contributor

@nickmarden nickmarden commented Aug 14, 2020

Fixes #85

Unfortunately the "fix" mentioned in the #85 thread:

CFLAGS=-Wno-error=format-overflow gem install zookeeper --version 1.4.11

did not fix the issue for me in the context of bundle install, because this had the effect of setting that value of CFLAGS for all native extensions in my bundle install, not just zookeeper. This in turn broke some of my other bundle installs.

Futhermore, bundle config build.zookeeper --with-cflags=... does not fix the issue because those bundle CFLAG settings are passed only to the zookeeper gem itself, which (because of the way ext/extconf.rb is written) does not pass the provided cflags into the zkc-3.4.5 build where the problem is really occurring.

So at the end of the day, the right solution seemed to be to patch the offending code, which leads to this one-liner PR.

@nickmarden
Copy link
Contributor Author

@miry
Copy link

miry commented Aug 20, 2020

@nickmarden
Copy link
Contributor Author

@slyphon @eric @berlincount Thanks for your awesome package, we use it a lot at Avvo!

I'm not sure how to proceed now that this PR is passing CI. I think it's pretty safe but of course the maintainers may feel otherwise. Any guidance?

@nickmarden
Copy link
Contributor Author

@slyphon @eric @berlincount I'm unclear on how to proceed here. Could I please have guidance?

@berlincount
Copy link
Contributor

I'm not really involved, so I can't comment - and shall unsubscribe from this issue :)

@malmckay
Copy link
Member

@nickmarden Thanks for the fix! We've switched to building with GitHub Actions, so I've merged this in #97 to handle that change.

@malmckay malmckay closed this Sep 24, 2021
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

Successfully merging this pull request may close these issues.

Compilation Error with GCC 8
4 participants