-
-
Notifications
You must be signed in to change notification settings - Fork 903
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
[install] gumbo.c compilation failure #2464
Comments
@joyboy67 Thanks for opening this issue, and I'm sorry you're having trouble. I'll try to help. Do you know if this was a problem with Nokogiri v1.13.1? I'm going to try to reproduce what you're seeing. |
For whatever it's worth, we run tests on FreeBSD and they're green: https://github.com/sparklemotion/nokogiri/runs/5283373352?check_suite_focus=true |
I think the problem is that the
We could rename the gumbo headers to make sure they don't conflict with any system headers. |
Oh! Thanks for spotting that, @stevecheckoway. I wonder if we could also work around this by specifying @joyboy67 You could help us by providing a script to set up a fresh openbsd7 box with the same set of packages that you're using. I'm unable to reproduce this from within a VM based on https://app.vagrantup.com/generic/boxes/openbsd7 primarily because I'm not familar with the package management tools. |
@joyboy67 OK, I've reproduced this problem after installing the following packages:
What's interesting is that even if I use gcc (via However, if I install libgumbo on my linux machine system directories the correct (local) header file is used. Does anyone have any insight into why this might be (the system directory is preferred to the local directory for header files)? |
I runned From the output error, it's seems to be the Nokogiri 1.13.3 |
#2465 might fix it, but unfortunately, I don't have time to test on OpenBSD. |
@stevecheckoway I have a VM handy, I'll kick the tires. |
In some cases, building Nokogiri can pick up a system-installed libgumbo. By renaming the one external header, this should no longer happen. Fixes: #2464
Will be fixed in Nokogiri v1.14.0 |
@flavorjones Thanks for testing out that fix for me! |
I'm trying to install Nokogiri on OpenBSD 7.0 (amd_64) I got a compilation failure even with CFLAGS=-std=c99
Thank you for your help :)
Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?
What is the complete output of
gem install
?Tell us about your system!
What is the output from
ruby -v
?ruby 3.1.p18 [x68_64-openbsd7.0]
What is the output from
gem -v
?3.3.7
What is the output from
gem env
?If Linux or a BSD variant, please note:
uname -a
OpenBSD 7.0 GENERIC.PM#5 amd64
/etc/lsb-release
.No such file or directory
The text was updated successfully, but these errors were encountered: