[php-src] Issue #9517: Compilation error openssl extension related to PR #9366
| From: | tommyrot | Date: | Sat, 10 Sep 2022 00:03:40 +0000 |
| Subject: | [php-src] Issue #9517: Compilation error openssl extension related to PR #9366 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242393@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9517
Author: tommyrot
### Description
#9366 presumably incorrectly changed an ifdef statement in
[ext/openssl/openssl.c](https://github.com/php/php-src/blob/master/ext/openssl/openssl.c#L7173)
which can now result in the following error during compilation on OpenBSD 7.1 with LibreSSL 3.5.2:
```
/bin/sh /tmp/php-8.2.0RC1/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc
-Iext/openssl/ -I/tmp/php-8.2.0RC1/ext/openssl/ -I/tmp/php-8.2.0RC1/include -I/tmp/php-8.2.0RC1/main
-I/tmp/php-8.2.0RC1 -I/tmp/php-8.2.0RC1/ext/date/lib -I/usr/local/include
-I/tmp/php-8.2.0RC1/ext/mbstring/libmbfl -I/tmp/php-8.2.0RC1/ext/mbstring/libmbfl/mbfl
-I/tmp/php-8.2.0RC1/TSRM -I/tmp/php-8.2.0RC1/Zend -D_GNU_SOURCE -fno-common -Wstrict-prototypes
-Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2
-fvisibility=hidden -DZEND_SIGNALS -c /tmp/php-8.2.0RC1/ext/openssl/openssl.c -o
ext/openssl/openssl.lo -MMD -MF ext/openssl/openssl.dep -MT ext/openssl/openssl.lo
/tmp/php-8.2.0RC1/ext/openssl/openssl.c:7173:49: error: use of undeclared identifier
'EVP_CIPH_OCB_MODE'
mode->set_tag_length_always = cipher_mode == EVP_CIPH_OCB_MODE;
^
1 error generated.
*** Error 1 in /tmp/php-8.2.0RC1 (Makefile:434 'ext/openssl/openssl.lo')
```
### PHP Version
PHP 8.2.0RC1
### Operating System
OpenBSD 7.1