Bug #69883 [Csd]: Compilation failed on PCRE

From: Date: Fri, 19 Jun 2015 14:39:08 +0000
Subject: Bug #69883 [Csd]: Compilation failed on PCRE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193698@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69883&edit=1 ID: 69883 User updated by: jbenoit dot jb at gmail dot com Reported by: jbenoit dot jb at gmail dot com Summary: Compilation failed on PCRE Status: Closed Type: Bug Package: PCRE related Operating System: OS X 10.10 PHP Version: 7.0Git-2015-06-19 (Git) Assigned To: laruence Block user comment: N Private report: N New Comment: It works now. Thanks for being so fast. Previous Comments: ------------------------------------------------------------------------ [2015-06-19 13:46:27] laruence@php.net it was fixed. ------------------------------------------------------------------------ [2015-06-19 13:23:21] cmb@php.net The OP reported a *compilation* failure, that appears to be caused by ALLOCA_FLAG[1] being defined as empty on his machine. Then use_heap is undeclared[2]. laruence, please have a look again. :) [1] <http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_portability.h#326> [2] <http://lxr.php.net/xref/PHP_TRUNK/ext/pcre/php_pcre.c#616> <http://lxr.php.net/xref/PHP_TRUNK/ext/pcre/php_pcre.c#1061> <http://lxr.php.net/xref/PHP_TRUNK/ext/pcre/php_pcre.c#1688> <http://lxr.php.net/xref/PHP_TRUNK/ext/pcre/php_pcre.c#1986> ------------------------------------------------------------------------ [2015-06-19 12:36:52] laruence@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=05c24d5dfa4719c4f15948ffd74f5266c60a4d67 Log: Fixed Bug #69883 (Compilation failed on PCRE) ------------------------------------------------------------------------ [2015-06-19 12:26:04] jbenoit dot jb at gmail dot com Title more comprehensive, I hope ... ------------------------------------------------------------------------ [2015-06-19 12:25:24] jbenoit dot jb at gmail dot com Description: ------------ The compilation of PHP sources stopped on PCRE. With the following error message : php_pcre.c:1085:78: error: use of undeclared identifier 'use_heap' (see below for the full message) I tried with the PCRE installed by default on my computer and another version (PCRE 8.37) I installed via Homebrew: Same result. I did not find any solutions on Google, so I think this is a bug. I open the file php_pcre.c, at line 1085. I did not find out where "use_heap" variable is declared. But since I am not a C developer, maybe I am wrong. Test script: --------------- git clone git@git.php.net:php-src.git cd php-src ./buildconf ./configure make Expected result: ---------------- A compilation without errors. Actual result: -------------- php-src/ext/pcre/php_pcre.c:1085:78: error: use of undeclared identifier 'use_heap' offsets = (int *)do_alloca_ex(size_offsets * sizeof(int), 32 * sizeof(int), use_heap); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69883&edit=1

« previous php.bugs (#193698) next »