我正在尝试维护一个使用PHP 5.4.45的旧应用程序。所以我从这里安装了相应PHP版本的源代码。我解压了tar.gz文件夹并执行了...
./configure --with-iconv=/opt/homebrew/opt/libiconv
make
在第一步中,成功地进行了配置。但是,在第二步中,出现了许多警告和错误。在这个错误处,make过程停止了:
/Users/ferguso/Downloads/php-5.4.45/ext/pcre/pcrelib/sljit/sljitNativeARM_64.c:312:2: error: call to undeclared function 'sys_icache_invalidate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SLJIT_CACHE_FLUSH(code, code_ptr); /Users/ferguso/Downloads/php-5.4.45/ext/pcre/pcrelib/sljit/sljitConfigInternal.h:301:2: note: expanded from macro 'SLJIT_CACHE_FLUSH' sys_icache_invalidate((char*)(from), (char*)(to) - (char*)(from))
如何处理这个错误并在我的MacOS Ventura M1 MacBook上安装PHP 5.4.45版本的源代码?
我比较了最新的代码。尝试在宏前面包含头文件。