doubt regarding "WITH_TCPWRAPPER"

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sivasankari
Posts: 20
Joined: Thu, 2005-03-10, 11:28
Location: India
Contact:

doubt regarding "WITH_TCPWRAPPER"

#1 Post by sivasankari »

Hello,
when i link dcmtk with my application(which has the implementation for using dcmtk worklist service ,using findscu) in linux,
i got the following errors,
Building executable /home/DAL_Lib/DAL_Lib/DALTests_GUI/DAL_Tests...
lib/libDAL.so: undefined reference to `RAND_load_file'
lib/libDAL.so: undefined reference to `hosts_access'
lib/libDAL.so: undefined reference to `X509_LOOKUP_hash_dir'
lib/libDAL.so: undefined reference to `RAND_write_file'
lib/libDAL.so: undefined reference to `SSL_set_fd'
lib/libDAL.so: undefined reference to `SSL_CTX_free'
lib/libDAL.so: undefined reference to `SSL_shutdown'
lib/libDAL.so: undefined reference to `PEM_read_bio_DHparams'
lib/libDAL.so: undefined reference to `X509_NAME_oneline'
lib/libDAL.so: undefined reference to `SSL_get_error'
lib/libDAL.so: undefined reference to `RAND_seed'
lib/libDAL.so: undefined reference to `SSL_read'
lib/libDAL.so: undefined reference to `EVP_PKEY_bits'
lib/libDAL.so: undefined reference to `X509_LOOKUP_ctrl'
lib/libDAL.so: undefined reference to `SSL_new'
lib/libDAL.so: undefined reference to `SSL_CTX_new'
lib/libDAL.so: undefined reference to `request_init'
lib/libDAL.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
lib/libDAL.so: undefined reference to `SSL_CTX_set_default_passwd_cb'
lib/libDAL.so: undefined reference to `ERR_peek_error'
lib/libDAL.so: undefined reference to `X509_get_pubkey'
lib/libDAL.so: undefined reference to `TLSv1_client_method'
lib/libDAL.so: undefined reference to `SSL_pending'
lib/libDAL.so: undefined reference to `SSL_CTX_set_verify'
lib/libDAL.so: undefined reference to `request_set'
lib/libDAL.so: undefined reference to `BIO_free'
lib/libDAL.so: undefined reference to `SSL_get_version'
lib/libDAL.so: undefined reference to `BIO_ctrl'
lib/libDAL.so: undefined reference to `RAND_egd'
lib/libDAL.so: undefined reference to `BIO_write'
lib/libDAL.so: undefined reference to `BIO_new_file'
lib/libDAL.so: undefined reference to `SSL_load_error_strings'
lib/libDAL.so: undefined reference to `EVP_PKEY_type
lib/libDAL.so: undefined reference to `i2d_X509'
lib/libDAL.so: undefined reference to `TLSv1_method'
lib/libDAL.so: undefined reference to `ERR_reason_error_string'
lib/libDAL.so: undefined reference to `SSL_accept'
lib/libDAL.so: undefined reference to `SSL_CIPHER_get_version'
lib/libDAL.so: undefined reference to `SSL_CTX_ctrl'
lib/libDAL.so: undefined reference to `DH_free'
lib/libDAL.so: undefined reference to `X509_STORE_add_lookup'
lib/libDAL.so: undefined reference to `ASN1_INTEGER_get'
lib/libDAL.so: undefined reference to `X509_get_serialNumber'
lib/libDAL.so: undefined reference to `SSL_get_current_cipher'
lib/libDAL.so: undefined reference to `SSL_CIPHER_get_bits'
lib/libDAL.so: undefined reference to `SSL_CTX_use_PrivateKey_file'
lib/libDAL.so: undefined reference to `SSL_CTX_check_private_key'
lib/libDAL.so: undefined reference to `SSL_CTX_use_certificate_file'
lib/libDAL.so: undefined reference to `BIO_s_mem'
lib/libDAL.so: undefined reference to `SSL_connect'
lib/libDAL.so: undefined reference to `X509_get_issuer_name'
lib/libDAL.so: undefined reference to `SSL_free'
lib/libDAL.so: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
lib/libDAL.so: undefined reference to `SSL_get_peer_certificate'
lib/libDAL.so: undefined reference to `ASN1_UTCTIME_print'
lib/libDAL.so: undefined reference to `EVP_PKEY_free'
lib/libDAL.so: undefined reference to `X509_LOOKUP_file'
lib/libDAL.so: undefined reference to `SSL_write'
collect2: ld returned 1 exit status

When i included the libraries ssl and crypto (from openssl0.9.7d) to my CmakeLists.txt, my errors reduced.


Building executable /home/DAL_Lib/DAL_Lib/DALTests_GUI/DAL_Tests...
lib/libDAL.so: undefined reference to `hosts_access'
lib/libDAL.so: undefined reference to `request_init'
lib/libDAL.so: undefined reference to `request_set'
collect2: ld returned 1 exit status
make[1]: *** [/home/DAL_Lib/DAL_Lib/DALTests_GUI/DAL_Tests] Error 1
make: *** [default_target] Error 2

I think it is not including the system headers tcpd.h and syslog.h.
If yes, how to rectify the problem. Please correct me if i am wrong.

Thanks in advance,
shankari

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

You should either install "Wietse Venema's TCP wrappers library (libwrap)" and enable support for it as described in the INSTALL file, or you should disable this library completely (#undef WITH_TCPWRAPPER).

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests