From:             zshadow at gmail dot com
Operating system: Linux / CentOS 5.3
PHP version:      5.3.0
PHP Bug Type:     *Compile Issues
Bug description:  MYSQL_LIBS and MYSQL_INCLUDE path being read incorrectly?

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 bug report at http://bugs.php.net/?id=49771&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49771&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49771&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49771&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49771&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49771&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49771&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49771&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49771&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49771&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49771&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49771&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49771&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49771&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49771&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49771&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49771&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49771&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49771&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49771&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49771&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49771&r=mysqlcfg

Reply via email to