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!

Re: Compiling php 8.3.0 on RHEL 8 / OL8

If you use EL-8, why don't you simply use my repository ?
8.3.0 is there for months

> I was wondering how you got the php 8.3.0 package to compile on RHEL 8 / OL8 with mbstring support.

No magic here
https://git.remirepo.net/cgit/rpms/php/php83.git/


P.S. for modern features, such as PHP 8.3, I recommend a modern distro, so EL-9

Laptop:  Fedora 40 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: AlmaLinux 8 with EPEL, rpmfusion, remi