Bug 402343

Summary: rsatest fails on MacOS Mojave
Product: [Frameworks and Libraries] qca Reporter: jeremija <jerko.steiner>
Component: generalAssignee: Ivan Romanov <drizt72>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bradh, justin
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jeremija 2018-12-19 12:39:52 UTC
SUMMARY
rsatest fails on MacOS

STEPS TO REPRODUCE
1. brew install qt
2. git clone git://anongit.kde.org/qca.git
3. cd qca
4. mkdir build
5. cd build/
6. cmake .. -DCMAKE_PREFIX_PATH="/usr/local/opt/qt" -DCMAKE_INSTALL_PREFIX="$(pwd)
7. bin/rsatest

OBSERVED RESULT
RSA not supported!

EXPECTED RESULT
rsatest should not fail

SOFTWARE/OS VERSIONS
MacOS: Mojave 10.14.2
KDE Frameworks Version: 5.53.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Related to kdeconnectd startup bug when generating a certificate: https://bugs.kde.org/show_bug.cgi?id=402323
Comment 1 jeremija 2018-12-19 13:42:45 UTC
I was able to make this test pass by adding a flag to cmake: -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl

I also had to manually remove "-lcrpyto" from "build/plugins/qca-ossl/CMakeFiles/qca-ossl.dir/link.txt" because the compilation would fail with:

```
ld: library not found for -lcrypto
```

I'm not sure if this has any bad consequences, but the compilation and rsatest succeed after that.
Comment 2 Christoph Feck 2018-12-20 01:01:06 UTC
Does comment #1 indicate this is a duplicate of bug 401307?
Comment 3 jeremija 2018-12-20 09:58:45 UTC
Yeah, sorry! I didn't realize it at the time I was writing the report.

*** This bug has been marked as a duplicate of bug 401307 ***