|  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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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
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} \

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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-17 10:27 UTC]
Would the patch at 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]
Automatic comment on behalf of
Log: Fix bug #79112: IMAP can't find OpenSSL during configure
 [2020-01-20 08:59 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu May 28 02:01:25 2020 UTC