From:             
Operating system: Mac OS X 10.6.8
PHP version:      Irrelevant
Package:          Compile Failure
Bug Type:         Bug
Bug description:No error with endless dir()

Description:
------------
PHP 5.3.3 wont compile due to mysqllib bug (newer PHP cant be builded due
to LSAPI 

bug.. ehh).

Test script:
---------------
./configure '--prefix=/usr/local/lsws/lsphp5' '--enable-cli'
'--with-curl=/usr' '--with-gd' '--enable-exif' '--enable-gd-native-ttf'
'--with-ttf' '--without-gettext' '--with-jpeg-dir=/opt/local'
'--with-png-dir=/opt/local' '--with-freetype-dir=/opt/local'
'--with-openssl=/usr' '--with-mcrypt=/opt/local' '--with-mhash'
'--with-mysql-sock=/var/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--with-mysql=/usr/local/mysql'
'--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--with-pear'
'--with-zlib-dir=/usr' '--enable-zip' '--with-iconv=/usr/local'
'--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets'
'--enable-mbstring' '--enable-mbregex' '--with-litespeed' '--enable-shmop'
'--enable-track-vars' '--enable-sysvsem' '--enable-sysvshm'
'--enable-pcntl' '--enable-sigchild' '--with-libxml-dir=/usr'

Actual result:
--------------
/bin/sh /usr/local/lsws/phpbuild/php-5.3.3/libtool --silent
--preserve-dup-deps 

--mode=compile gcc  -Iext/mysqli/ -I/usr/local/lsws/phpbuild/php-

5.3.3/ext/mysqli/ -DPHP_ATOM_INC
-I/usr/local/lsws/phpbuild/php-5.3.3/include -

I/usr/local/lsws/phpbuild/php-5.3.3/main
-I/usr/local/lsws/phpbuild/php-5.3.3 -

I/usr/local/lsws/phpbuild/php-5.3.3/ext/date/lib
-I/usr/local/lsws/phpbuild/php-

5.3.3/ext/ereg/regex -I/usr/include/libxml2 -I/opt/local/include -

I/opt/local/include/freetype2 -I/usr/local/include -

I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/oniguruma -

I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/libmbfl -

I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/libmbfl/mbfl -

I/usr/local/mysql/include -I/usr/local/lsws/phpbuild/php-

5.3.3/ext/sqlite3/libsqlite -I/usr/local/lsws/phpbuild/php-5.3.3/TSRM -

I/usr/local/lsws/phpbuild/php-5.3.3/Zend  -no-cpp-precomp 
-I/usr/local/include 

-g -O2 -fvisibility=hidden  -c /usr/local/lsws/phpbuild/php-

5.3.3/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo 

In file included from /usr/local/mysql/include/my_global.h:76,

                 from /usr/local/lsws/phpbuild/php-

5.3.3/ext/mysqli/php_mysqli_structs.h:57,

                 from
/usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:33:

/usr/local/mysql/include/my_config.h:326:1: warning: "SIZEOF_SIZE_T"
redefined

In file included from
/usr/local/lsws/phpbuild/php-5.3.3/TSRM/tsrm_config.h:1,

                 from /usr/local/lsws/phpbuild/php-

5.3.3/TSRM/tsrm_config_common.h:13,

                 from /usr/local/lsws/phpbuild/php-

5.3.3/TSRM/tsrm_virtual_cwd.h:26,

                 from /usr/local/lsws/phpbuild/php-5.3.3/main/php.h:410,

                 from
/usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:29:

/usr/local/lsws/phpbuild/php-5.3.3/include/../main/php_config.h:151:1:
warning: 

this is the location of the previous definition

In file included from /usr/local/lsws/phpbuild/php-

5.3.3/ext/mysqli/php_mysqli_structs.h:57,

                 from
/usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:33:

/usr/local/mysql/include/my_global.h:909: error: duplicate ‘unsigned’

/usr/local/mysql/include/my_global.h:909: warning: useless type name in
empty 

declaration

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

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

Reply via email to