ID:               34921
 Updated by:       [EMAIL PROTECTED]
 Reported By:      davidgregorymail at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         PCRE related
 Operating System: Red Hat Enterprise 3 AS Update 6
 PHP Version:      4.4.0
 New Comment:

Take a look at your ./configure line:
'--with-pcre-regex=/usr'

You're using *external* PCRE library (not the one bundled with PHP, but
the one distributed with your distro).
Actually, I'd call it pointless unless you know what you're doing, but
it shouldn't cause any problems.
I was asking you about pcre.h because I'm not sure you have pcre-devel
package installed correctly. I know that PHP's PCRE contains all those
defines, but I would like to know if those defines are in your system's
pcre.h (i.e. /usr/include/pcre/pcre.h) to be sure that it really doesn't
get included. 
Thanks.


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

[2005-10-20 22:46:54] davidgregorymail at yahoo dot com

Here's a search for those variable names: PCRE_INFO_NAMETABLE|
PCRE_INFO_NAMEENTRYSIZE| PCRE_INFO_NAMECOUNT

/root/php-4.4.0

[ php-4.4.0]# find . -print | grep \.h$ | xargs egrep -H
'PCRE_INFO_NAMETABLE|PCRE_INFO_NAMEENTRYSIZE|PCRE_INFO_NAMECOUNT'
./ext/pcre/pcrelib/pcre.h:#define PCRE_INFO_NAMEENTRYSIZE      7
./ext/pcre/pcrelib/pcre.h:#define PCRE_INFO_NAMECOUNT          8
./ext/pcre/pcrelib/pcre.h:#define PCRE_INFO_NAMETABLE          9
[ php-4.4.0]# find . -print | grep pcre | grep \.h$
./ext/pcre/php_pcre.h
./ext/pcre/pcrelib/internal.h
./ext/pcre/pcrelib/pcreposix.h
./ext/pcre/pcrelib/ucp.h
./ext/pcre/pcrelib/pcre.h
./ext/pcre/pcrelib/ucpinternal.h
[php-4.4.0]#

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

[2005-10-20 19:33:53] [EMAIL PROTECTED]

Are you sure your pcre.h contains those defines ?

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

[2005-10-20 16:44:38] davidgregorymail at yahoo dot com

Hi,

It's the standard red hat enterprise 3 update 6 packages.  Here's the
info from the rpm database on packages

pcre-devel-3.9-10.2
pcre-3.9-10.2


 
Name        : pcre                         Relocations: /usr
Version     : 3.9                               Vendor: Red Hat, Inc.
Release     : 10.2                          Build Date: Fri 19 Aug 2005
08:12:36 AM CDT
Install Date: Tue 04 Oct 2005 08:04:37 AM CDT      Build Host:
porky.build.redhat.com
Group       : System Environment/Libraries   Source RPM:
pcre-3.9-10.2.src.rpm
Size        : 78452                            License: GPL
Signature   : DSA/SHA1, Tue 30 Aug 2005 12:25:15 PM CDT, Key ID
219180cddb42a60e
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.pcre.org/
Summary     : Perl-compatible regular expression library.
Description :
Perl-compatible regular expression library. PCRE has its own native
API, but a set of "wrapper" functions that are based on the POSIX API
are also supplied in the library libpcreposix. Note that this just
provides a POSIX calling interface to PCRE; the regular expressions
themselves still follow Perl syntax and semantics. The header file for
the POSIX-style functions is called pcreposix.h.
/lib/libpcre.so.0
/lib/libpcre.so.0.0.1
/usr/bin/pcregrep
/usr/bin/pcretest
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.0
/usr/share/man/man1/pcregrep.1.gz
/usr/share/man/man1/pcretest.1.gz




Name        : pcre-devel                   Relocations: /usr
Version     : 3.9                               Vendor: Red Hat, Inc.
Release     : 10.2                          Build Date: Fri 19 Aug 2005
08:12:36 AM CDT
Install Date: Tue 04 Oct 2005 08:45:48 AM CDT      Build Host:
porky.build.redhat.com
Group       : Development/Libraries         Source RPM:
pcre-3.9-10.2.src.rpm
Size        : 85594                            License: GPL
Signature   : DSA/SHA1, Tue 30 Aug 2005 12:25:15 PM CDT, Key ID
219180cddb42a60e
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.pcre.org/
Summary     : Development files for pcre.
Description :
Development files (Headers, libraries for static linking, etc) for
pcre.
/usr/bin/pcre-config
/usr/include/pcre
/usr/include/pcre/pcre.h
/usr/include/pcre/pcreposix.h
/usr/lib/libpcre.a
/usr/lib/libpcre.so
/usr/lib/libpcreposix.a
/usr/lib/libpcreposix.so
/usr/share/man/man3/pcre.3.gz
/usr/share/man/man3/pcreposix.3.gz

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

[2005-10-20 00:21:37] [EMAIL PROTECTED]

What version of PCRE do you have in your system ?
Are you sure your pcre.h contains those defines ?

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

[2005-10-20 00:12:43] davidgregorymail at yahoo dot com

Ok... Here's the ./configure '--with-pcre-regex=/usr'
...

gcc -DSUPPORT_UTF8 -DSUPPORT_UCP -DLINK_SIZE=2
-DPOSIX_MALLOC_THRESHOLD=10 -DMATCH_LIMIT=10000000 -Iext/pcre/
-I/root/php-4.4.0/ext/pcre/ -DPHP_ATOM_INC -I/root/php-4.4.0/include
-I/root/php-4.4.0/main -I/root/php-4.4.0 -I/usr/include/pcre
-I/root/php-4.4.0/ext/xml/expat -I/root/php-4.4.0/TSRM
-I/root/php-4.4.0/Zend    -g -O2  -c
/root/php-4.4.0/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.o  && echo >
ext/pcre/php_pcre.lo
/root/php-4.4.0/ext/pcre/php_pcre.c: In function `php_pcre_match':
/root/php-4.4.0/ext/pcre/php_pcre.c:452: `PCRE_INFO_NAMECOUNT'
undeclared (first use in this function)
/root/php-4.4.0/ext/pcre/php_pcre.c:452: (Each undeclared identifier is
reported only once
/root/php-4.4.0/ext/pcre/php_pcre.c:452: for each function it appears
in.)
/root/php-4.4.0/ext/pcre/php_pcre.c:460: `PCRE_INFO_NAMETABLE'
undeclared (first use in this function)
/root/php-4.4.0/ext/pcre/php_pcre.c:461: `PCRE_INFO_NAMEENTRYSIZE'
undeclared (first use in this function)
make: *** [ext/pcre/php_pcre.lo] Error 1
[EMAIL PROTECTED] php-4.4.0]#

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34921

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

Reply via email to