ID:               29989
 Comment by:       cameron at teragen dot com dot au
 Reported By:      jesse at eonstreet dot com
 Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: Linx Red Hat Enterprise 3 AS
 PHP Version:      5.0.1
 Assigned To:      moriyoshi
 New Comment:

I believe this is Red Hat specific, I had one of our programmers help
me track this down and found that 'struct re_registers' can also be
found in /usr/include/regex.h (checked on Red Hat 7.3, 9 and Fedora
Core 1 & 2). Under Fedora Core 2 if the following is commented out of
/usr/include/regex.h, I can successfully build PHP 5.0.1 rpms.

/* This is the structure we store register match data in.  See
   regex.texinfo for a full description of what registers match.  */
struct re_registers
{
  unsigned num_regs;
  regoff_t *start;
  regoff_t *end;
};


Previous Comments:
------------------------------------------------------------------------

[2004-09-06 08:24:05] [EMAIL PROTECTED]

Moriyoshi, any clue about this one? It works fine for me.

------------------------------------------------------------------------

[2004-09-05 20:35:14] jesse at eonstreet dot com

Description:
------------
Hello,
    This bug has been reported on other os and other PHP 5  versions
but I feel it is benifical to report it on all versions and os in case
one version is patched and the others aren't

I have configured php with 'enable-mbstring' and it configures fine.
But upon MAKE it fails.  I am not sure how the exif and mbstring
extensions are related but they complied fine whith 4.3.8.

I have downloaded the most recent "snapshot" from sept 5 and copied the
files for exif and mbstring but I receive the same error.

gcc  -Iext/exif/ -I/root/php-5.0.1/ext/exif/ -DPHP_ATOM_INC
-I/root/php-5.0.1/include -I/root/php-5.0.1/main -I/root/php-5.0.1
-I/root/php-5.0.1/Zend -I/usr/include/libxml2 -I/usr/kerberos/include
-I/usr/include/freetype2 -I/usr/include/imap
-I/root/php-5.0.1/ext/mbstring/oniguruma
-I/root/php-5.0.1/ext/mbstring/libmbfl
-I/root/php-5.0.1/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql
-I/usr/include/ncurses -I/usr/include/pspell  -I/root/php-5.0.1/TSRM 
-g -O2  -c /root/php-5.0.1/ext/exif/exif.c -o ext/exif/exif.o  && echo
> ext/exif/exif.lo
In file included from /root/php-5.0.1/ext/mbstring/php_mbregex.h:28,
                 from /root/php-5.0.1/ext/mbstring/mbstring.h:77,
                 from /root/php-5.0.1/ext/exif/exif.c:76:
/root/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573: redefinition of
`struct re_registers'
make: *** [ext/exif/exif.lo] Error 1





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29989&edit=1

Reply via email to