Hi @simonmichal,

The same for me:

  │  [log in to unmask]  grep -r DH_compute_key_padded .                                                    ✔ │ 14:05:47 
./dh.h:int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
  │  [log in to unmask]

I think the problem is that DH_compute_key_padded is declared as nonstatic and you have implemented it as static in xrootd ?:

/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);
    ^

See more in VERBOSE mode:

[ 97%] Building CXX object src/CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o
cd /Users/oshadura/CERN_sources/xrootd/builds/src && /Library/Developer/CommandLineTools/usr/bin/c++ -DHAVE_ATOMICS -DHAVE_CRYPT -DHAVE_CURL_MULTI_WAIT -DHAVE_FSTATAT -DHAVE_GETIFADDRS -DHAVE_LIBZ -DHAVE_NAMEINFO -DHAVE_READLINE -DHAVE_SSL -DHAVE_STRLCPY -DHAVE_XML2 -DHAVE_XRDCRYPTO -DLT_MODULE_EXT=\".dylib\" -DXRDPLUGIN_SOVERSION=\"5\" -DXrdCryptossl_5_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/oshadura/CERN_sources/xrootd/src/.. -I/Users/oshadura/CERN_sources/xrootd/src/. -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/uuid -I/Users/oshadura/CERN_sources/xrootd/src -I/Users/oshadura/CERN_sources/xrootd/builds/src -I/usr/local/include [log in to unmask] -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Kerberos.framework/Headers -Wno-deprecated-declarations -O2 -g -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -fPIC -std=gnu++14 -MD -MT src/CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o -MF CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o.d -o CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o -c /Users/oshadura/CERN_sources/xrootd/src/XrdCrypto/XrdCryptosslCipher.cc
/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.
make[2]: *** [src/CMakeFiles/XrdCryptossl-5.dir/XrdCrypto/XrdCryptosslCipher.cc.o] Error 1
make[1]: *** [src/CMakeFiles/XrdCryptossl-5.dir/all] Error 2
make: *** [all] Error 2


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1558#issuecomment-984617247", "url": "https://github.com/xrootd/xrootd/issues/1558#issuecomment-984617247", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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