Bug #76256 [ReO->Fbk]: Configure doesn't find external pcre2

From: Date: Wed, 25 Apr 2018 14:18:43 +0000
Subject: Bug #76256 [ReO->Fbk]: Configure doesn't find external pcre2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214886@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76256&edit=1 ID: 76256 Updated by: ab@php.net Reported by: pprkut at slackware dot com Summary: Configure doesn't find external pcre2 -Status: Re-Opened +Status: Feedback Type: Bug Package: *Compile Issues Operating System: Linux PHP Version: master-Git-2018-04-23 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: @pprkut these issues should have been fixed just now. Please check. Thanks. Previous Comments: ------------------------------------------------------------------------ [2018-04-24 21:41:34] cmb@php.net Thanks – re-opening. Actually, there are even further issues at least with the version detection[1]; $pcre_version is "210222" for me (PCRE 10.22) due to the 2 in PCRE2. > checking for pcre2_jit_exec in -lpcre2... no For some reason, pcre-jit seems to be supported for the bundled libpcre2 only[2]. [1] <https://github.com/php/php-src/blob/e79013a71fdc951f9a5842ffe8a0e3af63c31111/ext/pcre/config0.m4#L36-L37> [2] <https://github.com/php/php-src/blob/e79013a71fdc951f9a5842ffe8a0e3af63c31111/ext/pcre/config0.m4#L12> ------------------------------------------------------------------------ [2018-04-24 16:34:38] pprkut at slackware dot com Not entirely sure, but I think this line needs to be adjusted as well: PHP_ADD_LIBRARY_WITH_PATH(pcre2, $PCRE_LIBDIR) For me the follow up tests fail still: checking for pcre2_jit_exec in -lpcre2... no because it's trying to link -lpcre2 instead of -lpcre2-8 ------------------------------------------------------------------------ [2018-04-24 15:56:11] cmb@php.net This has now been fixed by <http://git.php.net/?p=php-src.git;a=commitdiff;h=e107a03419e4e7edb61948495d42ce446cd77375>. ------------------------------------------------------------------------ [2018-04-23 21:14:07] cmb@php.net It seems that Debian handles this analogously[1]. Since PHP requires the 8-bit version[2], we'd have to change (or extend?) the respective check[3]: test -f $j/libpcre2-8.a || test -f $j/libpcre2-8.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j [1] <https://packages.debian.org/sid/i386/libpcre2-dev/filelist> [2] <https://github.com/php/php-src/blob/703e0370905bc432aa26d71803b3081851e99230/ext/pcre/config0.m4#L58> [3] <https://github.com/php/php-src/blob/703e0370905bc432aa26d71803b3081851e99230/ext/pcre/config0.m4#L27> ------------------------------------------------------------------------ [2018-04-23 18:27:03] pprkut at slackware dot com Description: ------------ Configure doesn't work when building with --with-pcre-regex=/usr: checking for PCRE headers location... /usr/include checking for PCRE library location... configure: error: Could not find libpcre2.(a|so) in /usr The problem is that there is no libpcre2.so on my system (slackware linux). I have these options: /usr/lib64/libpcre2-16.so /usr/lib64/libpcre2-32.so /usr/lib64/libpcre2-8.so /usr/lib64/libpcre2-posix.so I checked arch and fedora and libpcre2.so doesn't appear to be a thing there either. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76256&edit=1

« previous php.bugs (#214886) next »