#48281 [NEW]: ext/mbstring/mbstring.c fails to compile
| From: | robert at octarineparrot dot com | Date: | Thu, 14 May 2009 14:55:03 +0000 |
| Subject: | #48281 [NEW]: ext/mbstring/mbstring.c fails to compile | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-137312@lists.php.net to get a copy of this message | ||
From: robert at octarineparrot dot com
Operating system: Ubuntu 8.04
PHP version: 5.3.0RC2
PHP Bug Type: Compile Failure
Bug description: ext/mbstring/mbstring.c fails to compile
Description:
------------
When compiling PHP 5.3.0 RC2 on Ubuntu 8.04, compilation fails with the
following errors.
Reproduce code:
---------------
My compile line:
./configure --enable-fastcgi --enable-force-cgi-redirect --with-zlib
--enable-bcmath --with-bz2 --with-curl --with-gd --enable-gd-native-ttf
--with-gettext --enable-mbstring --with-mcrypt
--with-mysqli=/usr/local/mysql/latest/bin/mysql_config --with-mhash
--enable-pdo --with-pdo-mysql=/usr/local/mysql/latest/ --enable-zip
--enable-zend-multibyte --with-freetype-dir=/usr/lib/
--with-mysql=/usr/local/mysql/latest/ --enable-wddx --with-xmlrpc
--with-ldap --with-openssl
% libtool --version
ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493
2008/02/01 16:58:18)
% gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Actual result:
--------------
/bin/sh /home/robert/apps/php-5.3.0RC2/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/mysqli/
-I/home/robert/apps/php-5.3.0RC2/ext/mysqli/ -DPHP_ATOM_INC
-I/home/robert/apps/php-5.3.0RC2/include
-I/home/robert/apps/php-5.3.0RC2/main -I/home/robert/apps/php-5.3.0RC2
-I/home/robert/apps/php-5.3.0RC2/ext/ereg/regex -I/usr/include/libxml2
-I/home/robert/apps/php-5.3.0RC2/ext/date/lib -I/usr/include/freetype2
-I/home/robert/apps/php-5.3.0RC2/ext/mbstring/oniguruma
-I/home/robert/apps/php-5.3.0RC2/ext/mbstring/libmbfl
-I/home/robert/apps/php-5.3.0RC2/ext/mbstring/libmbfl/mbfl
-I/usr/local/mysql/latest//include/mysql
-I/usr/local/mysql/latest/include/mysql
-I/home/robert/apps/php-5.3.0RC2/ext/sqlite3/libsqlite
-I/home/robert/apps/php-5.3.0RC2/TSRM -I/home/robert/apps/php-5.3.0RC2/Zend
-I/usr/include -g -O2 -fvisibility=hidden -c
/home/robert/apps/php-5.3.0RC2/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4726: error: static
declaration of 'php_mb_set_zend_encoding' follows non-static declaration
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:1451: error:
previous implicit declaration of 'php_mb_set_zend_encoding' was here
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c: In function
'php_mb_set_zend_encoding':
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4757: error:
'php_mb_encoding_detector' undeclared (first use in this function)
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4757: error: (Each
undeclared identifier is reported only once
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4757: error: for
each function it appears in.)
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4758: error:
'php_mb_encoding_converter' undeclared (first use in this function)
/home/robert/apps/php-5.3.0RC2/ext/mbstring/mbstring.c:4759: error:
'php_mb_oddlen' undeclared (first use in this function)
--
Edit bug report at http://bugs.php.net/?id=48281&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48281&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48281&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48281&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48281&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48281&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48281&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48281&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48281&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48281&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48281&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48281&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48281&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48281&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48281&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48281&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48281&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48281&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48281&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48281&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48281&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48281&r=mysqlcfg