From owner-freebsd-questions@FreeBSD.ORG Sat Feb 28 10:49:19 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 0259D16A4CE for ; Sat, 28 Feb 2004 10:49:19 -0800 (PST) Received: from amber.aeternal.net (amber.in.markiza.sk [62.168.76.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F1C043D2F for ; Sat, 28 Feb 2004 10:49:17 -0800 (PST) (envelope-from corwin@aeternal.net) Received: from localhost.invalid (amber.aeternal.net [192.168.0.11]) by amber.aeternal.net (Postfix) with ESMTP id B410359C9E; Sat, 28 Feb 2004 19:51:00 +0100 (CET) From: Martin Hudec To: freebsd-questions@freebsd.org, nemo@rudiment.dk Date: Sat, 28 Feb 2004 19:50:56 +0100 User-Agent: KMail/1.6 References: <20040227134007.90000.qmail@web13607.mail.yahoo.com> In-Reply-To: <20040227134007.90000.qmail@web13607.mail.yahoo.com> X-Copyright: (C) 2004 Martin Hudec X-Operating-System: FreeBSD amber.aeternal.net 4.9-RELEASE MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200402281951.00011.corwin@aeternal.net> cc: Morten Buhl Subject: Re: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 18:49:19 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I would take a look onto SSL stuff, having that viossl.o and various SSL an= d=20 X509 errors in mind.. But that is maybe a loong shot.. I am going to install 5.2.1-RELEASE today,= =20 maybe I will find something out.. right now all I can offer you is hint I=20 wrote above.. cheers, Martin On Fri February 27 2004 14:40, Morten Buhl wrote: > 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=3Dpentiumpro -I. -I../../include > -DFREEBSD5 -c error.c > cc -DHAS_MYSQL -I/usr/local/include/mysql -DNO_PCRE > -O -pipe -mcpu=3Dpentiumpro -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 > =3D=3D=3D> postfix-2.0.18,1 depends on file: \ > /usr/local/lib/mysql/libmysqlclient.a - found > > but when I do a make clean I get: > =3D=3D=3D> 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. =2D --=20 : :. kind regards :.. Martin Hudec :.: :.: =3Dw=3D http://www.aeternal.net :.: =3Dm=3D +421.907.303393 :.: =3D@=3D corwin@aeternal.net :.: :.: "When you want something, all the universe=20 :.: conspires in helping you to achieve it." :.: - The Alchemist (Paulo Coelho) =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAQOMTZYEZIv+rgggRAoyTAJ0SxSl3ySQgJyWWvtxCgluV8riKmACff84B z9xZwUIh8suRdDjgfDyHN/s=3D =3DsGHF =2D----END PGP SIGNATURE-----