#49771 [Com]: MYSQL_LIBS and MYSQL_INCLUDE path being read incorrectly?
| From: | zshadow at gmail dot com | Date: | Mon, 05 Oct 2009 03:10:12 +0000 |
| Subject: | #49771 [Com]: MYSQL_LIBS and MYSQL_INCLUDE path being read incorrectly? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143260@lists.php.net to get a copy of this message | ||
ID: 49771
Comment by: zshadow at gmail dot com
Reported By: zshadow at gmail dot com
Status: Open
Bug Type: *Compile Issues
Operating System: Linux / CentOS 5.3
PHP Version: 5.3.0
New Comment:
I have fixed it by manually editing the includes portion of the
Makefile. Although MYSQL_LIBS and MYSQL_INCLUDE still report the default
paths, Client API and Header is being listed as 5.1.39.
This is fine as I'm only using this installation as a testbed, but
still wondering there's a way to get it working without any manual
Makefile editing.
Previous Comments:
------------------------------------------------------------------------
[2009-10-04 22:28:41] zshadow at gmail dot com
Description:
------------
I have two copies of MySQL installed, one is in a non standard
directory. When linking PHP against the non standard one, it sets the
MYSQL_LIBS and MYSQL_INCLUDE paths to their default values and not the
one specified in configure. I receive no errors when building, but when
running scripts on PHP I'll get errors messages that say "eaders and
client library minor version mismatch. Headers:50085 Library:50139
"
Reproduce code:
---------------
./configure --prefix=/serverdojo/php
--with-config-file-scan-dir=/test/php/php.d
--with-mysqli=/serverdojo/mysqld/bin/mysql_config --with-libdir=lib64
--enable-fastcgi --with-mysql-sock=/test/mysqld/mysql2.sock
--with-mysql=/test/mysqld/include/mysql --without-pear
--with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
--enable-gd-native-ttf --with-imap-ssl --with-gd=shared --enable-fpm
--with-mcrypt --with-zlib --enable-mbstring --disable-pdo
--disable-pgsql --with-curl --disable-debug --enable-pic --disable-rpath
--enable-inline-optimization --with-bz2 --with-zlib --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex
--with-mhash --enable-xslt --enable-zip --with-pcre-regex
Expected result:
----------------
MYSQL_LIBS should to be set to /test/mysqld/lib
MYSQL_INCLUDE should to be set to /test/mysqld/include/mysql
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49771&edit=1