From:             rs at bytecamp dot net
Operating system: FreeBSD 8.1-RELEASE-p12
PHP version:      5.4.4
Package:          Compile Failure
Bug Type:         Bug
Bug description:mbstring and mbregex won't compile

Description:
------------
When enabling mbstring and mbregex, make will bail out with the following
log:

/bin/sh /tmp/php-5.4/php-5.4.4/libtool --silent --preserve-dup-deps
--mode=compile cc  -Iext/mbstring/ -I/tmp/php-5.4/php-5.4.4/ext/mbstring/
-DPHP_ATOM_INC -I/tmp/php-5.4/php-5.4.4/include
-I/tmp/php-5.4/php-5.4.4/main -I/tmp/php-5.4/php-5.4.4
-I/tmp/php-5.4/php-5.4.4/ext/date/lib
-I/tmp/php-5.4/php-5.4.4/ext/ereg/regex -I/usr/local/include/libxml2
-I/usr/local/include -I/tmp/php-5.4/php-5.4.4/ext/mbstring/oniguruma
-I/tmp/php-5.4/php-5.4.4/ext/mbstring/libmbfl
-I/tmp/php-5.4/php-5.4.4/ext/mbstring/libmbfl/mbfl
-I/tmp/php-5.4/php-5.4.4/ext/sqlite3/libsqlite
-I/tmp/php-5.4/php-5.4.4/TSRM -I/tmp/php-5.4/php-5.4.4/Zend   
-I/usr/local/include -g -O2 -fvisibility=hidden  -c
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c -o ext/mbstring/mbstring.lo
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c: In function
'_php_mb_compile_regex':
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:987: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:987: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:988: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:988: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:990: warning: passing
argument 2 of 'onig_new' makes pointer from integer without a cast
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:990: warning: passing
argument 3 of 'onig_new' makes pointer from integer without a cast
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:991: error: 'OnigUChar'
undeclared (first use in this function)
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:991: error: (Each undeclared
identifier is reported only once
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:991: error: for each
function it appears in.)
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:991: error: expected ';'
before 'err_str'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:992: error: 'err_str'
undeclared (first use in this function)
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c: In function
'_php_mb_match_regex':
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1003: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1003: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1004: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1004: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1004: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1004: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: error: expected ')'
before 'OnigUChar'
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: warning: cast from
pointer to integer of different size
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: warning: passing
argument 2 of 'onig_search' makes pointer from integer without a cast
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: warning: passing
argument 3 of 'onig_search' makes pointer from integer without a cast
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: warning: passing
argument 4 of 'onig_search' makes pointer from integer without a cast
/tmp/php-5.4/php-5.4.4/ext/mbstring/mbstring.c:1005: warning: passing
argument 5 of 'onig_search' makes pointer from integer without a cast
*** Error code 1


Test script:
---------------
./configure --prefix=/usr/local/php-4.4-fail --enable-mbstring
--enable-mbregex
make



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

Reply via email to