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
configure: error: Your LibreSSL headers do not match your library. #1188
Comments
I get the same error ("configure: error: Your LibreSSL headers do not match your library.") - so in that sense I cannot help - sorry - but only confirm your error. I did however roughly follow the steps of
As I said: I get the same error (nevertheless) - but you could try that at least, or maybe you can find some other ideas from this blog post? Hope this helps. |
Is this problem still present in the 7.3.0p1 and/or the -master branch? That configure check is there to avoid mixing LibreSSL headers with the OpenSSL libraries and viceversa. Unfortunately, with the way the configure script was written it was almost impossible to specify a The latest release (7.3.0p1) and the -master branch should instead work correctly in this regard and respect the LDFLAGS and CFLAGS passed to the configure script; i.e.
should do it. |
I tried this w/ 7.3.0p1 on Debian trixie/testing. - so yes: it still is present :-( |
Yeah, I've tested on FreeBSD and Arch linux. Both system have OpenSSL' libcrypto and libssl in the default search path ( |
I've also tried to build both 7.3.0p1 and 7.3.0p2 on Solaris 11(.4) with LibreSSL in /opt/libressl and am hitting the same issues. The |
@unixnation I did some further improvements to the configure script in the master branch (an RC1 will be released very shortly.) It now uses the 'standard' autoconf macros for searching libraries, so I would expect it to work out-of-the-box once you pass the LDFLAGS and CFLAGS to the configure. Can you please try again? If it still fails, can you share your exact |
Sorry for the delay in responding @omar-polo I still seem to be having the same error message on up to date master branch (i.e. 51b1913). The full configure line was The output from the configure command doesn't look hugely interesting to me but I've attached it. Let me know if you want the full 17k lines of the config.log! |
@unixnation sorry for the delay. I tried to reproduce the mismatch on OpenBSD using actually the opposite situation, LibreSSL in the default search path but linking to OpenSSL in a non-default location, but it worked. FWIW I issued I'll try to set up a Solaris virtual machine. Should I try to do something particular other than building and installing libressl in |
No worries @omar-polo :) I checked config.log from the LibreSSL build - all I've got is The only other thing that might be relevant is the version of autoconf packaged is v2.71? |
Same issue here attempting to build opensmtpd-7.4.0p0 w/ libressl on Linux. Installed libressl-3.7.3. Added If I remove the libressl line from |
In most natural setups, just pass the right |
@omar-polo thanks! Seems like it worked after I did the following: Added path line Added these flags to the existing ./configure section:
And checking deps in the
This appears to be the libressl library. I might still go back to letting it build with openssl since that's "automatic" rather than having to make these manual changes. |
This flag seems to be the cause of the issue on my Solaris 11.4 install! Removing |
@unixnation ah, great to know! I'm sorry for the delay in checking the build on solaris myself but since it doesn't boot under OpenBSD vmm(4) it takes a while for me to have access to a linux machine where I can play with qemu... Please open an issue regarding endian.h, in the meantime I'll take a look at what we can do. Thanks! |
@edrozenberg sorry for the delay, forgot to reply. We recommend LibreSSL since it's what smtpd on OpenBSD uses and what (probably) get more tests with, but of course OpenSSL will work just as fine as we try to support both libraries in this -portable repository. (said that, I'm using OpenSSL in two out of three of my smtpd instances for $reasons... ^^") P.S.: I think the configure mix of flags can be simplified to just
since CXXFLAGS are unused (there's no C++ code in the repository), there's no need to add |
I'm helping someone who has an ancient version of OpenSMTPD from 2017 with major security vulnerabilities running on Fedora 25. We're working on upgrading the entire environment, but until then, I'd like to just get OpenSMTPD >= 6.6.4 compiled on to the box to replace the vulnerable version.
First, I ran
./configure
(with openssl-devel 1.0.2m-1.fc25 installed that was used to compile the older version), butmake
had errors such as:Next, I downloaded and compiled LibreSSL into
/usr/local
but configuring OpenSMTPD leads to the error in the title of this issue:./configure --with-path-CAfile=/etc/pki/tls/cert.pem --with-libssl=/usr/local/
The text was updated successfully, but these errors were encountered: