#34921 [Opn->Fbk]: Compilation Error: #include "pcrelib/pcre.h" missing from ext/pcre/php_pcre.c
| From: | tony2001@php.net | Date: | Thu, 20 Oct 2005 17:33:54 +0000 |
| Subject: | #34921 [Opn->Fbk]: Compilation Error: #include "pcrelib/pcre.h" missing from ext/pcre/php_pcre.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86825@lists.php.net to get a copy of this message | ||
ID: 34921
Updated by: tony2001@php.net
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:
Are you sure your pcre.h contains those defines ?
Previous Comments:
------------------------------------------------------------------------
[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] tony2001@php.net
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
[root@dg4-clone php-4.4.0]#
------------------------------------------------------------------------
[2005-10-20 00:07:57] davidgregorymail at yahoo dot com
/bin/sh /root/php-4.4.0/libtool --silent --preserve-dup-deps
--mode=compile 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/kerberos/include
-I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap
-I/root/php-4.4.0/ext/mbstring/mbregex
-I/root/php-4.4.0/ext/mbstring/libmbfl
-I/root/php-4.4.0/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql
-I/usr/include/ncurses -I/usr/include/pcre -I/usr/include/pspell
-I/root/php-4.4.0/TSRM -I/root/php-4.4.0/Zend -g -O2
-prefer-non-pic -c /root/php-4.4.0/ext/pcre/php_pcre.c -o
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
[root@dg4-clone php-4.4.0]#
------------------------------------------------------------------------
[2005-10-20 00:07:04] tony2001@php.net
Now remove all this stuff except for the one option:
'--with-pcre-regex=/usr'
And try again.
Also, tell me where exactly your pcre.h is and what error do you get.
------------------------------------------------------------------------
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