From:             
Operating system: Debian 6
PHP version:      5.3.3
Package:          Compile Failure
Bug Type:         Bug
Bug description:Failure when compiling( with mysql 5.1.50 installed)

Description:
------------
I have installed mysql 5.1.50, php 5.2.14 with php-fpm

I want to install php 5.3.3 with:

'./configure' '--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/php/etc'
'--with-mysql=/usr/local/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iconv-dir'
'--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib'
'--with-libxml-dir=/usr' '--enable-xml' '--enable-safe-mode'
'--enable-bcmath' '--enable-shmop' '--enable-sysvsem'
'--enable-inline-optimization' '--with-curl' '--with-curlwrappers'
'--enable-mbregex''--enable-fpm''--enable-mbstring' '--with-mcrypt'
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl'
'--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc'
'--enable-zip' '--enable-soap' '--with-pear'
'--with-gettext''--enable-exif'  '--with-fpm-user=www' 
'--with-fpm-group=www'



but it said:

/usr/local/mysql/include/mysql/my_global.h:626:25: error: my_compiler.h: No
such file or directory

make: *** [ext/mysqli/mysqli.lo] Error 1



I found someone had the same problem here:

http://www.directadmin.com/forum/showthread.php?p=186047

He said after downgrade mysql to 5.1.49, everything works fine.

Test script:
---------------
cd php-5.3.3

./buildconf --force

'./configure' '--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/php/etc'
'--with-mysql=/usr/local/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iconv-dir'
'--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib'
'--with-libxml-dir=/usr' '--enable-xml' '--enable-safe-mode'
'--enable-bcmath' '--enable-shmop' '--enable-sysvsem'
'--enable-inline-optimization' '--with-curl' '--with-curlwrappers'
'--enable-mbregex''--enable-fpm''--enable-mbstring' '--with-mcrypt'
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl'
'--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc'
'--enable-zip' '--enable-soap' '--with-pear' '--with-gettext'
'--enable-exif'  '--with-fpm-user=www'  '--with-fpm-group=www'

make all install

Expected result:
----------------
Everything works fine.

Actual result:
--------------
/usr/local/mysql/include/mysql/my_global.h:626:25: error: my_compiler.h: No
such file or directory

make: *** [ext/mysqli/mysqli.lo] Error 1

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

Reply via email to