Skip to content
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

LibreSSL link failure on macOS #1551

Open
fpagliughi opened this issue Dec 30, 2024 · 0 comments
Open

LibreSSL link failure on macOS #1551

fpagliughi opened this issue Dec 30, 2024 · 0 comments
Labels

Comments

@fpagliughi
Copy link
Contributor

fpagliughi commented Dec 30, 2024

It seems that linking will fail if LibreSSL is requested, but OpenSSL is installed in a default location.

The build finds the LibreSSL headers, but then attempts to link to the OpenSSL libraries. This is not a unique problem to our Paho library, but rather appears to be problematic using LibreSSL. It appears to be LibreSSL's own cmake file that finds and reports the wrong library files for linking.

On my machine, I installed LibreSSL under my home directory at /Users/fmp/usr/local. The current develop branch reports:

Use LibreSSL at 
SSL_INCLUDE_DIR: /Users/fmp/usr/local/include /usr/local/lib/libssl.dylib /usr/local/lib/libcrypto.dylib

Note that the include files are found at the correct location, but the libraries found in the default location of /usr/local.

The curl project seems to recommend unlinking openssl:
https://github.com/curl/curl/pull/11436/files

like:

% brew unlink openssl

I don't think this is something we could/should try to manage from this project, but it probably needs to be tested and documented here somewhere.

@icraggs icraggs added the build label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants