From: devel at globecite dot com
Operating system: Red Hat Enterprise Linux ES rele
PHP version: 5.0.0
PHP Bug Type: Compile Failure
Bug description: cannot make --with-mbstring
Description:
------------
gcc -Iext/exif/ -I/usr/src/redhat/BUILD/php-5.0.0/ext/exif/
-DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.0.0/include
-I/usr/src/redhat/BUILD/php-5.0.0/main -I/usr/src/redhat/BUILD/php-5.0.0
-I/usr/src/redhat/BUILD/php-5.0.0/Zend -I/usr/include/libxml2
-I/usr/kerberos/include -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/oniguruma
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/libmbfl
-I/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/ncurses -I/usr/include/pspell
-I/usr/src/redhat/BUILD/php-5.0.0/TSRM -g -O2 -c
/usr/src/redhat/BUILD/php-5.0.0/ext/exif/exif.c -o ext/exif/exif.o &&
echo > ext/exif/exif.lo
In file included from
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/php_mbregex.h:28,
from
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/mbstring.h:77,
from /usr/src/redhat/BUILD/php-5.0.0/ext/exif/exif.c:76:
/usr/src/redhat/BUILD/php-5.0.0/ext/mbstring/oniguruma/oniguruma.h:574:
redefinition of `struct re_registers'
make: *** [ext/exif/exif.lo] Error 1
Reproduce code:
---------------
./configure \
--host=i686-redhat-linux \
--build=i686-redhat-linux \
--target=i386-redhat-linux-gnu \
--program-prefix= \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--cache-file=../config.cache \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db4=/usr \
--with-curl \
--with-exec-dir=/usr/bin \
--with-freetype-dir=/usr \
--with-png-dir=/usr \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=/usr \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=/usr \
--with-pcre-regex=/usr \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-mbregex \
--without-oci8 \
--with-pear=/usr/share/pear \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=shared,/usr \
--with-pgsql=shared \
--with-unixODBC=shared \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--enable-force-cgi-redirect \
--enable-xslt=shared \
--with-xslt-sablot=shared,/usr \
--with-sablot-js=shared,/usr \
--with-dom=shared,/usr \
--with-dom-xslt=shared,/usr \
--with-dom-exslt=shared,/usr \
--with-xmlrpc=shared \
--with-mcrypt=shared \
--with-mhash=shared \
--with-snmp=shared \
--enable-cgi
Expected result:
----------------
a good build!
(it compiles fine if --with-mbstring is removed)
--
Edit bug report at http://bugs.php.net/?id=29589&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29589&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29589&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29589&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29589&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29589&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29589&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29589&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29589&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29589&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29589&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29589&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29589&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29589&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29589&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29589&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29589&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29589&r=float