Bug #72363 [Opn->Fbk]: Cannot find OpenSSL evp.h

From: Date: Thu, 24 Jun 2021 09:36:50 +0000
Subject: Bug #72363 [Opn->Fbk]: Cannot find OpenSSL evp.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234612@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72363&edit=1

 ID:                 72363
 Updated by:         cmb@php.net
 Reported by:        kearney dot taaffe at gmail dot com
 Summary:            Cannot find OpenSSL evp.h
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   Linux
 PHP Version:        7.0.7
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2021-02-01 10:15:52] muhammadazishusein at gmail dot com

PHP 7.1.11 also has the same problem when configure mysqlnd extension. My OS is Manajro Linux.

------------------------------------------------------------------------
[2017-06-16 07:28:19] nlencebo at gmail dot com

Php version 7.1.15 has similar question;

------------------------------------------------------------------------
[2016-07-19 03:39:38] 447405878 at qq dot com

Php version 7.0.8 has similar question;

------------------------------------------------------------------------
[2016-06-08 21:10:21] kearney dot taaffe at gmail dot com

Description:
------------
When trying to build extension mysqlnd using 'phpize', the follow error keeps popping up:
    configure: error: Cannot find OpenSSL's <evp.h>

The cause of this is because after running the command 'phpize' the configure script has a
variable (PHP_OPENSSL_DIR) that is not set "yes"


PHP_OPENSSL_DIR is never initialized. So, the following code found on line 4332 never gets executed

    if test "$PHP_OPENSSL" = "yes" && test -x "$PKG_CONFIG"
&& \
       $PKG_CONFIG --exists openssl; then
        ...
        # checks openssl version, and other stuff



Test script:
---------------
# download and extract latest PHP 7 code
compile PHP using the following
./configure --prefix=$HOME/php7
make
make install
cd $HOME/php7
ln -s bin/php-config php-config
ln -s bin/php php
ln -s bin/phpize phpize
cd the directory where PHP source code is
cd ext
cd mysqlnd
# rename the configXX.m4 file to config.m4
phpize
./configure --with-php-config=$HOME/php7/php-config
make

Expected result:
----------------
The extension should be compiled and a shared object should be built and moved to the extension
directory

Actual result:
--------------
./configure returns an error


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=72363&edit=1


Thread (1 message)

  • cmb@php.net
  • Unknown Message
    • cmb@php.net
« previous php.bugs (#234612) next »