Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 5.5.28a
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Centos 5.9

      Description

      Trying to compile snort for CentOS:

      /usr/lib/libmysqlclient.a(client.c.o): In function `mysql_get_ssl_cipher':
      (.text+0x12f1): undefined reference to `SSL_get_current_cipher'
      /usr/lib/libmysqlclient.a(client.c.o): In function `mysql_get_ssl_cipher':
      (.text+0x12f9): undefined reference to `SSL_CIPHER_get_name'
      /usr/lib/libmysqlclient.a(client.c.o): In function `send_client_reply_packet':
      (.text+0x2834): undefined reference to `SSL_get_peer_certificate'
      /usr/lib/libmysqlclient.a(client.c.o): In function `send_client_reply_packet':
      (.text+0x2856): undefined reference to `X509_get_subject_name'
      /usr/lib/libmysqlclient.a(client.c.o): In function `send_client_reply_packet':
      (.text+0x286a): undefined reference to `X509_NAME_oneline'
      /usr/lib/libmysqlclient.a(client.c.o): In function `send_client_reply_packet':
      (.text+0x2878): undefined reference to `X509_free'
      /usr/lib/libmysqlclient.a(client.c.o): In function `send_client_reply_packet':
      (.text+0x29a4): undefined reference to `ERR_error_string_n'
      /usr/lib/libmysqlclient.a(client.c.o): In function `mysql_close':
      (.text+0x3b0c): undefined reference to `SSL_CTX_free'
      /usr/lib/libmysqlclient.a(viosocket.c.o): In function `vio_pending':
      (.text+0x12d): undefined reference to `SSL_pending'
      /usr/lib/libmysqlclient.a(viosocket.c.o): In function `vio_poll_read':
      (.text+0x37a): undefined reference to `SSL_get_fd'
      /usr/lib/libmysqlclient.a(viosocket.c.o): In function `vio_is_connected':
      (.text+0x409): undefined reference to `SSL_pending'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `free_vio_ssl_acceptor_fd':
      (.text+0x40): undefined reference to `SSL_CTX_free'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0xcb): undefined reference to `TLSv1_client_method'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0xd9): undefined reference to `SSL_CTX_new'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0xfc): undefined reference to `SSL_CTX_set_cipher_list'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x11f): undefined reference to `SSL_CTX_load_verify_locations'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x166): undefined reference to `ERR_get_error_line_data'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x177): undefined reference to `SSL_CTX_free'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x199): undefined reference to `TLSv1_server_method'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x1ab): undefined reference to `SSL_CTX_set_default_verify_paths'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x204): undefined reference to `SSL_CTX_use_PrivateKey_file'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x21d): undefined reference to `SSL_CTX_check_private_key'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x22a): undefined reference to `DH_new'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x250): undefined reference to `BN_bin2bn'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x271): undefined reference to `BN_bin2bn'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x2aa): undefined reference to `SSL_CTX_ctrl'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x2b2): undefined reference to `DH_free'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x2c9): undefined reference to `SSL_load_error_strings'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x2da): undefined reference to `SSL_library_init'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x2df): undefined reference to `OPENSSL_add_all_algorithms_noconf'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x34d): undefined reference to `ERR_get_error_line_data'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x368): undefined reference to `SSL_CTX_use_certificate_chain_file'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x3fb): undefined reference to `DH_free'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x437): undefined reference to `ERR_get_error_line_data'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x475): undefined reference to `ERR_get_error_line_data'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLFd':
      (.text+0x4d6): undefined reference to `ERR_get_error_line_data'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
      (.text+0x561): undefined reference to `SSL_CTX_ctrl'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
      (.text+0x57b): undefined reference to `SSL_CTX_set_verify'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLAcceptorFd':
      (.text+0x591): undefined reference to `SSL_CTX_set_session_id_context'
      /usr/lib/libmysqlclient.a(viosslfactories.c.o): In function `new_VioSSLConnectorFd':
      (.text+0x605): undefined reference to `SSL_CTX_set_verify'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_has_data':
      (.text+0x3f): undefined reference to `SSL_pending'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0x98): undefined reference to `SSL_new'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0xa6): undefined reference to `SSL_clear'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0xae): undefined reference to `SSL_get_session'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0xbd): undefined reference to `SSL_SESSION_set_timeout'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0xcb): undefined reference to `SSL_set_fd'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0xe1): undefined reference to `SSL_get_fd'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0x121): undefined reference to `ERR_get_error'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0x158): undefined reference to `SSL_get_error'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `ssl_do':
      (.text+0x165): undefined reference to `SSL_free'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `sslconnect':
      (.text+0x199): undefined reference to `SSL_connect'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `sslaccept':
      (.text+0x1d9): undefined reference to `SSL_accept'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_close':
      (.text+0x223): undefined reference to `SSL_set_quiet_shutdown'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_close':
      (.text+0x22b): undefined reference to `SSL_shutdown'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_delete':
      (.text+0x285): undefined reference to `SSL_free'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_write':
      (.text+0x2f2): undefined reference to `SSL_write'
      /usr/lib/libmysqlclient.a(viossl.c.o): In function `vio_ssl_read':
      (.text+0x372): undefined reference to `SSL_read'
      /usr/lib/libmysqlclient.a(my_getsystime.c.o): In function `my_getcputime':
      (.text+0x3d): undefined reference to `clock_gettime'
      /usr/lib/libmysqlclient.a(my_getsystime.c.o): In function `my_hrtime':
      (.text+0xb9): undefined reference to `clock_gettime'
      /usr/lib/libmysqlclient.a(my_getsystime.c.o): In function `my_interval_timer':
      (.text+0x149): undefined reference to `clock_gettime'
      /usr/lib/libmysqlclient.a(mysql_async.c.o): In function `my_ssl_write_async':
      (.text+0x409c): undefined reference to `SSL_write'
      /usr/lib/libmysqlclient.a(mysql_async.c.o): In function `my_ssl_write_async':
      (.text+0x40b7): undefined reference to `SSL_get_error'
      /usr/lib/libmysqlclient.a(mysql_async.c.o): In function `my_ssl_read_async':
      (.text+0x45dc): undefined reference to `SSL_read'
      /usr/lib/libmysqlclient.a(mysql_async.c.o): In function `my_ssl_read_async':
      (.text+0x45f7): undefined reference to `SSL_get_error'

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            wlad Vladislav Vaintroub added a comment -

            I do not know what's snort. but if you're using static library, you would have to link with a couple of libraries it depends on , namely openssl and librt.

            Show
            wlad Vladislav Vaintroub added a comment - I do not know what's snort. but if you're using static library, you would have to link with a couple of libraries it depends on , namely openssl and librt.
            Hide
            wlad Vladislav Vaintroub added a comment -

            Closing as not-a-bug for now. please feel free to reopen the bug once you add missing dependencies . BTW, use can use command "mysql_config -libs", to print the dependencies. On one of my machines (fedora18) it prints a whole bunch of dependent libraries -"-lm -lrt -lssl -lcrypto -ldl"

            Show
            wlad Vladislav Vaintroub added a comment - Closing as not-a-bug for now. please feel free to reopen the bug once you add missing dependencies . BTW, use can use command "mysql_config -libs", to print the dependencies. On one of my machines (fedora18) it prints a whole bunch of dependent libraries -"-lm -lrt -lssl -lcrypto -ldl"
            Hide
            svalavuo Samuli Valavuo added a comment -

            Ok. I didn't know how to link libraries. Solved this error by uninstalling MariaDB and installing MySQL. Now compiles nicely!

            Show
            svalavuo Samuli Valavuo added a comment - Ok. I didn't know how to link libraries. Solved this error by uninstalling MariaDB and installing MySQL. Now compiles nicely!

              People

              • Assignee:
                Unassigned
                Reporter:
                svalavuo Samuli Valavuo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: