Bug #75493 [Opn->Fbk]: Compile falis on PCRE both 7.0 and 7.1 latest

From: Date: Tue, 07 Nov 2017 12:58:39 +0000
Subject: Bug #75493 [Opn->Fbk]: Compile falis on PCRE both 7.0 and 7.1 latest
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212495@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75493&edit=1 ID: 75493 Updated by: cmb@php.net Reported by: samashining at gmail dot com Summary: Compile falis on PCRE both 7.0 and 7.1 latest -Status: Open +Status: Feedback Type: Bug Package: Compile Failure Operating System: Linux (RHEL 6.9) PHP Version: 7.1.11 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > --with-pcre-regex=/usr \ Please try without this configuration option to force usage of the bundled libpcre. Would that succeed? Also, what is the PCRE version you have tried to compile against? Previous Comments: ------------------------------------------------------------------------ [2017-11-07 01:31:09] samashining at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=75493&edit=1

« previous php.bugs (#212495) next »