php / php-src

The PHP Interpreter
https://www.php.net
Other
38.23k stars 7.75k forks source link

Error on building PHP 8.4RC4 on Windows 11 ARM64 #16827

Open macintoshplus opened 1 day ago

macintoshplus commented 1 day ago

Description

This error occurs when I try to build PHP for Windows 11 on an ARM64 processor.

I use the GitHub Action php-windows-builder updated to build for ARM64.

sapi\cgi\cgi_main.c(91): fatal error C1083: Cannot open include file: 'openssl/applink.c': No such file or directory

PHP Version

PHP 8.4.0RC4

Operating System

Windows 11 ARM64

cmb69 commented 22 hours ago

I don't think this is a bug in php-src, but let's see.

https://github.com/php/php-src/blob/1b803bc3f57ca58f82f3be6127c8c6d72bc93447/sapi/cgi/cgi_main.c#L90-L92

HAVE_OPENSSL_EXT is defined when OpenSSL had been found. Where did you get that package from (did you build it yourself)? That package is supposed to contain include\openssl\applink.c. Is that file missing from your OpenSSL package?

macintoshplus commented 13 hours ago

I use the package available here : https://phpext.phptools.online/experimental

It's build with winlib/builder private fork (it's necessary for work with my self-hosted ARM64 runner).

The GitHub Action configuration is same as winlib/builder:.github/workflows/openssl.yml.

The file openssl/applink.c is added manually into the archive available here?