Print

Print


I was trying to build recent tags of xrootd as well `master` branch on MacOs with openssl 1.1.1l available from Homebrew. My build command is: 

```
cmake .. [log in to unmask] [log in to unmask] [log in to unmask]
```
I got:
```
Consolidate compiler generated dependencies of target XrdCryptossl-5
[ 97%] Building CXX object src/CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:140:12: error: static declaration of 'DH_compute_key_padded' follows non-static declaration
static int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
           ^
[log in to unmask]:153:5: note: previous declaration is here
int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
    ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:143:12: error: member access into incomplete type 'DH' (aka 'dh_st')
    rv = dh->meth->compute_key(key, pub_key, dh);
           ^
[log in to unmask]:104:16: note: forward declaration of 'dh_st'
typedef struct dh_st DH;
               ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:146:26: error: member access into incomplete type 'DH' (aka 'dh_st')
    pad = BN_num_bytes(dh->p) - rv;
                         ^
[log in to unmask]:104:16: note: forward declaration of 'dh_st'
typedef struct dh_st DH;
               ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:541:35: error: call to 'DH_compute_key_padded' is ambiguous
                           ltmp = DH_compute_key_padded((unsigned char *)ktmp,bnpub,fDH);
                                  ^~~~~~~~~~~~~~~~~~~~~
[log in to unmask]:153:5: note: candidate function
int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
    ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:140:12: note: candidate function
static int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
           ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:715:23: error: call to 'DH_compute_key_padded' is ambiguous
               ltmp = DH_compute_key_padded((unsigned char *)ktmp,bnpub,fDH);
                      ^~~~~~~~~~~~~~~~~~~~~
[log in to unmask]:153:5: note: candidate function
int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
    ^
/Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc:140:12: note: candidate function
static int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
           ^
5 errors generated.
```
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1558

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1