-
Notifications
You must be signed in to change notification settings - Fork 714
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
Latest OpenSSL 1.1.0e incorrectly detected as LibreSSL during build #149
Comments
Until this is resolved, you can use the depends system to self-compile. see https://github.com/PIVX-Project/PIVX/blob/master/depends/README.md for more info. |
same here with arch and openssl 1.1.0.e-1 |
@ITwrx to get it to compile you can change the depends fontconfig requirement to 2.12.1 and apply this patch |
@aaronm-cloudtek i'll try the new 2.2.1 binary out and see if that works for me. If not, i'll be back to attempting to build. thanks for the info either way. |
Confirmed. The same build issue happens on debian stretch/testing. For those who want to compile pivx on a debian, just make sure you have an older libss-dev pkg installed: |
Even compiling it on my own won't work.
OS: arch 64 Any information about when OpenSSL won't break it? |
@Trollwut I couldn't get make in depends to work. If you got that to work, then configure should be using that v1.0 openssl that was made in depends folder, but i think you have to "point" configure at the depends stuff. maybe you can make better sense of that part in the readme linked above than i could. i don't think you can just run configure without additional params or it will try to use your default system openssl. according to @Fuzzbawls, pivx is not currently planning to move to openssl v1.1 anytime soon (maybe never), so you can either use the depends system, the binary which includes openssl v1.0.1k or you can possibly install the openssl-1.0 from arch official repos and manually specify |
@ITwrx yes, I followed the instruction of the depends-README. Took me some fiddling, but got the Qt to run. Maybe it helps that there are |
what was your configure command/other procedure for using the depends system? regarding openssl v1.0, from above: "or you can possibly install the openssl-1.0 from arch official repos and manually specify SSL_CFLAGS SSL_LIBS CRYPTO_CFLAGS CRYPTO_LIBS to pivx configure. i'm trying to do the last one but i don't know what my configure variables need to be or how to get that info." |
Fuck, did see that I wrote some bullshit. I fiddlet a bit, but DID NOT get it to run. Nonetheless I share you my approach: I'm using Arch on a 64 bit system, so this was my approach: I cloned the whole repository to my disk and went into it:
there I just made it, as I didn't needed any other archs:
This making creates a new subfolder with the name of your arch. This you need to make it in the "root" of the github repository, so:
Now you can configure it:
But here the mentioned error occures and stops the configuring:
As a "solution", I downloaded the precompiled binaries from the PIVX website and just start it from there. |
oh, i was under the impression that you were supposed to cd into the depends dir and run make there. then cd back into main dir and run configure, but point it to depends dir. then configure would use the openssl made in depends folder. i'm not sure though. that was just my reading of the readme. i'll post back if i ever get the repo opensslv1 working. |
Sorry, I suck. Yes, the first But as I said, configuring won't finish. |
@Trollwut Did the make depends script actually finish successfully? I had to bump the fontconfig requirement to 2.12.1 and apply this patch to get it to compile. Or maybe a newer version would work without the patch. |
Yes, the Didn't have to do anything with fontconfig and can't remember that I have done something similar with it in the past. |
@aaronm-cloudtek fontconfig is what crapped out on mine as well. |
suggested that anyone above experiencing this issue look at #447 |
Looks like the relevant lines are in configure.ac:898:
Why are these checks even there? Looks like RAND_egd isn't in new versions of openssl, and was being used to tell the difference between openssl and libressl. Looks like a more reliable check is needed. |
In a bizarre and frustrating twist, it looks like RAND_egd is actually still in openssl.
|
I looked into it further. RAND_egd only gets included into openssl if openssl is compiled with EGD support, which is now off by default. The declarations in the previous post are actually wrapped in an #ifdef that did not appear in the grep output. It is no longer an accurate way to check for libressl. A new way must be devised. For now, commenting out that entire test in configure.ac should serve fine as a workaround, as PIVX does not appear to require RAND_egd. Just don't use libressl. |
@ewtoombs Actually LibreSSL as well as OpenSSL over version 1.0 are do not require REND_egd. As it turns out both of them implement different cryptography from the old one, which we use in zPIV, amongst other places. The fastest way to "solve" this problem (after fixing compilation) is to change the message to specify "unsupported SSL" instead of "libressl" detected. |
How to compile use old openssl? |
environment variable |
The reported bug (OpenSSL 1.1 seen as libreSSL) is now fixed since #447 is merged. |
Try using openssl1.0-dev solved my problem |
Describe the issue
After updating to OpenSSL 1.1.0e I can no longer build.
configure
fails with:I don't have LibreSSL anywhere on my system though. I tried
configure --with-libressl
which runs successfully but thenmake
fails:What version of PIVX Core are you using?
Latest master, commit id 6b5cf7f
Machine specs:
Any extra information that might be useful in the debugging process.
config.log here
The text was updated successfully, but these errors were encountered: