PHP 5.1.3 vs. MySQL 5.0.21 compile failure

PHP 5.1.3 vs. MySQL 5.0.21 compile failure

am 04.05.2006 20:28:01 von Bill Bevis

I'm trying to set up PHP 5.1.3 to run under Apache2, and talk to a
MySQL 5.0.21 database, and have been banging my head against a tough
install for days. I'm getting a slough of errors like this:

/usr/local/ssl/lib/libssl.a(ssl_sess.o)(.text+0xe60): In function
`SSL_SESSION_set_timeout':
: multiple definition of `SSL_SESSION_set_timeout'
/home/software/mysql-standard-5.0.21-linux-i686/lib/libmysql client.a(ssl.o)(.text+0x6d8):
first defined here
/usr/bin/ld: Warning: size of symbol `SSL_SESSION_set_timeout' changed
from 46 in
/home/software/mysql-standard-5.0.21-linux-i686/lib/libmysql client.a(ssl.o)
to 26 in /usr/local/ssl/lib/libssl.a(ssl_sess.o)

I get maybe 30 of these "multiple definition" errors, all of which seem
to be conflicts between libmysqlclient.a, and some library in my
OpenSSL install. (I'm using OpenSSL 0.9.6m) This doesn't look like a
conflict between mysql and mysqli, as a lot of other people appear to
be having.


For PHP, I'm configuring as:
../configure \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--prefix=/usr \
--with-config-file-path=/etc \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-mysql=/home/software/mysql-standard-5.0.21-linux-i686 \
--with-mysqli=/home/software/mysql-standard-5.0.21-linux-i68 6/bin/mysql_config
\
--with-exec-dir=/usr/bin \
--with-openssl \
--with-ttf \
--with-gettext \
--with-ncurses \
--with-iconv \
--with-regex=system \
--with-xml \
--with-expat-dir=/usr \
--enable-shared \
--enable-bcmath \
--enable-debugger \
--enable-exif \
--enable-ftp \
--with-pear=/usr/share/pear \
--enable-magic-quotes \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx \
--without-oci8 \
--enable-memory-limit \
--enable-shmop \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mbstring \
--enable-mbstr-enc-trans \
--with-apxs2=/usr/sbin/apache2/bin/apxs \
--with-curl \
--with-imap=/home/software/imap-2004g \
--with-imap-ssl=/usr/local/ssl

My configure works out fine. I edit my Makefile to remove duplicates
from EXTRA_LIBS, and run make, eventually getting errors like the
above.

Any thoughts?
PHP 5.1.3, MySQL 5.0.21 (from a tarred binary off of the MySQL site),
Apache 2.2.2, OpenSSL 0.9.6m, all on RedHat Enterprise 3.