From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 05:40:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1931D16A4CF for ; Fri, 27 Feb 2004 05:40:21 -0800 (PST) Received: from web13607.mail.yahoo.com (web13607.mail.yahoo.com [216.136.175.118]) by mx1.FreeBSD.org (Postfix) with SMTP id C31E443D31 for ; Fri, 27 Feb 2004 05:40:08 -0800 (PST) (envelope-from morten_vchit@yahoo.com) Message-ID: <20040227134007.90000.qmail@web13607.mail.yahoo.com> Received: from [212.242.49.77] by web13607.mail.yahoo.com via HTTP; Fri, 27 Feb 2004 14:40:07 CET Date: Fri, 27 Feb 2004 14:40:07 +0100 (CET) From: =?iso-8859-1?q?Morten=20Buhl?= To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Problem: postfix 2.0.18 and mysql 4.0.18 on 5.2.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nemo@rudiment.dk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 13:40:21 -0000 Hi, I have run into some problems during compilation of postfix. It only occures when I try to compile in mysql support. [src/error] cc -DHAS_MYSQL -I/usr/local/include/mysql -DNO_PCRE -O -pipe -mcpu=pentiumpro -I. -I../../include -DFREEBSD5 -c error.c cc -DHAS_MYSQL -I/usr/local/include/mysql -DNO_PCRE -O -pipe -mcpu=pentiumpro -I. -I../../include -DFREEBSD5 -o error error.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a /usr/local/lib/mysql/libmysqlclient.a -lm -lz /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `report_errors': viossl.o(.text+0x3c): undefined reference to `ERR_get_error_line_data' /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `vio_ssl_read': viossl.o(.text+0xc7): undefined reference to `SSL_read' viossl.o(.text+0xdf): undefined reference to `SSL_get_error' /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `vio_ssl_write': viossl.o(.text+0x124): undefined reference to `SSL_write' /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `vio_ssl_close': viossl.o(.text+0x2a7): undefined reference to `SSL_shutdown' viossl.o(.text+0x2b7): undefined reference to `SSL_free' /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `sslaccept': viossl.o(.text+0x472): undefined reference to `SSL_new' viossl.o(.text+0x49a): undefined reference to `SSL_clear' viossl.o(.text+0x4a8): undefined reference to `SSL_get_session' viossl.o(.text+0x4b7): undefined reference to `SSL_SESSION_set_timeout' viossl.o(.text+0x4cb): undefined reference to `SSL_set_fd' viossl.o(.text+0x4d9): undefined reference to `SSL_set_accept_state' viossl.o(.text+0x4e7): undefined reference to `SSL_do_handshake' viossl.o(.text+0x4fe): undefined reference to `SSL_free' viossl.o(.text+0x56a): undefined reference to `SSL_get_peer_certificate' viossl.o(.text+0x578): undefined reference to `X509_get_subject_name' viossl.o(.text+0x590): undefined reference to `X509_NAME_oneline' viossl.o(.text+0x5a0): undefined reference to `X509_get_issuer_name' viossl.o(.text+0x5b8): undefined reference to `X509_NAME_oneline' viossl.o(.text+0x5c8): undefined reference to `X509_free' viossl.o(.text+0x5e8): undefined reference to `SSL_get_shared_ciphers' /usr/local/lib/mysql/libmysqlclient.a(viossl.o): In function `sslconnect': viossl.o(.text+0x669): undefined reference to `SSL_new' viossl.o(.text+0x68b): undefined reference to `SSL_clear' viossl.o(.text+0x699): undefined reference to `SSL_get_session' viossl.o(.text+0x6a8): undefined reference to `SSL_SESSION_set_timeout' viossl.o(.text+0x6bc): undefined reference to `SSL_set_fd' viossl.o(.text+0x6ca): undefined reference to `SSL_set_connect_state' viossl.o(.text+0x6d8): undefined reference to `SSL_do_handshake' viossl.o(.text+0x6f4): undefined reference to `SSL_free' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `get_dh512': viosslfactories.o(.text+0xa): undefined reference to `DH_new' viosslfactories.o(.text+0x2c): undefined reference to `BN_bin2bn' viosslfactories.o(.text+0x4b): undefined reference to `BN_bin2bn' viosslfactories.o(.text+0x60): undefined reference to `DH_free' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `report_errors': viosslfactories.o(.text+0xa6): undefined reference to `ERR_get_error_line_data' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `vio_set_cert_stuff': viosslfactories.o(.text+0xf0): undefined reference to `SSL_CTX_use_certificate_file' viosslfactories.o(.text+0x126): undefined reference to `ERR_print_errors_fp' viosslfactories.o(.text+0x150): undefined reference to `SSL_CTX_use_PrivateKey_file' viosslfactories.o(.text+0x186): undefined reference to `ERR_print_errors_fp' viosslfactories.o(.text+0x1bb): undefined reference to `SSL_CTX_check_private_key' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `vio_verify_callback': viosslfactories.o(.text+0x1fc): undefined reference to `X509_STORE_CTX_get_current_cert' viosslfactories.o(.text+0x206): undefined reference to `X509_STORE_CTX_get_error' viosslfactories.o(.text+0x20e): undefined reference to `X509_STORE_CTX_get_error_depth' viosslfactories.o(.text+0x21c): undefined reference to `X509_get_subject_name' viosslfactories.o(.text+0x236): undefined reference to `X509_NAME_oneline' viosslfactories.o(.text+0x287): undefined reference to `X509_get_issuer_name' viosslfactories.o(.text+0x2a1): undefined reference to `X509_NAME_oneline' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `new_VioSSLConnectorFd': viosslfactories.o(.text+0x30c): undefined reference to `OPENSSL_add_all_algorithms_noconf' viosslfactories.o(.text+0x321): undefined reference to `SSL_load_error_strings' viosslfactories.o(.text+0x331): undefined reference to `TLSv1_client_method' viosslfactories.o(.text+0x33c): undefined reference to `SSL_CTX_new' viosslfactories.o(.text+0x358): undefined reference to `SSL_CTX_set_cipher_list' viosslfactories.o(.text+0x372): undefined reference to `SSL_CTX_set_verify' viosslfactories.o(.text+0x3a7): undefined reference to `SSL_CTX_load_verify_locations' viosslfactories.o(.text+0x3b5): undefined reference to `SSL_CTX_set_default_verify_paths' viosslfactories.o(.text+0x3de): undefined reference to `SSL_CTX_ctrl' viosslfactories.o(.text+0x3e6): undefined reference to `DH_free' /usr/local/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `new_VioSSLAcceptorFd': viosslfactories.o(.text+0x462): undefined reference to `OPENSSL_add_all_algorithms_noconf' viosslfactories.o(.text+0x481): undefined reference to `SSL_load_error_strings' viosslfactories.o(.text+0x491): undefined reference to `TLSv1_server_method' viosslfactories.o(.text+0x49c): undefined reference to `SSL_CTX_new' viosslfactories.o(.text+0x4b8): undefined reference to `SSL_CTX_set_cipher_list' viosslfactories.o(.text+0x4da): undefined reference to `SSL_CTX_ctrl' viosslfactories.o(.text+0x4f4): undefined reference to `SSL_CTX_set_verify' viosslfactories.o(.text+0x50d): undefined reference to `SSL_CTX_set_session_id_context' viosslfactories.o(.text+0x542): undefined reference to `SSL_CTX_load_verify_locations' viosslfactories.o(.text+0x550): undefined reference to `SSL_CTX_set_default_verify_paths' viosslfactories.o(.text+0x579): undefined reference to `SSL_CTX_ctrl' viosslfactories.o(.text+0x581): undefined reference to `DH_free' *** Error code 1 Stop in /usr/ports/mail/postfix/work/postfix-2.0.18/src/error. *** Error code 1 Stop in /usr/ports/mail/postfix/work/postfix-2.0.18. *** Error code 1 Stop in /usr/ports/mail/postfix. *** Error code 1 I can see that it finds mysqlclients lib ===> postfix-2.0.18,1 depends on file: \ /usr/local/lib/mysql/libmysqlclient.a - found but when I do a make clean I get: ===> Cleaning for mysql-client-3.23.58_1 I have looked around in the archives to see if I could find a solution, but had no luck. I also compile with -DNO_PCRE, but not having this setting set doesnt solve anything. I am guessing this is a problem with the version of mysql am linking against. but how can I solve it? I read something about WITH_MYSQL, WANT_MYSQL and WITH_MYSQL_VER or something. but I really cant get anything to work. I hope I am just overworked and the is a simple solution to it all. Thanks in advance. PS. Sorry if this email is really pourly formatted, but Yahoos webinterface doesnt give me much of an idea to how this mail will look in a decent MUA. Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og virusscan