Topic: Compiling php 8.3.0 on RHEL 8 / OL8
I was wondering how you got the php 8.3.0 package to compile on RHEL 8 / OL8 with mbstring support. When we try to compile it, it errors out with:
/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
make: *** [Makefile:311: sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
/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
make: *** [Makefile:323: sapi/fpm/php-fpm] Error 1
I think it's related to this, which php closed as not applicable:
https://github.com/php/php-src/issues/12774
Any pointers? Thanks!