[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] Condor compilation problems in upcoming Fedora 36

Dear Condorists,

Did anyone manage to compile a recent Condor on Fedora-36 (out later this month)?

I get a nasty looking error in condor_auth_passwd.cpp:

/builddir/build/BUILD/condor-9.0.12/src/condor_io/condor_auth_passwd.cpp: In static member function 'static int Condor_Auth_Passwd::hkdf(const unsigned char*, size_t, const unsigned char*, size_t, const unsigned char*, size_t, unsigned char*, size_t)': /builddir/build/BUILD/condor-9.0.12/src/condor_io/condor_auth_passwd.cpp:1545:44: error: invalid conversion from 'void*' to 'const EVP_MD*' {aka 'const evp_md_st*'} [-fpermissive] 1545 | if (EVP_PKEY_CTX_set_hkdf_md(pctx, const_cast<void *>((const void *)EVP_sha256())) <= 0) {goto fail;} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            void*
In file included from /builddir/build/BUILD/condor-9.0.12/src/condor_io/condor_auth_passwd.cpp:31: :105:63: note: initializing argument 2 of 'int EVP_PKEY_CTX_set_hkdf_md(EVP_PKEY_CTX*, const EVP_MD*)' 105 | int EVP_PKEY_CTX_set_hkdf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
      |                                                 ~~~~~~~~~~~~~~^~

A similar error is reported a few more times in the same file.

This is with gcc 12.0.1, and openssl-devel 3.0.2.

On Fedora 35, the same builds clean (which gcc 11.2.1 and openssl-devel-1.1.1n)

I'd suspect the openssl version jump is to blame, as there are also a lot of warnings about
RSA_<anything>() being deprecated.

Regards, Bert.