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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 07:01:28 2024 UTC