469,945 Members | 2,340 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

PHP 5.1.3 vs. MySQL 5.0.21 compile failure

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/libmysqlclient.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/libmysqlclient.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-i686/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.

May 4 '06 #1
0 1334

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lenz Grimmer | last post: by
reply views Thread by muergano terrible | last post: by
reply views Thread by jwl | last post: by
67 posts views Thread by Bob Powell | last post: by
reply views Thread by George R. Kasica | last post: by
18 posts views Thread by Bruce A. Julseth | last post: by
3 posts views Thread by tulika dutta | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.