php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79112 IMAP extension can't find OpenSSL libraries at configure time
Submitted: 2020-01-13 21:48 UTC Modified: 2020-01-18 03:54 UTC
From: php-bug-2020 at ryandesign dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.4.1 OS: macOS 10.13
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bug-2020 at ryandesign dot com
New email:
PHP Version: OS:

 

 [2020-01-13 21:48 UTC] php-bug-2020 at ryandesign dot com
Description:
------------
Hi, I'm the maintainer of PHP in MacPorts, finally working on getting PHP 7.4 into our collection.

We phpize each bundled module to build it separately from the PHP core.

The IMAP module fails to configure:


configure: error: OpenSSL libraries not found.

      Check the path given to --with-openssl-dir and output in config.log)


This did not happen with PHP 7.3 or earlier.

We are supplying these configure flags:

--with-imap=${prefix} \
--with-imap-ssl=${prefix} \
--with-kerberos=${prefix}

The --with-openssl-dir flag suggested by the error message is not supported by this configure script, and adding it does not change the error.

Note also the closing parenthesis in the error message without a matching opening parenthesis.

The workaround appears to be to set PHP_OPENSSL=yes in the environment, but we shouldn't have to do that. This workaround was suggested here: https://github.com/docker-library/php/issues/891


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-17 10:27 UTC] nikic@php.net
Would the patch at https://github.com/php/php-src/pull/5091 address the issue you're seeing? The actual openssl path would be taken from pkg-config, but I'm assuming you already have that set up appropriately.
 [2020-01-18 03:54 UTC] php-bug-2020 at ryandesign dot com
Yes, thank you, that solves the problem.
 [2020-01-20 08:59 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=74380465ec8d868bd3d28d7cf73151642d195012
Log: Fix bug #79112: IMAP can't find OpenSSL during configure
 [2020-01-20 08:59 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC