php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29888 Compile Failure due to mbstring error: redefinition of `struct re_registers'
Submitted: 2004-08-30 06:33 UTC Modified: 2004-08-31 08:20 UTC
From: alietss at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.1 OS: Fedora Core 2
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: alietss at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-08-30 06:33 UTC] alietss at yahoo dot com
Description:
------------
Hi php team, I'm trying to build rpms of php 5.0.1 on a Fedora Core 2 system, with httpd-2.0.50, but the compile process is failing to a error related to mbstring here my configure line and the error...

%configure \
	--cache-file=../config.cache \
	--with-config-file-path=%{_sysconfdir} \
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
	--enable-force-cgi-redirect \
	--disable-debug \
	--enable-pic \
	--disable-rpath \
	--enable-inline-optimization \
	--with-bz2 \
	--with-db4=%{_prefix} \
	--with-curl \
	--with-exec-dir=%{_bindir} \
	--with-freetype-dir=%{_prefix} \
	--with-png-dir=%{_prefix} \
	--with-gd \
	--enable-gd-native-ttf \
	--without-gdbm \
	--with-gettext \
	--with-ncurses \
	--with-gmp \
	--with-iconv \
	--with-jpeg-dir=%{_prefix} \
	--with-openssl \
	--with-png \
	--with-pspell \
	--with-regex=system \
	--with-xml \
	--with-expat-dir=%{_prefix} \
	--with-dom=shared,%{_prefix} \
        --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
        --with-xmlrpc=shared \
        --with-pcre-regex=%{_prefix} \
	--with-zlib \
	--with-layout=GNU \
	--enable-bcmath \
	--enable-exif \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--enable-track-vars \
	--enable-trans-sid \
	--enable-yp \
	--enable-wddx \
	--with-pear=/usr/share/pear \
	--with-imap=shared --with-imap-ssl \
	--with-kerberos \
	--with-ldap=shared \
	--with-mysql=shared,%{_prefix} \
        %{?_with_oci8:--with-oci8=shared} \
        %{?_with_mssql:--with-mssql=shared} \
        %{?_with_mhash:--with-mhash=shared} \
	--with-pgsql=shared \
	--with-snmp=shared,%{_prefix} \
	--with-snmp=shared \
	--enable-ucd-snmp-hack \
	--with-unixODBC=shared,%{_prefix} \
	--enable-memory-limit \
	--enable-bcmath \
	--enable-shmop \
	--enable-calendar \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
        --enable-mbstring=shared --enable-mbstr-enc-trans \
        --enable-mbregex \
	$*

make %{?_smp_mflags}
}

the error...

In file included from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/php_mbregex.h:28,
                 from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/mbstring.h:77,
                 from /usr/src/redhat/BUILD/php-5.0.1/ext/standard/html.c:52:
/usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573: error: redefinition of `struct re_registers'
make: *** [ext/standard/html.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.73791 (%build)
 
 
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.73791 (%build)


Expected result:
----------------
php builds


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-30 08:18 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip
 [2004-08-31 02:00 UTC] alietss at yahoo dot com
Tested with http://snaps.php.net/php5-STABLE-latest.tar.gz
, but the error is still there, I changed --with-regex=system \, with --with-regex, and it worked...
Regards
 [2004-08-31 08:20 UTC] derick@php.net
Do never use that option if you don't know what you're doing. (see the disclaimer when you do ./configure --help).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 11:01:27 2024 UTC