Closed parkmino closed 4 years ago
I build it successfully with ENABLE_SSL="OFF". Is it related to the version of openssl ?
Yes, it seems the openssl version in jessy is to old. There are API changes in openssl 1.1.0 and jessie ships a 1.0.x version.
ENABLE_SSL="OFF" does not work for 'pkgdebian' option. Is there any work around?
All packaging options don‘t respect the environment variables. But removing the libssl-dev package should do the trick.
I think the best way is to improve the cmake script.
Check openssl version >= 1.1.0
if(<variable|string> VERSION_GREATER <variable|string>) Component-wise integer version number comparison (version format is major[.minor[.patch[.tweak]]]).
OPENSSL_VERSION This is set to $major.$minor.$revision$patch (e.g. 0.9.8s).
I also stumbled upon this while trying to compile on an old debian, and I worked around it by having warnings not treated as errors, by removing the -Werror
flags here: https://github.com/jcorporation/myMPD/blob/master/CMakeLists.txt#L120-L123
That's not a great solution in general, but allowed me to compile and test quickly.
This work around works, thanks!
I also stumbled upon this while trying to compile on an old debian, and I worked around it by having warnings not treated as errors, by removing the
-Werror
flags here: https://github.com/jcorporation/myMPD/blob/master/CMakeLists.txt#L120-L123That's not a great solution in general, but allowed me to compile and test quickly.
Works SSL with this hack or you don‘t enabled ssl anyway?
It builds showing the error message with ssl enabled.
My question was: with this hack, runs the binary with ssl flawless?
Yes, it shows the error message though.
Same here, I just went back to that test setup and enabled SSL and it works. The browser shows the "unknown issuer" SSL error warning, but I guess that is expected.
The "unknown issuer" warning is ok, if you not imported the myMPD CA. The build should now disable SSL if OpenSSL version is smaller than 1.1.0. Can you give it a try?
No, this doesn't seem to work entirely, I just built from the devel
branch (6a80ea2f0
), yielding first this (and I was already writing that it worked :-) ):
Searching for openssl
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.0.1t")
Openssl is disabled
But the build later fails with the same warnings as reported above.
Last commit should fix the issue definitely. Don't hesitate to reopen the issue, if it don't works for you.
Yes, it now builds flawlessly. Thanks !
myMPD version: 6.0.1
Describe the bug
Tried to build debian jessie for armel, however it failed with the following message.