Compile error: libXrdClient not found

Hi all,

I am trying to install root v5-23-04 in a Ubuntu 9.04 and I get the following error message during compilation:
g++ -shared -Wl,-soname,libNetx.so -m64 -g -o lib/libNetx.so net/netx/src/TXNetFile.o net/netx/src/TXNetFileStager.o net/netx/src/TXNetSystem.o net/netx/src/G__Netx.o -Lnet/xrootd/src/xrootd/lib -lXrdOuc -lXrdSys -Llib -lXrdClient
/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1

I’ve been looking around for any missing libraries and environmental variables, but I don’t see where the problem could be. The configuration I use before compiling is listed below.

Regards,

Mauro

./configure
–build=debug
–with-f77=gfortran
–enable-roofit --enable-minuit2 --enable-table --enable-globus
–enable-xml --enable-alien
–with-alien-incdir=${GSHELL_ROOT}/include
–with-alien-libdir=${GSHELL_ROOT}/lib
–with-ssl-incdir=${GSHELL_ROOT}/include
–with-ssl-libdir=${GSHELL_ROOT}/lib
–enable-pythia6
–with-pythia6-libdir=$HOME/pythia6

Hi,

This problem has probably been fixed in the trunk.
However, to be sure, could you please post

a. the result of the configure step

b. the result of the following

$ make distclean-xrootd
$ make distclean-netx
$ make distclean-proofx
$ make

Thanks,
Gerri

Hi Gerri,

the output screen for the configure step is:
Configuring for linuxx8664gcc
INFO: --enable-xml: already enabled by default.
INFO: --enable-alien: already enabled by default.
INFO: --enable-pythia6: already enabled by default.
Checking for GNU Make version >= 3.79.1 … ok
Checking for C compiler … gcc
Checking for C++ compiler … g++
Checking for linker (LD) … g++
Checking for F77 compiler … gfortran
Checking for libX11 … /usr/lib64
Checking for X11/Xlib.h … /usr/include
Checking for X11/Xft/Xft.h … /usr/include
Checking for X11/extensions/shape.h … /usr/include
Checking for libXpm … /usr/lib64
Checking for libXft … /usr/lib64
Checking for libXext … /usr/lib64
Checking whether to build included libfreetype6 … yes
Checking whether to build included libftgl … yes
Checking whether to build included libpcre … yes
Checking whether to build included zlib … yes
Checking for GL/gl.h … /usr/include
Checking for libGL, or libMesaGL … /usr/lib64
Checking for libGLU, or libMesaGLU … /usr/lib64
Checking for mysql_config … not found
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … no
Checking for rfio_api.h … no
Checking for librfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for G4Navigator.hh … no
Checking for libG4navigation … no
Checking for CLHEP/Vector/Rotation.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for libPythia6 … /home/mcosenti/pythia6
Checking for pythia6_common_block_address__ in /home/mcosenti/pythia6/libPythia6.so … no
Checking for pythia6_common_block_address_ in /home/mcosenti/pythia6/libPythia6.so … no
Checking for pythia6_common_address in /home/mcosenti/pythia6/libPythia6.so … ok
Checking for Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_client.h … no
Checking for libchirp_client … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … /home/mcosenti/alien/api/include
Checking for libgapiUI … /home/mcosenti/alien/api/lib
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libungif … no
Checking for libz … /usr/lib64
Checking for libpng … no
Checking whether to build included libAfterImage … yes
Checking for ldap.h … no
Checking for libldap … no
Checking for Python.h … no
Checking for python2.6, libpython2.6, libpython, python, or Python … no
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking whether to build xrootd … yes
Checking for for globusdir … no
Checking for GLOBUS_LOCATION … /home/mcosenti/alien/globus
Checking for openssl/x509.h … /home/mcosenti/alien/globus/include/gcc64
Checking for openssl/pem.h … /home/mcosenti/alien/globus/include/gcc64
Checking for globus_gss_assist.h … /home/mcosenti/alien/globus/include/gcc64
Checking for globus_common.h … /home/mcosenti/alien/globus/include/gcc64
Checking for globus_gsi_credential.h … /home/mcosenti/alien/globus/include/gcc64
Checking for gsi version … yes
Checking for libglobus_gss_assist_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gssapi_gsi_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_credential_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_common_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_callback_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_proxy_ssl_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_sysconfig_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_openssl_error_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gssapi_gsi_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_callback_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_oldgaa_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_cert_utils_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_openssl_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_gsi_proxy_core_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libglobus_callout_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libltdl_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libssl_gcc64 … /home/mcosenti/alien/globus/lib
Checking for libcrypto_gcc64 … /home/mcosenti/alien/globus/lib
Checking for globus-user-env.sh … /home/mcosenti/alien/globus/etc
Checking for grid-proxy-init … /home/mcosenti/alien/globus/bin
Checking for pkg_data_gcc64_rtl.gpt … /home/mcosenti/alien/globus/etc/globus_packages/globus_gsi_credential
Checking for need of globus patch … no
Checking for libssl … /home/mcosenti/alien/api/lib
Checking for libcrypto … /home/mcosenti/alien/api/lib
Checking for openssl/bio.h … /home/mcosenti/alien/api/include
Checking for openssl/blowfish.h … /home/mcosenti/alien/api/include
Checking for openssl/err.h … /home/mcosenti/alien/api/include
Checking for openssl/pem.h … /home/mcosenti/alien/api/include
Checking for openssl/rand.h … /home/mcosenti/alien/api/include
Checking for openssl/rsa.h … /home/mcosenti/alien/api/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … no
Checking for libk5crypto … no
Checking whether we’re using MIT Kerberos … no
Checking for shadow passwords … yes
Checking for gsl/gsl_version.h … no
Checking for gsl-config … not found
Checking whether to build libMathMore … no
Checking whether to build libGenVector … yes
Checking whether to build CINT5 … yes
Checking whether to build CINT7 … no
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … yes
Checking whether to build libMinuit2 … yes
Checking whether to build libUnuran … no
Checking whether to build libGdml … no
Checking whether to build libTable … yes
Checking whether to build libMemStat … yes
Checking for Clarens support … no
Checking for PEAC support … no
Generating cint dictionaries.
Checking whether setresuid declared in /usr/include/unistd.h … yes
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing etc/daemons/xrootd.rc.d … done
Writing etc/daemons/olbd.rc.d … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for alien, asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_freetype, builtin_pcre, builtin_zlib, cint5, cintex, exceptions, genvector, globus, memstat, minuit2, opengl, pythia6, reflex, roofit, shadowpw, shared, ssl, table, winrtdebug, xft, xml, xrootd.

To build ROOT type:

make

After doing the cleaning and make as you asked I get:
g++ -shared -Wl,-soname,libNetx.so -m64 -g -o lib/libNetx.so net/netx/src/TXNetFile.o net/netx/src/TXNetFileStager.o net/netx/src/TXNetSystem.o net/netx/src/G__Netx.o -Lnet/xrootd/src/xrootd/lib -lXrdOuc -lXrdSys -Llib -lXrdClient
/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1

Same as before.
Regards,

Mauro

Hi,

Did you get only this or something else before?
I do not expect the cleaning to help you, I just wanted to see the errors in the xrootd build …

Anyhow, you do not need the ROOT globus plug-ins, so you should pass ‘–disable-globus’ to ROOT configure (note that dropping --enable-globus is not enough, because you have GLOBUS_LOCATION defined).

Gerri

Hi Gerri,

sorry, I didn’t understand that way.

Well, I have done “make > make.log” so I separated the standard output messages from the error messages. The error messages I get are below.

May I should try to install the libssl.so and try again.

Regards,

Mauro

/usr/bin/ld: warning: libssl.so.0.9.7, needed by …/…/lib/libXrdCryptossl.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.0.9.7, needed by …/…/lib/libXrdCryptossl.so, not found (try using -rpath or -rpath-link)
…/…/lib/libXrdCryptossl.so: undefined reference to DSA_free' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_DigestInit' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_X509_CRL’
…/…/lib/libXrdCryptossl.so: undefined reference to OpenSSL_add_all_digests' ../../lib/libXrdCryptossl.so: undefined reference toBIO_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_gmtime_adj' ../../lib/libXrdCryptossl.so: undefined reference toBIO_s_mem’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_ctrl' ../../lib/libXrdCryptossl.so: undefined reference toDH_check’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_free' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CipherUpdate’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_check_infinite_end' ../../lib/libXrdCryptossl.so: undefined reference toX509_CRL_free’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_X509' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_RSAPrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_bn2dec' ../../lib/libXrdCryptossl.so: undefined reference toDSA_new’
…/…/lib/libXrdCryptossl.so: undefined reference to asn1_add_error' ../../lib/libXrdCryptossl.so: undefined reference toOpenSSL_add_all_ciphers’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_PrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CIPHER_CTX_init’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CipherFinal' ../../lib/libXrdCryptossl.so: undefined reference toX509_NAME_oneline’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_size' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_new’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_dup' ../../lib/libXrdCryptossl.so: undefined reference toEVP_get_cipherbyname’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_hex2bn' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_value' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_set_subject_name’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_bn2hex' ../../lib/libXrdCryptossl.so: undefined reference toRSA_size’
…/…/lib/libXrdCryptossl.so: undefined reference to SSL_load_error_strings' ../../lib/libXrdCryptossl.so: undefined reference toX509_set_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_sn2nid' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_ext_count’
…/…/lib/libXrdCryptossl.so: undefined reference to i2d_ASN1_OCTET_STRING' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_sign’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_new' ../../lib/libXrdCryptossl.so: undefined reference toX509_new’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_ASN1_OCTET_STRING' ../../lib/libXrdCryptossl.so: undefined reference toCRYPTO_malloc’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_CTX_init' ../../lib/libXrdCryptossl.so: undefined reference toASN1_get_object’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_private_decrypt' ../../lib/libXrdCryptossl.so: undefined reference toRSA_public_encrypt’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_check_key' ../../lib/libXrdCryptossl.so: undefined reference toasn1_Finish’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_add_ext' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_set’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_new' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_subject_name’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_private_encrypt' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_X509_REQ’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_BASIC_CONSTRAINTS' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_X509’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_set_pubkey' ../../lib/libXrdCryptossl.so: undefined reference toa2d_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_bio_RSAPrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toCRYPTO_free’
…/…/lib/libXrdCryptossl.so: undefined reference to i2d_ASN1_OBJECT' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to RAND_seed' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_X509_REQ’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_verify_cert' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_bits’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_new' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_DSA_PUBKEY’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_get_extensions' ../../lib/libXrdCryptossl.so: undefined reference toASN1_object_size’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CIPHER_CTX_cleanup' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_ext’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_PKEY_set1_RSA' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_RSAPrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_bio_PUBKEY' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_set_critical’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_generate_key' ../../lib/libXrdCryptossl.so: undefined reference toRSA_free’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_ASN1_INTEGER' ../../lib/libXrdCryptossl.so: undefined reference toX509_CRL_verify’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_add_entry_by_txt' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_set_object’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_new' ../../lib/libXrdCryptossl.so: undefined reference toERR_get_error’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_INTEGER_free' ../../lib/libXrdCryptossl.so: undefined reference toi2a_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_verify' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_get’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_num' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_DHparams’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_X509' ../../lib/libXrdCryptossl.so: undefined reference toPKCS5_PBKDF2_HMAC_SHA1’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_put_object' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_free' ../../lib/libXrdCryptossl.so: undefined reference toERR_error_string’
…/…/lib/libXrdCryptossl.so: undefined reference to SSL_library_init' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_to_BN’
…/…/lib/libXrdCryptossl.so: undefined reference to X509V3_EXT_print' ../../lib/libXrdCryptossl.so: undefined reference toBIO_write’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_add_extensions' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_compute_key' ../../lib/libXrdCryptossl.so: undefined reference toEVP_get_digestbyname’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_get_serialNumber' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_PUBKEY’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_dup' ../../lib/libXrdCryptossl.so: undefined reference tod2i_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_DigestFinal' ../../lib/libXrdCryptossl.so: undefined reference toi2d_ASN1_INTEGER’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_hash' ../../lib/libXrdCryptossl.so: undefined reference toX509_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_version' ../../lib/libXrdCryptossl.so: undefined reference toOBJ_create’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CipherInit' ../../lib/libXrdCryptossl.so: undefined reference toOBJ_nid2obj’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_new_null' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_new’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_new' ../../lib/libXrdCryptossl.so: undefined reference toDH_generate_parameters’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_ln2nid' ../../lib/libXrdCryptossl.so: undefined reference toX509_sign’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_read' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_issuer_name’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_EXTENSION_get_object' ../../lib/libXrdCryptossl.so: undefined reference toERR_load_crypto_strings’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_obj2txt' ../../lib/libXrdCryptossl.so: undefined reference toRSA_generate_key’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_public_decrypt' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_get_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to asn1_GetSequence' ../../lib/libXrdCryptossl.so: undefined reference toEVP_md5’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_subject_name' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CIPHER_CTX_set_key_length’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_STRING_free' ../../lib/libXrdCryptossl.so: undefined reference toDH_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_issuer_name' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_verify’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_free' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_X509’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_RSAPrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toX509_STORE_CTX_new’
…/…/lib/libXrdCryptossl.so: undefined reference to ERR_put_error' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_DHparams’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_OBJECT_free' ../../lib/libXrdCryptossl.so: undefined reference tosk_push’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_obj2nid' ../../lib/libXrdCryptossl.so: undefined reference toEVP_DigestUpdate’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_add_cert' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_new’
collect2: ld returned 1 exit status
make[5]: *** […/…/bin/xrdsecgsitest] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSecgsi] Error 2
make[1]: *** [all] Error 2
/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1

I just realised I have ssl installed, so this should not be it.

Hi Gerri,

I was not reading your posting very carefully, so I missed the enable/disable globus part. I just passed “–disable globus” to root and the problem still remains.

Regards,

Mauro

Hi,

I can try to help you only if you send the full information.

Please to the following:

$ make distclean
$ ./configure <your_options_except_--enable-globus> --disable-globus > configure.log
$ make > make.log
$ tar czvf configure-make.tag.gz configure.log make.log

where <your_options_except_–enable-globus> is

--build=debug \
--with-f77=gfortran \
--enable-roofit --enable-minuit2 --enable-table \
--enable-xml --enable-alien \
--with-alien-incdir=${GSHELL_ROOT}/include \
--with-alien-libdir=${GSHELL_ROOT}/lib \
--with-ssl-incdir=${GSHELL_ROOT}/include \
--with-ssl-libdir=${GSHELL_ROOT}/lib \
--enable-pythia6 \
--with-pythia6-libdir=$HOME/pythia6

and attach ‘configure-make.tag.gz’ to this thread.

Thanks,
Gerri

Hi Gerri,

sorry for taking long to answer.
Besides the file in the logs, there where extra messages on the screen that I copied below.

Thanks,

Mauro

Note: File “cint/cint/lib/posix/posix.h” already loaded
Note: Link requested for undefined class __dirstream (ignore this message) :0:
Note: Link requested for undefined class ipc_parm (ignore this message) :0:
Note: Link requested for undefined class ipc_perm (ignore this message) :0:
Note: Link requested for undefined class semid_ds (ignore this message) :0:
Note: Link requested for undefined class msqid_ds (ignore this message) :0:
Error: string() declared but not defined prec_stl/vector:437:
Error: string() declared but not defined prec_stl/list:187:
/usr/bin/ld: warning: libssl.so.0.9.7, needed by …/…/lib/libXrdCryptossl.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.0.9.7, needed by …/…/lib/libXrdCryptossl.so, not found (try using -rpath or -rpath-link)
…/…/lib/libXrdCryptossl.so: undefined reference to DSA_free' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_DigestInit' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_X509_CRL’
…/…/lib/libXrdCryptossl.so: undefined reference to OpenSSL_add_all_digests' ../../lib/libXrdCryptossl.so: undefined reference toBIO_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_gmtime_adj' ../../lib/libXrdCryptossl.so: undefined reference toBIO_s_mem’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_ctrl' ../../lib/libXrdCryptossl.so: undefined reference toDH_check’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_free' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CipherUpdate’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_check_infinite_end' ../../lib/libXrdCryptossl.so: undefined reference toX509_CRL_free’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_X509' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_RSAPrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_bn2dec' ../../lib/libXrdCryptossl.so: undefined reference toDSA_new’
…/…/lib/libXrdCryptossl.so: undefined reference to asn1_add_error' ../../lib/libXrdCryptossl.so: undefined reference toOpenSSL_add_all_ciphers’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_PrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CIPHER_CTX_init’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CipherFinal' ../../lib/libXrdCryptossl.so: undefined reference toX509_NAME_oneline’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_size' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_new’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_dup' ../../lib/libXrdCryptossl.so: undefined reference toEVP_get_cipherbyname’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_hex2bn' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_value' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_set_subject_name’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_bn2hex' ../../lib/libXrdCryptossl.so: undefined reference toRSA_size’
…/…/lib/libXrdCryptossl.so: undefined reference to SSL_load_error_strings' ../../lib/libXrdCryptossl.so: undefined reference toX509_set_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_sn2nid' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_ext_count’
…/…/lib/libXrdCryptossl.so: undefined reference to i2d_ASN1_OCTET_STRING' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_sign’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_new' ../../lib/libXrdCryptossl.so: undefined reference toX509_new’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_ASN1_OCTET_STRING' ../../lib/libXrdCryptossl.so: undefined reference toCRYPTO_malloc’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_CTX_init' ../../lib/libXrdCryptossl.so: undefined reference toASN1_get_object’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_private_decrypt' ../../lib/libXrdCryptossl.so: undefined reference toRSA_public_encrypt’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_check_key' ../../lib/libXrdCryptossl.so: undefined reference toasn1_Finish’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_add_ext' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_set’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_new' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_subject_name’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_private_encrypt' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_X509_REQ’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_BASIC_CONSTRAINTS' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_X509’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_set_pubkey' ../../lib/libXrdCryptossl.so: undefined reference toa2d_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_read_bio_RSAPrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toCRYPTO_free’
…/…/lib/libXrdCryptossl.so: undefined reference to i2d_ASN1_OBJECT' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_PrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to RAND_seed' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_X509_REQ’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_verify_cert' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_bits’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_new' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_DSA_PUBKEY’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_get_extensions' ../../lib/libXrdCryptossl.so: undefined reference toASN1_object_size’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CIPHER_CTX_cleanup' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_ext’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_PKEY_set1_RSA' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_RSAPrivateKey’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_bio_PUBKEY' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_set_critical’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_generate_key' ../../lib/libXrdCryptossl.so: undefined reference toRSA_free’
…/…/lib/libXrdCryptossl.so: undefined reference to d2i_ASN1_INTEGER' ../../lib/libXrdCryptossl.so: undefined reference toX509_CRL_verify’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_add_entry_by_txt' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_set_object’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_new' ../../lib/libXrdCryptossl.so: undefined reference toERR_get_error’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_INTEGER_free' ../../lib/libXrdCryptossl.so: undefined reference toi2a_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_verify' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_get’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_num' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_DHparams’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_X509' ../../lib/libXrdCryptossl.so: undefined reference toPKCS5_PBKDF2_HMAC_SHA1’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_put_object' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_free' ../../lib/libXrdCryptossl.so: undefined reference toERR_error_string’
…/…/lib/libXrdCryptossl.so: undefined reference to SSL_library_init' ../../lib/libXrdCryptossl.so: undefined reference toASN1_INTEGER_to_BN’
…/…/lib/libXrdCryptossl.so: undefined reference to X509V3_EXT_print' ../../lib/libXrdCryptossl.so: undefined reference toBIO_write’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_add_extensions' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to DH_compute_key' ../../lib/libXrdCryptossl.so: undefined reference toEVP_get_digestbyname’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_get_serialNumber' ../../lib/libXrdCryptossl.so: undefined reference toPEM_read_bio_PUBKEY’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_dup' ../../lib/libXrdCryptossl.so: undefined reference tod2i_ASN1_OBJECT’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_DigestFinal' ../../lib/libXrdCryptossl.so: undefined reference toi2d_ASN1_INTEGER’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_NAME_hash' ../../lib/libXrdCryptossl.so: undefined reference toX509_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_version' ../../lib/libXrdCryptossl.so: undefined reference toOBJ_create’
…/…/lib/libXrdCryptossl.so: undefined reference to EVP_CipherInit' ../../lib/libXrdCryptossl.so: undefined reference toOBJ_nid2obj’
…/…/lib/libXrdCryptossl.so: undefined reference to sk_new_null' ../../lib/libXrdCryptossl.so: undefined reference toEVP_PKEY_new’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_REQ_new' ../../lib/libXrdCryptossl.so: undefined reference toDH_generate_parameters’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_ln2nid' ../../lib/libXrdCryptossl.so: undefined reference toX509_sign’
…/…/lib/libXrdCryptossl.so: undefined reference to BIO_read' ../../lib/libXrdCryptossl.so: undefined reference toX509_get_issuer_name’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_EXTENSION_get_object' ../../lib/libXrdCryptossl.so: undefined reference toERR_load_crypto_strings’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_obj2txt' ../../lib/libXrdCryptossl.so: undefined reference toRSA_generate_key’
…/…/lib/libXrdCryptossl.so: undefined reference to RSA_public_decrypt' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_get_pubkey’
…/…/lib/libXrdCryptossl.so: undefined reference to asn1_GetSequence' ../../lib/libXrdCryptossl.so: undefined reference toEVP_md5’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_subject_name' ../../lib/libXrdCryptossl.so: undefined reference toEVP_CIPHER_CTX_set_key_length’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_STRING_free' ../../lib/libXrdCryptossl.so: undefined reference toDH_free’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_set_issuer_name' ../../lib/libXrdCryptossl.so: undefined reference toX509_REQ_verify’
…/…/lib/libXrdCryptossl.so: undefined reference to BN_free' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_X509’
…/…/lib/libXrdCryptossl.so: undefined reference to PEM_write_RSAPrivateKey' ../../lib/libXrdCryptossl.so: undefined reference toX509_STORE_CTX_new’
…/…/lib/libXrdCryptossl.so: undefined reference to ERR_put_error' ../../lib/libXrdCryptossl.so: undefined reference toPEM_write_bio_DHparams’
…/…/lib/libXrdCryptossl.so: undefined reference to ASN1_OBJECT_free' ../../lib/libXrdCryptossl.so: undefined reference tosk_push’
…/…/lib/libXrdCryptossl.so: undefined reference to OBJ_obj2nid' ../../lib/libXrdCryptossl.so: undefined reference toEVP_DigestUpdate’
…/…/lib/libXrdCryptossl.so: undefined reference to X509_STORE_add_cert' ../../lib/libXrdCryptossl.so: undefined reference toX509_EXTENSION_new’
collect2: ld returned 1 exit status
make[5]: *** […/…/bin/xrdsecgsitest] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSecgsi] Error 2
make[1]: *** [all] Error 2
/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1
configure-make.tag.gz (86.3 KB)

Hi Gerri,

in the last post when I said “the file in the logs” I meant “the logs in the file”.

Sorry for the mess. :blush:

Regards,

Mauro

Hi Gerri,

I solved the problem. For some reason, when I did the ./config the system was looking for the libssl and libcrypto in the alien subdirectories. I deleted the alien directory, and made ./config again (with my options) and ‘make’ and then it worked.

Thanks for the attention.

Regards,

Mauro