FC4 linking question.
L/usr/include/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dn
s -lresolv -lc -lnss_files -lnss_dns -lresolv `perl -MExtUtils::Embed -e ldopts` -o zone /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(client.o)(.text+0 x689): In function `mysql_close_free_options': : undefined reference to `SSL_CTX_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x25): In function `report_errors': : undefined reference to `ERR_get_error_line_data' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x67): In function `vio_ssl_read': : undefined reference to `SSL_read' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x88): In function `vio_ssl_read': : undefined reference to `SSL_get_error' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 xbc): In function `vio_ssl_write': : undefined reference to `SSL_write' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x208): In function `vio_ssl_close': : undefined reference to `SSL_shutdown' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x218): In function `vio_ssl_close': : undefined reference to `SSL_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x331): In function `sslaccept': : undefined reference to `SSL_new' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x343): In function `sslaccept': : undefined reference to `SSL_clear' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x351): In function `sslaccept': : undefined reference to `SSL_get_session' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x360): In function `sslaccept': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x374): In function `sslaccept': : undefined reference to `SSL_set_fd' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x382): In function `sslaccept': : undefined reference to `SSL_set_accept_state' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x390): In function `sslaccept': : undefined reference to `SSL_do_handshake' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x3fd): In function `sslaccept': : undefined reference to `SSL_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x477): In function `sslconnect': : undefined reference to `SSL_new' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x489): In function `sslconnect': : undefined reference to `SSL_clear' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x497): In function `sslconnect': : undefined reference to `SSL_get_session' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x4a6): In function `sslconnect': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x4ba): In function `sslconnect': : undefined reference to `SSL_set_fd' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x4c8): In function `sslconnect': : undefined reference to `SSL_set_connect_state' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x4d6): In function `sslconnect': : undefined reference to `SSL_do_handshake' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viossl.o)(.text+0 x543): In function `sslconnect': : undefined reference to `SSL_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x8): In function `get_dh512': : undefined reference to `DH_new' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x2a): In function `get_dh512': : undefined reference to `BN_bin2bn' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x49): In function `get_dh512': : undefined reference to `BN_bin2bn' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x67): In function `get_dh512': : undefined reference to `DH_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x9a): In function `report_errors': : undefined reference to `ERR_get_error_line_data' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0xcd): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_use_certificate_file' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0xf1): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_use_PrivateKey_file' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0xfd): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_check_private_key' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x14e): In function `vio_set_cert_stuff': : undefined reference to `ERR_print_errors_fp' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x1c1): In function `vio_set_cert_stuff': : undefined reference to `ERR_print_errors_fp' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x1e9): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_current_cert' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x1f3): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x1fb): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error_depth' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x209): In function `vio_verify_callback': : undefined reference to `X509_get_subject_name' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x223): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x271): In function `vio_verify_callback': : undefined reference to `X509_get_issuer_name' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x285): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x2e7): In function `new_VioSSLConnectorFd': : undefined reference to `TLSv1_client_method' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x2f2): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_new' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x30c): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_cipher_list' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x326): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_verify' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x350): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_load_verify_locations' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x379): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x381): In function `new_VioSSLConnectorFd': : undefined reference to `DH_free' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x394): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_default_verify_paths' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x3bc): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_load_error_strings' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x3cd): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_library_init' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x3d2): In function `new_VioSSLConnectorFd': : undefined reference to `OPENSSL_add_all_algorithms_noconf' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x427): In function `new_VioSSLAcceptorFd': : undefined reference to `TLSv1_server_method' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x432): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_new' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x44c): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_cipher_list' /usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libmysqlclient.a(viosslfactories.o )(.text+0x46e): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_ctrl' It continues. What in gods green earth is causing this problem? bearz |
Are you sure about Devs files from mysql install ?
|
lmysqlclient is found in the MySQL lib dir /usr/lib/mysql in a default FC4 install. You could try specifying that lib dir in your makefile.
|
its clearly erroring on ssl symbols, which means you need to link the open ssl libraries. im suprised these didnt come out of mysql_config...
ter looking at -lssl and maybe -lcrypto and some others, im sure google can help you. |
All times are GMT -4. The time now is 07:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.