Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Building with OpenSSL fails #94

Open
AWhetter opened this issue Sep 16, 2021 · 0 comments
Open

Building with OpenSSL fails #94

AWhetter opened this issue Sep 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@AWhetter
Copy link

I am building with -DPCLOUD_TLS_IMPL:STRING='openssl' but I get the following build errors:

/home/ashley/workspace/pcloud-console-client/src/pcloud-console-client-3.0.0-a2/src/psync/pssl-openssl.c: In function ‘RSA_memory_lock_fixed’:
/home/ashley/workspace/pcloud-console-client/src/pcloud-console-client-3.0.0-a2/src/psync/pssl-openssl.c:434:8: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’}
  434 |   if (r->d==NULL)
      |        ^~
...
/home/ashley/workspace/pcloud-console-client/src/pcloud-console-client-3.0.0-a2/src/psync/pssl-openssl.c:442:12: error: invalid application of ‘sizeof’ to incomplete type ‘BIGNUM’ {aka ‘struct bignum_st’}
  442 |   k=sizeof(BIGNUM)*6;
      |            ^~~~~~
...
In file included from /home/ashley/workspace/pcloud-console-client/src/pcloud-console-client-3.0.0-a2/src/psync/pssl-openssl.c:38:
/home/ashley/workspace/pcloud-console-client/src/pcloud-console-client-3.0.0-a2/src/psync/pssl-openssl.c:448:12: error: ‘RSA_F_RSA_MEMORY_LOCK’ undeclared (first use in this function)
  448 |     RSAerr(RSA_F_RSA_MEMORY_LOCK, ERR_R_MALLOC_FAILURE);
      |            ^~~~~~~~~~~~~~~~~~~~~

I'm using GCC 11.1.0 on Arch Linux. This is using the openssl/1.1.1k built by conan.

@sergeyklay sergeyklay added the bug Something isn't working label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants