php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29589 cannot make --with-mbstring
Submitted: 2004-08-09 18:19 UTC Modified: 2004-08-17 08:04 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: devel at globecite dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.0 OS: Red Hat Enterprise Linux ES rele
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: devel at globecite dot com
New email:
PHP Version: OS:

 

 [2004-08-09 18:19 UTC] devel at globecite dot com
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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-10 11:23 UTC] moriyoshi@php.net
Derick, keep my last name in your memory... :-)
 [2004-08-16 19:23 UTC] iain at monitormedia dot co dot uk
I think this is caused by using "regex=system" rather than the default. I don't think the Oniguruma regex is compatible with regex=system.

If you just remove the --with-regex (and --with-pcre-regex=/usr) config directives, it may well build.

Built for me, and although my config differs slightly from yours in other ways, it is based on the RedHat Enterprise 3 source RPM (4.3.2-11.1) plus mcrypt + mhash as modules.

Now I just need to get the SOAP stuff building...
 [2004-08-17 08:04 UTC] derick@php.net
Never use regex=system if you don't know what you're doing. (That information bit is also in configure --help).

Not a bug -> bogus.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 09:00:02 2026 UTC