Bug 401307 - QCA make error: ld: library not found for -lcrypto
Summary: QCA make error: ld: library not found for -lcrypto
Status: RESOLVED WORKSFORME
Alias: None
Product: qca
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: macOS (DMG) macOS
: NOR major
Target Milestone: ---
Assignee: Ivan Romanov
URL:
Keywords:
: 402343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-22 14:40 UTC by Francois Joubert
Modified: 2020-02-24 04:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Output of cmake --system-information (2.67 KB, text/rtf)
2018-11-22 14:40 UTC, Francois Joubert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Joubert 2018-11-22 14:40:30 UTC
Created attachment 116472 [details]
Output of cmake --system-information

SUMMARY
QCA V2.1.3 fail to build on macOS 10.14.1

STEPS TO REPRODUCE
1. tar -xzf qca-2.1.3.tar.xzf
2. cd qca-2.1.3
3. cmake .
4. make

OBSERVED RESULT

Final output of make command:
[ 47%] Generating qca-ossl.moc
Scanning dependencies of target qca-ossl
[ 47%] Building CXX object plugins/qca-ossl/CMakeFiles/qca-ossl.dir/qca-ossl.cpp.o
[ 48%] Linking CXX shared module ../../lib/qca-qt5/crypto/libqca-ossl.dylib
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/qca-qt5/crypto/libqca-ossl.dylib] Error 1
make[1]: *** [plugins/qca-ossl/CMakeFiles/qca-ossl.dir/all] Error 2
make: *** [all] Error 2
$


EXPECTED RESULT
Build must be successful

SOFTWARE/OS VERSIONS
MacOS: 10.14.1
Qt Version: 5.6.3

ADDITIONAL INFORMATION

OpenSSL is installed on the PC and cmake do detect it:
-- Checking for one of the modules 'nss'
-- Found OpenSSL: /opt/local/lib/libcrypto.dylib (found version "1.0.2p")  
-- Looking for EVP_md2
-- Looking for EVP_md2 - not found
CMake Warning at plugins/qca-ossl/CMakeLists.txt:18 (message):
  qca-ossl will be compiled without MD2 digest algorithm support


-- Looking for EVP_aes_128_ctr
-- Looking for EVP_aes_128_ctr - found
-- Looking for EVP_sha
-- Looking for EVP_sha - found
-- Checking for one of the modules 'libpkcs11-helper-1'

Plugins:
  qca-botan off
  qca-cyrus-sasl on
  qca-gcrypt off
  qca-gnupg on
  qca-logger on
  qca-nss off
  qca-ossl on
  qca-pkcs11 off
  qca-softstore on

The architecture looks fine:
Non-fat file: plugins/qca-ossl/CMakeFiles/qca-ossl.dir/qca-ossl.cpp.o is architecture: x86_64
Non-fat file: /opt/local/lib/libcrypto.dylib is architecture: x86_64

I have attached a file for the output of the following command:
cmake --system-information

So why does the linker not find the library?
Comment 1 jeremija 2018-12-20 09:58:45 UTC
*** Bug 402343 has been marked as a duplicate of this bug. ***
Comment 2 Albert Astals Cid 2020-01-25 11:03:11 UTC
Does this still happen in newer versions?
Comment 3 Bug Janitor Service 2020-02-09 04:33:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-02-24 04:33:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!