Bug #23080 Compile failure when compiling MySQL/PHP5/OpenSSL
Submitted: 7 Oct 2006 21:52 Modified: 13 Oct 2006 8:10
Reporter: Henrik Schack Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.24/5.0.26 OS:Linux (RHEL4)
Assigned to: CPU Architecture:Any

[7 Oct 2006 21:52] Henrik Schack
Description:
Compiling PHP with MySQL and OpenSSL Support results in the following error:
Description:
------------
Compile fails with the following message:
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-misc.o)(.text+0x54): In
function `CRYPTO_lock':
/home/mysqldev/rpm/BUILD/mysql-5.0.26/extra/yassl/taocrypt/src/misc.cpp:
37: multiple definition of `CRYPTO_lock'
/opt/openssl/lib/libcrypto.a(cryptlib.o)(.text+0x224): first defined
here
/usr/bin/ld: Warning: size of symbol `CRYPTO_lock' changed from 283 in
/opt/openssl/lib/libcrypto.a(cryptlib.o) to 7 in
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-misc.o)
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-misc.o)(.text+0x5c): In
function `CRYPTO_add_lock':
/home/mysqldev/rpm/BUILD/mysql-5.0.26/extra/yassl/taocrypt/src/misc.cpp:
38: multiple definition of `CRYPTO_add_lock'
/opt/openssl/lib/libcrypto.a(cryptlib.o)(.text+0x340): first defined
here
/usr/bin/ld: Warning: size of symbol `CRYPTO_add_lock' changed from 98
in /opt/openssl/lib/libcrypto.a(cryptlib.o) to 7 in
/usr/lib/mysql/libmysqlclient.a(libtaocrypt_la-misc.o)
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

Compiling against MySQL 5.0.24 gives a few more errors

How to repeat:
---------------
Configured withe the folowing statement:
./configure  --with-mysql=/usr --with-mysqli
--with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --with-gd
--with-xml --with-ttf --with-gmp --with-zlib-dir=/usr/lib
--with-jpeg-dir=/usr/lib --with-expat-dir=/usr --with-png-dir=/usr/lib
--with-xmlrpc --enable-exif --enable-ftp --with-mhash --with-mcrypt
--with-gettext --with-mbstring --with-iconv --enable-memory-limit
--with-dom=/usr/lib --enable-soap --with-xsl --with-curl
--with-curlwrappers --enable-dba --with-db4 --with-pdo-mysql
--without-pdo-sqlite --enable-mbstring --with-openssl=/opt/openssl

OpenSSL version is : OpenSSL 0.9.8d
[13 Oct 2006 8:10] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicates bug #19810
[14 Oct 2006 18:18] Jørgen Thomsen
Would someone at MySQL be serious about fixing this serious error ??