chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.54k stars 204 forks source link

Trying to build on rocky 9 #421

Closed lunakoa closed 1 year ago

lunakoa commented 1 year ago

I am trying to build XCA on Rocky 9, I have successfully done it on Rocky 8

After installing rocky 9 mate I run the following

dnf -y install mariadb mariadb-server \
libtool-ltdl-devel libtool-ltdl openssl-devel pkgconf-pkg-config \
qt5-qtbase-devel qt5-qttools-devel qt5-qtbase-mysql

Then

wget https://github.com/chris2511/xca/releases/download/RELEASE.2.4.0/xca-2.4.0.tar.gz
tar zxvpf xca-2.4.0.tar.gz
cd xca-2.4.0/
./configure
make -j6

I get this error at the end

/usr/include/openssl/evp.h:1379:25: note: declared here
 1379 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey);
      |                         ^~~~~~~~~~~~~~~~~~~~
pki_key.cpp:851:42: warning: ‘int EC_KEY_check_key(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  851 |                 verify = EC_KEY_check_key(EVP_PKEY_get0_EC_KEY(pkey)) == 1;
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509.h:33,
                 from /usr/include/openssl/pem.h:23,
                 from pki_key.h:13,
                 from pki_key.cpp:9:
/usr/include/openssl/ec.h:1105:27: note: declared here
 1105 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key);
      |                           ^~~~~~~~~~~~~~~~
make[1]: *** [/root/xca-2.4.0/Rules.mak:34: pki_key.o] Error 1
make: *** [Makefile:90: lib/.build-stamp] Error 2

Any thoughts on what would cause this error?

Thanks

lunakoa commented 1 year ago

I figured out a workaround, not sure if it will work right.

But on a Rocky 8 box I did the normal ./configure && make -j6 && make install

I then rsync'd the same source workspace on to a Rocky9 box and did a make install

I then installed compat-openssl11

Running xca seemed to work. Will be testing more.

chris2511 commented 1 year ago

Release 2.4.0 does not compile with OpenSSL-3. There is Branch xca-2.4.0-ossl3, which is OpenSSL-3 compatible.

lunakoa commented 1 year ago

Thanks I used that version and it built and installed on Rocky 9