php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48281 ext/mbstring/mbstring.c fails to compile
Submitted: 2009-05-14 14:55 UTC Modified: 2009-05-14 19:57 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: robert at octarineparrot dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.3.0RC2 OS: Ubuntu 8.04
Private report: No CVE-ID: None
 [2009-05-14 14:55 UTC] robert at octarineparrot dot com
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-14 15:20 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-14 19:57 UTC] robert at octarineparrot dot com
This seems to be fixed in the latest CVS snapshot.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 12:01:31 2025 UTC