-
Notifications
You must be signed in to change notification settings - Fork 57
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
git2r build fail on OpenBSD (CRAN and github master) #138
Comments
I should note this output is the result of a fresh checkout from github, and an |
@pschmied thanks for reporting the issue. It seems the configuration is not picking up the correct path to the libressl header files. If you know the path it might work to pass it to the configure script. Could you please try (replace /path/to/libressl)
|
I received a similar error on an ubuntu machine when trying to install devtools. Installing libcryto++ and libssl-dev (using apt-get) fixed the problem. |
Thanks @stewid, In this case, I'm not sure that's the fix:
|
Okay, did some more digging, and was able to get the build to run. The library paths all appear to be correct, but the "LIBS" environment variable seems to not be set up properly. This results in a working build:
That suggests to me that the include and library paths are all set up properly, but that the tests are failing. From the config.log, the bit of c code they compile as a test for
Switching the return type to int results in working build. Have no idea if that's relevant, but I thought that char return type looked suspicious from the config.log. |
@pschmied thanks for the digging 👍 I have installed OpenBSD 5.7 on a virtual machine and can reproduce the issue. |
@pschmied could you please try to install the |
Confirmed! build_on_OpenBSD branch builds without a hitch. I appreciate you taking the time to create a fix for us non-Linux, Mac, Windows weirdos! ;-) On the upside, this should resolve future problems, if libressl becomes more common outside OpenBSD. |
Thanks for testing |
Hello,
I was reinstalling devtools after upgrading R, and ran into a build failure with git2r. I'm on OpenBSD 5.7-current, amd64. The build appears to be failing when checking for OpenSSL. I suspect this has to do with OpenBSD having swapped out OpenSSL for LibreSSL (http://www.libressl.org/), and something in git2r's autoconf setup.
Other OpenSSL-using software seems to pick up LibreSSL as a replacement, so I'm guessing there is a cross-platform way of checking for both. That said, I are no autoconf genius. I'm posting this here in hopes that someone smarter than me will have an idea of what's going on there.
More than happy to test things, if anyone has suggestions!
Relevant ./configure bits:
And here are the bits from config.log:
The text was updated successfully, but these errors were encountered: