rocky8 编译 php 8.5.4 出现 mbfilter_utf16.o’ can not be used when making an executable 的解决方法

编译php8.4.5遇到错误

/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in
`ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable; 
recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status

解放的方法

--enable-mbstring=shared

编译的系统环境说明

cat /etc/redhat-release
Rocky Linux release 8.10 (Green Obsidian)

什么不用最新的 rocky 9, 因为 某云没有

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注