You are here: PHP 5.1.3 vs. MySQL 5.0.21 compile failure « All PHP « IT news, forums, messages
PHP 5.1.3 vs. MySQL 5.0.21 compile failure

Posted by Bill Bevis on 05/04/06 23:17

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация