Bug #79063 [Csd]: curl openssl does not respect PKG_CONFIG_PATH nor --with-openssl-dir

From: Date: Mon, 06 Jan 2020 19:36:30 +0000
Subject: Bug #79063 [Csd]: curl openssl does not respect PKG_CONFIG_PATH nor --with-openssl-dir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224743@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79063&edit=1 ID: 79063 Updated by: nikic@php.net Reported by: naox at yum dot pl Summary: curl openssl does not respect PKG_CONFIG_PATH nor --with-openssl-dir Status: Closed Type: Bug Package: *Compile Issues PHP Version: 7.4.1 Assigned To: nikic Block user comment: N Private report: N New Comment: To clarity, there are three commits here, I assuming you applied all of them: https://github.com/php/php-src/commit/2d29904f252c7e7bb7c7cdfe9b6f095e3fb8f5d9, https://github.com/php/php-src/commit/b59f760472787bef78f9fc71eaa02f3cf056dff8, https://github.com/php/php-src/commit/68f6ab711323678382d2746e57358d3f57a3446b Could you please clarify which openssl your libcurl is linked against, which version is provided by the system, which you are trying to link against with PKG_CONFIG_PATH, and which actually ends up being used? Generally speaking, the version that is linked into libcurl should match the version against which you link PHP, or least they need to have compatible ABI. Previous Comments: ------------------------------------------------------------------------ [2020-01-06 19:26:11] naox at yum dot pl ---- ------------------------------------------------------------------------ [2020-01-06 19:22:30] naox at yum dot pl Correction. Now bug is present when compiling php with openssl newer than openssl present in libcurl. In that case somehow OS default openssl version will get compiled into php curl extension. Warning or error on configure script might be in order for such situation but I guess bug is resolved. ------------------------------------------------------------------------ [2020-01-06 18:40:29] naox at yum dot pl I've aplied your patch. I don't know what it does but it did not help. Everything I've previously described remains valid. curl extension gets openssl from default openssl in OS and not from version compiled into php openssl extension or version of openssl compiled into libcurl. ------------------------------------------------------------------------ [2020-01-06 09:44:40] nikic@php.net I've applied an additional change in https://github.com/php/php-src/commit/68f6ab711323678382d2746e57358d3f57a3446b to avoid dealing with openssl in the first place if curl is linked against openssl 1.1. ------------------------------------------------------------------------ [2020-01-06 09:31:44] nikic@php.net Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=b59f760472787bef78f9fc71eaa02f3cf056dff8 Log: Fix bug #79063: Curl openssl does not respect PKG_CONFIG_PATH ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79063 -- Edit this bug report at https://bugs.php.net/bug.php?id=79063&edit=1

« previous php.bugs (#224743) next »