Blogger Information
Blog 1
fans 0
comment 0
visits 1016
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Mac OS Ventura M1上执行`make`时,如果出现`call to undeclared function 'sys_icache_invalidate'`错误
PHP中文网用户-5864116
Original
1016 people have browsed it

我正在尝试维护一个使用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版本的源代码
weibo.com/ttarticle/p/show?id=2309404926866636013614
weibo.com/ttarticle/p/show?id=2309404926866652790788
weibo.com/ttarticle/p/show?id=2309404926866665635842
weibo.com/ttarticle/p/show?id=2309404926866690801689
weibo.com/ttarticle/p/show?id=2309404926866703384604
weibo.com/ttarticle/p/show?id=2309404926866715705346
weibo.com/ttarticle/p/show?id=2309404926866724093976
weibo.com/ttarticle/p/show?id=2309404926866736939080
weibo.com/ttarticle/p/show?id=2309404926866749521927
weibo.com/ttarticle/p/show?id=2309404926866757910622
weibo.com/ttarticle/p/show?id=2309404926866770493461
weibo.com/ttarticle/p/show?id=2309404926867470942228
weibo.com/ttarticle/p/show?id=2309404926867483525126
weibo.com/ttarticle/p/show?id=2309404926867508428822
weibo.com/ttarticle/p/show?id=2309404926867521273870
weibo.com/ttarticle/p/show?id=2309404926867529662511
weibo.com/ttarticle/p/show?id=2309404926867542245399
weibo.com/ttarticle/p/show?id=2309404926867554566152
weibo.com/ttarticle/p/show?id=2309404926867567149058
weibo.com/ttarticle/p/show?id=2309404926867575537678
weibo.com/ttarticle/p/show?id=2309404926867588382748

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments