Problem: postfix 2.0.18 and mysql 4.0.18 on 5.2.1

Martin Hudec corwin at aeternal.net
Sat Feb 28 10:49:19 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I would take a look onto SSL stuff, having that viossl.o and various SSL and 
X509 errors in mind..

But that is maybe a loong shot.. I am going to install 5.2.1-RELEASE today, 
maybe I will find something out.. right now all I can offer you is hint I 
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.
>
> <snip>
> [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
> </snip>
>
> 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.

- -- 
:
:. kind regards
:..                      Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: =@= corwin at aeternal.net
:.:
:.: "When you want something, all the universe 
:.:   conspires in helping you to achieve it."
:.:                   - The Alchemist (Paulo Coelho)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAQOMTZYEZIv+rgggRAoyTAJ0SxSl3ySQgJyWWvtxCgluV8riKmACff84B
z9xZwUIh8suRdDjgfDyHN/s=
=sGHF
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list