Problem installing ROOT for Ubuntu 20.04

Dear users,

I am installing ROOT in my computer from the source and I obtain the following error:

The document which is referred :

[I] No git repository info found. Trying to interpret VERSION_INFO
[I] src/XrdVersion.hh successfully generated
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:140:12: error: ‘int DH_compute_key_padded(unsigned char*, const BIGNUM*, DH*)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
140 | static int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/diego/build/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslCipher.hh:40,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:38:
/usr/include/openssl/dh.h:153:5: note: previous declaration of ‘int DH_compute_key_padded(unsigned char*, const BIGNUM*, DH*)’
153 | int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
| ^~~~~~~~~~~~~~~~~~~~~
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc: In function ‘int DH_compute_key_padded(unsigned char*, const BIGNUM*, DH*)’:
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:143:12: error: invalid use of incomplete type ‘DH’ {aka ‘struct dh_st’}
143 | rv = dh->meth->compute_key(key, pub_key, dh);
| ^~
In file included from /usr/include/openssl/evp.h:14,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslCipher.hh:39,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:38:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of ‘DH’ {aka ‘struct dh_st’}
104 | typedef struct dh_st DH;
| ^~~~~
In file included from /usr/include/openssl/asn1.h:23,
from /usr/include/openssl/objects.h:15,
from /usr/include/openssl/evp.h:28,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslCipher.hh:39,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:38:
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:146:26: error: invalid use of incomplete type ‘DH’ {aka ‘struct dh_st’}
146 | pad = BN_num_bytes(dh->p) - rv;
| ^~
In file included from /usr/include/openssl/evp.h:14,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/./XrdCrypto/XrdCryptosslCipher.hh:39,
from /home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:38:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of ‘DH’ {aka ‘struct dh_st’}
104 | typedef struct dh_st DH;
| ^~~~~
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc: In member function ‘virtual char* XrdCryptosslCipher::Public(int&)’:
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:808:16: warning: declaration of ‘pub’ shadows a previous local [-Wshadow]
808 | char *pub = new char[ltmp];
| ^~~
/home/diego/build/XROOTD-prefix/src/XROOTD/src/XrdCrypto/XrdCryptosslCipher.cc:799:21: note: shadowed declaration is here
799 | const BIGNUM *pub;
| ^~~
make[5]: *** [src/CMakeFiles/XrdCryptossl-4.dir/build.make:89: src/CMakeFiles/XrdCryptossl-4.dir/XrdCrypto/XrdCryptosslCipher.cc.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:1030: src/CMakeFiles/XrdCryptossl-4.dir/all] Error 2
make[3]: *** [Makefile:130: all] Error 2

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hello @mendoza,

This has already been replied and solved in another thread created by yourself. Therefore, can you mark it as solved here? Thanks!

Cheers,
J.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.