|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Chris Horry (zerbey
wibble.co.uk)
Date: Thu Jun 21 2007 - 13:39:02 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexandre Balistrieri wrote:
> On Thursday 21 June 2007, Chris Horry wrote:
>> Looking for advice, Googling around didn't find any discussions but I'm
>> sure we've gone over this before. Please gently kick me in the right
>> direction if we have.
>>
>> What is the procedure for compiling Postfix against MySQL 5? I know
>> it's not fully supported but has anyone gotten it to work? I've been
>> running Postfix for over a year compiled against MySQL 4 and it runs
>> perfect with 5 but would like to get to the latest version without
>> having to downgrade MySQL :-)
>>
>> Thanks,
>>
>> Chris
>
> See http://www.postfix.org/MYSQL_README.html
>
Here's what I get every time:
[src/error]
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_MYSQL
- -DUSE_CYRUS_SASL -I/usr/local/include/sasl -I/usr/local/mysql/include
- -I/usr/local/ssl/include -DNO_EPOLL -DHAS_PCRE -I/usr/local/include
- -DSNAPSHOT -g -O -I. -I../../include -DLINUX2 -c error.c
gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DUSE_SASL_AUTH -DHAS_MYSQL
- -DUSE_CYRUS_SASL -I/usr/local/include/sasl -I/usr/local/mysql/include
- -I/usr/local/ssl/include -DNO_EPOLL -DHAS_PCRE -I/usr/local/include
- -DSNAPSHOT -g -O -I. -I../../include -DLINUX2 -o error error.o
../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
- -L/usr/local/lib -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lsasl2
- -L/usr/local/ssl/lib -lssl -lcrypto -L/usr/local/lib -lpcre -ldb -lnsl
- -lresolv
/usr/local/mysql/lib/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x8):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x10):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x14):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(ssl.o)(.gnu.linkonce.d.__vt_Q25yaSSL7Message+0x18):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(cert_wrapper.o)(.text+0x76): In
function `yaSSL::x509::~x509(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(cert_wrapper.o)(.text+0x2e6): In
function `yaSSL::CertManager::~CertManager(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL11SSL_SESSION+0x42):
In function `mySTL::list<yaSSL::SSL_SESSION *>::~list(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL12input_buffer+0x42):
In function `mySTL::list<yaSSL::input_buffer *>::~list(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL13output_buffer+0x42):
In function `mySTL::list<yaSSL::output_buffer *>::~list(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPUc+0x42):
more undefined references to `__builtin_delete' follow
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x8):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x10):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.d.__vt_Q25yaSSL13HandShakeBase+0x14):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(yassl_imp.o)(.text+0x299d): In
function `yaSSL::ServerDHParams::~ServerDHParams(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(yassl_imp.o)(.text+0x4a16): In
function `yaSSL::Connection::~Connection(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(yassl_int.o)(.text+0x3398): In
function `yaSSL::SSL_SESSION::~SSL_SESSION(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(yassl_int.o)(.text+0x3532): In
function `yaSSL::Sessions::~Sessions(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(yassl_int.o)(.text+0x389a): In
function `yaSSL::SSL_CTX::~SSL_CTX(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(yassl_int.o)(.text+0x3d43): more
undefined references to `__builtin_delete' follow
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x10):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x14):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x18):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt4HASH+0x1c):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt11BER_Decoder+0xc):
more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-asn.o)(.gnu.linkonce.t._._Q28TaoCrypt13DSA_PublicKey+0xaa):
In function `TaoCrypt::DSA_PublicKey::~DSA_PublicKey(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-random.o)(.text+0x171):
In function `TaoCrypt::OS_Seed::~OS_Seed(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x14):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x18):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x1c):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-has: undefined
reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.text+0x200d):
In function `yaSSL::Integer::~Integer(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.text+0x2395):
In function `yaSSL::DiffieHellman::~DiffieHellman(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL3DES7DESImpl+0x51):
In function `yaSSL::DES::DESImpl::~DESImpl(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL7DES_EDE11DES_EDEImpl+0x3a):
In function `yaSSL::DES_EDE::DES_EDEImpl::~DES_EDEImpl(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q35yaSSL3AES7AESImpl+0x3a):
more undefined references to `__builtin_delete' follow
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt9Mode_BASE+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0x8):
undefinh.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x20):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x24):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-hash.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt17HASHwithTransform+0x28):
more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.text+0x1611):
In function `yaSSL::RandomPool::~RandomPool(void)':
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL4Auth+0x10):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0x8):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0xc):
more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o)(.gnu.linkonce.t._._Q28TaoCrypt14RSA_PrivateKey+0x12e):
In function `TaoCrypt::RSA_PrivateKey::~RSA_PrivateKey(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(log.o)(.text+0x30): In function
`yaSSL::Log::~Log(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0xc):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x10):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x14):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x18):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x3c):
undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o)(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x40):
more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x88):
In function `TaoCrypt::FileSource::~FileSource(void)':
: undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x28c):
In function `TaoCrypt::FileSink::~FileSink(void)':
: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1
Here is my linker flags:
make -f Makefile.init makefiles 'CCARGS=-DUSE_TLS -DUSE_SASL_AUTH
- -DHAS_MYSQL -DUSE_CYRUS_SASL \
- -I/usr/local/include/sasl \
- -I/usr/local/mysql/include \
- -I/usr/local/ssl/include' 'AUXLIBS=-L/usr/local/lib
- -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lsasl2 \
- -L/usr/local/ssl/lib -lssl -lcrypto'
I know I'm missing something quite obvious but for the life of me can't
figure out what.
This is for Postfix 2.5-20070614
Thanks!
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGesXGnAAeGCtMZU4RAr4sAKCrQMm7Rk3V/JXyrE40k9ueLav36QCfWRqz
iEQtQQCVKGLyZRcV8YAB5bM=
=Z+0+
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]