Results 1 to 3 of 3

Thread: error undefined reference ...............

  1. #1
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default error undefined reference ...............

    helo my dynamic lib file is stored
    at /usr/src/lib/qt-3.3/lib/lhmail.so

    when i run my application
    i got the following strange errors

    ../../liblhmail.so: undefined reference to `BIO_ctrl'
    ../../liblhmail.so: undefined reference to `d2i_DHparams'
    ../../liblhmail.so: undefined reference to `X509_dup'
    ../../liblhmail.so: undefined reference to `ASN1_HEADER_free'
    ../../liblhmail.so: undefined reference to `X509_LOOKUP_file'
    ../../liblhmail.so: undefined reference to `ERR_print_errors'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_set1_RSA'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_set1_DSA'
    ../../liblhmail.so: undefined reference to `CRYPTO_mem_ctrl'
    ../../liblhmail.so: undefined reference to `RSA_free'
    ../../liblhmail.so: undefined reference to `DH_free'
    ../../liblhmail.so: undefined reference to `BIO_free'
    ../../liblhmail.so: undefined reference to `PKCS7_free'
    ../../liblhmail.so: undefined reference to `X509_LOOKUP_hash_dir'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_free'
    ../../liblhmail.so: undefined reference to `BUF_MEM_free'
    ../../liblhmail.so: undefined reference to `i2d_DHparams'
    ../../liblhmail.so: undefined reference to `PEM_read_bio_PrivateKey'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_set1_DH'
    ../../liblhmail.so: undefined reference to `ERR_load_crypto_strings'
    ../../liblhmail.so: undefined reference to `X509_LOOKUP_ctrl'
    ../../liblhmail.so: undefined reference to `PEM_write_bio_PKCS7'
    ../../liblhmail.so: undefined reference to `ASN1_dup'
    ../../liblhmail.so: undefined reference to `i2d_DSAparams'
    ../../liblhmail.so: undefined reference to `BIO_printf'
    ../../liblhmail.so: undefined reference to `RSAPrivateKey_dup'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_new'
    ../../liblhmail.so: undefined reference to `SMIME_read_PKCS7'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_get1_RSA'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_get1_DH'
    ../../liblhmail.so: undefined reference to `BIO_free_all'
    ../../liblhmail.so: undefined reference to `BIO_s_file'
    ../../liblhmail.so: undefined reference to `BIO_s_mem'
    ../../liblhmail.so: undefined reference to `BIO_new_fp'
    ../../liblhmail.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    ../../liblhmail.so: undefined reference to `PKCS7_verify'
    ../../liblhmail.so: undefined reference to `d2i_DSAparams'
    ../../liblhmail.so: undefined reference to `CRYPTO_mem_leaks'
    ../../liblhmail.so: undefined reference to `BIO_new'
    ../../liblhmail.so: undefined reference to `X509_STORE_free'
    ../../liblhmail.so: undefined reference to `X509_STORE_new'
    ../../liblhmail.so: undefined reference to `X509_STORE_add_lookup'
    ../../liblhmail.so: undefined reference to `PEM_read_bio_X509_AUX'
    ../../liblhmail.so: undefined reference to `ERR_clear_error'
    ../../liblhmail.so: undefined reference to `BIO_new_mem_buf'
    ../../liblhmail.so: undefined reference to `DSA_free'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_type'
    ../../liblhmail.so: undefined reference to `PKCS7_sign'
    ../../liblhmail.so: undefined reference to `EVP_PKEY_get1_DSA'
    ../../liblhmail.so: undefined reference to `ENGINE_load_builtin_engines'
    collect2: ld returned 1 exit status
    make: *** [pop3] Error 1

  2. #2
    Join Date
    Aug 2006
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: error undefined reference ...............

    It looks like there is an OpenSSL dependency. Are you using anything that depends on OpenSSL? If so you will need to add it to the lib path.

  3. #3
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: error undefined reference ...............

    Quote Originally Posted by croland View Post
    It looks like there is an OpenSSL dependency. Are you using anything that depends on OpenSSL? If so you will need to add it to the lib path.
    ok now
    my qt-3.3 lib is in /usr/lib/qt/lib
    so where to add openssl and which particular lib i have to add and where to add
    Regards,
    Amit

Similar Threads

  1. Compiling error
    By Foobar in forum Newbie
    Replies: 2
    Last Post: 18th March 2007, 00:02
  2. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 20:15
  3. Strange error while using Q3Canvas
    By Kapil in forum Newbie
    Replies: 13
    Last Post: 15th June 2006, 20:36
  4. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 09:52
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.