Bug #75493 [NEW]: Compile falis on PCRE both 7.0 and 7.1 latest
| From: | samashining at gmail dot com | Date: | Tue, 07 Nov 2017 01:31:14 +0000 |
| Subject: | Bug #75493 [NEW]: Compile falis on PCRE both 7.0 and 7.1 latest | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212490@lists.php.net to get a copy of this message | ||
From: samashining at gmail dot com
Operating system: Linux (RHEL 6.9)
PHP version: 7.1.11
Package: Compile Failure
Bug Type: Bug
Bug description:Compile falis on PCRE both 7.0 and 7.1 latest
Description:
------------
php-7.0.25/ext/pcre/php_pcre.c:113: undefined reference to
`pcre_free_study'
I tried to compile with JIT and without JIT, I get errors either way.
The errors are in the file above, in different lines.
ext/pcre/.libs/php_pcre.o: In function `php_free_pcre_cache':
php-7.1.11/ext/pcre/php_pcre.c:113: undefined reference to
`pcre_free_study'
If you turn on JIT then you get the following error when running make:
_SIGNALS -c /php-7.1.11/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo
p/php-7.1.11/ext/pcre/php_pcre.c:68: error: expected â=â, â,â,
â;â, âasmâ or â__attribute__â before â*â token
/php-7.1.11/ext/pcre/php_pcre.c: In function
âpcre_handle_exec_errorâ:
/php-7.1.11/ext/pcre/php_pcre.c:93: error:
âPCRE_ERROR_JIT_STACKLIMITâ undeclared (first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c:93: error: (Each undeclared identifier
is reported only once
/php-7.1.11/ext/pcre/php_pcre.c:93: error: for each function it appears
in.)
/php-7.1.11/ext/pcre/php_pcre.c: In function âphp_free_pcre_cacheâ:
/php-7.1.11/ext/pcre/php_pcre.c:113: warning: implicit declaration of
function âpcre_free_studyâ
/php-7.1.11/ext/pcre/php_pcre.c: In function
âzm_globals_dtor_pcreâ:
/php-7.1.11/ext/pcre/php_pcre.c:138: error: âjit_stackâ undeclared
(first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c:139: warning: implicit declaration of
function âpcre_jit_stack_freeâ
/php-7.1.11/ext/pcre/php_pcre.c: In function âzm_info_pcreâ:
/php-7.1.11/ext/pcre/php_pcre.c:168: error: âPCRE_CONFIG_JITâ
undeclared (first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c: In function âzm_activate_pcreâ:
/php-7.1.11/ext/pcre/php_pcre.c:222: error: âjit_stackâ undeclared
(first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c:223: warning: implicit declaration of
function âpcre_jit_stack_allocâ
/php-7.1.11/ext/pcre/php_pcre.c: In function
âpcre_get_compiled_regex_cacheâ:
/php-7.1.11/ext/pcre/php_pcre.c:511: error: âPCRE_STUDY_JIT_COMPILEâ
undeclared (first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c:524: error: âjit_stackâ undeclared
(first use in this function)
/php-7.1.11/ext/pcre/php_pcre.c:525: warning: implicit declaration of
function âpcre_assign_jit_stackâ
make: *** [ext/pcre/php_pcre.lo] Error 1
Test script:
---------------
Here is the compile command in use:
./configure --build=x86_64-redhat-linux-gnu \
--host=x86_64-redhat-linux-gnu \
--target=x86_64-redhat-linux-gnu \
--prefix=/opt/php/php7 \
--cache-file=../config.cache \
--with-libdir=lib64 \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--enable-debug \
--disable-rpath \
--without-pear \
--with-freetype-dir=/usr \
--with-png-dir=/usr \
--with-xpm-dir=/usr \
--enable-gd-native-ttf \
--without-gdbm \
--with-gettext \
--with-iconv \
--with-jpeg-dir=/usr \
--with-openssl \
--with-pcre-regex=/usr \
--with-zlib \
--with-layout=GNU \
--enable-exif \
--enable-ftp \
--enable-sockets \
--with-libxml-dir=/usr \
--enable-xml \
--enable-pcntl \
--enable-mbstring=shared \
--enable-mbregex \
--enable-bcmath=shared \
--with-xmlrpc=shared \
--with-mysqli=shared,/usr/lib64/mysql/mysql_config \
--enable-dom=shared \
--with-snmp=shared,/usr \
--enable-soap=shared \
--enable-xmlreader=shared \
--enable-xmlwriter=shared \
--with-curl=shared,/usr \
--enable-json=shared \
--without-readline \
--without-libedit \
--with-oci8=$ORACLE_HOME \
--enable-opcache=no
Expected result:
----------------
I expect it to compile with make successfully.
Actual result:
--------------
It fails to compile with make when using either the latest 7.1 or 7.0
publicly downloadable source files.
--
Edit bug report at https://bugs.php.net/bug.php?id=75493&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75493&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75493&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75493&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75493&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75493&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75493&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75493&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75493&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75493&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75493&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75493&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75493&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75493&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75493&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75493&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75493&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75493&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75493&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75493&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75493&r=mysqlcfg