#40741 [NEW]: when --with-mysql used, it also takes the lib/includes from /usr/local/mysql ..
| From: | d dot huijbers at apollo-ict dot nl | Date: | Tue, 06 Mar 2007 18:53:59 +0000 |
| Subject: | #40741 [NEW]: when --with-mysql used, it also takes the lib/includes from /usr/local/mysql .. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-110009@lists.php.net to get a copy of this message | ||
From: d dot huijbers at apollo-ict dot nl
Operating system: FreeBSD
PHP version: 5.2.1
PHP Bug Type: *Compile Issues
Bug description: when --with-mysql used, it also takes the lib/includes from /usr/local/mysql ..
Description:
------------
I've been trying to compile php-5.2.1 with mysql 5.1.x on my system which
also has mysql3.x.x installed in /usr/local/mysql. I installed mysql-5.1.x
into /usr/local/mysql5. Now, when I use --with-mysql=/usr/local/mysql5/ it
still compiles to the libs in /usr/local/mysql/lib/....
I fixed this for my compilation by renaming the /usr/local/mysql into
/usr/local/mysql3 for the compilation time.
Reproduce code:
---------------
./configure \
--disable-all \
--enable-safe-mode \
--with-apxs2=/usr/local/apache2/bin/apxs \
--prefix=/usr/local/apache2/php5 \
--with-config-file-path=/usr/local/apache2/php5 \
--enable-track-vars \
--enable-ftp \
--enable-pcre-regex=yes \
--with-pdf-lib \
--with-session \
--enable-session \
--with-zlib-dir=/usr/include \
--with-freetype-dir=/usr/local/include/freetype2 \
--with-bz2 \
--with-xml \
--with-libxml-dir=/usr/local/include/libxml2 \
--with-curl=/usr/local/include/curl/ \
--enable-curlwrappers \
--enable-versioning \
--enable-xml \
--with-gd \
--with-ttf \
--with-xml-rpc \
--enable-libxml \
--with-dom \
--with-mcrypt \
--with-gettext \
--enable-exif \
--enable-bcmath \
--enable-calendar \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-kerberos \
--enable-mbstring \
--with-libmbfl \
--with-mcve \
--with-mhash \
--with-mime-magic \
--with-ncurses \
--enable-shmop \
--enable-dom \
--enable-libxml \
--enable-soap \
--enable-sockets \
--without-sqlite \
--enable-sysvmsg \
--enable-sysvmem \
--enable-sysvshm \
--with-iconv-dir \
--with-xsl \
--with-mysql=/usr/local/mysql5
Expected result:
----------------
Just a correct compilation of php-5.2.1 which is linked against
/usr/local/mysql5 (a mysql 5.1.x installation)
Actual result:
--------------
PHP compiled against my older mysql3 installation that is found in
/usr/local/mysql/
--
Edit bug report at http://bugs.php.net/?id=40741&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40741&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40741&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40741&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40741&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40741&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40741&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40741&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40741&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40741&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40741&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40741&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40741&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40741&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40741&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40741&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40741&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40741&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40741&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40741&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40741&r=mysqlcfg