php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16182 --without-pcre-regex breaks build
Submitted: 2002-03-20 06:34 UTC Modified: 2002-03-21 18:29 UTC
From: sas@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-03-2 OS: All
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: sas@php.net
New email:
PHP Version: OS:

 

 [2002-03-20 06:34 UTC] sas@php.net
This affects the 4.2.0 release branch and HEAD.

Trying to build --without-pcre-regex breaks the build, because there are unconditional references to the pcre extension/library in ext/standard/aggregation.c and main/SAPI.c:

ext/standard/aggregation.o: In function `aggregate_methods':
ext/standard/aggregation.o(.text+0x1ae): undefined reference to `pcre_get_compiled_regex'
ext/standard/aggregation.o(.text+0x2c7): undefined reference to `php_pcre_exec'
ext/standard/aggregation.o: In function `aggregate_properties':
ext/standard/aggregation.o(.text+0x528): undefined reference to `pcre_get_compiled_regex'
ext/standard/aggregation.o(.text+0x60a): undefined reference to `php_pcre_exec'
main/SAPI.o: In function `sapi_add_header_ex':
main/SAPI.o(.text+0xd62): undefined reference to `php_pcre_replace'
main/SAPI.o(.text+0xdbf): undefined reference to `php_pcre_replace'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-20 06:36 UTC] sas@php.net
The gcc output is bogus (forgot to make clean).

It already breaks when building aggregation.c:

/home/sas/src/php4/ext/standard/aggregation.c: In function `aggregate_methods':
/home/sas/src/php4/ext/standard/aggregation.c:89: `pcre' undeclared (first use in this function)
/home/sas/src/php4/ext/standard/aggregation.c:89: (Each undeclared identifier is reported only once
/home/sas/src/php4/ext/standard/aggregation.c:89: for each function it appears in.)
/home/sas/src/php4/ext/standard/aggregation.c:89: `re' undeclared (first use in this function)
/home/sas/src/php4/ext/standard/aggregation.c:90: `pcre_extra' undeclared (first use in this function)
/home/sas/src/php4/ext/standard/aggregation.c:90: `re_extra' undeclared (first use in this function)
/home/sas/src/php4/ext/standard/aggregation.c:91: parse error before `int'

[more messages snipped]
 [2002-03-21 18:29 UTC] mfischer@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 22:01:27 2024 UTC