Skip to content

8.3.0 build fails on centos 8 with mbstring related error #12774

@Xerkus

Description

@Xerkus

Description

PHP 8.3.0 build fails on centos 8 with the error:

/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

Original failure discovered during 8.3.0 build at
php-build/php-build#759

Recreated locally in centos:8 docker image running configure and make directly. Full build log output available here https://gist.github.com/Xerkus/185b0a566abe8acee620b9a0ae84468d

Used configure as follows, no env variables used:

./configure --with-config-file-path=/tmp/php-build-test-20231124174343/8.3.0/etc \
  --with-config-file-scan-dir=/tmp/php-build-test-20231124174343/8.3.0/etc/conf.d \
  --prefix=/tmp/php-build-test-20231124174343/8.3.0 \
  --libexecdir=/tmp/php-build-test-20231124174343/8.3.0/libexec \
  --datadir=/tmp/php-build-test-20231124174343/8.3.0/share/php \
  --mandir=/tmp/php-build-test-20231124174343/8.3.0/share/man \
  --enable-sockets \
  --enable-exif \
  --with-zlib \
  --with-zlib-dir=/usr \
  --with-bz2 \
  --enable-intl \
  --with-openssl \
  --enable-soap \
  --enable-xmlreader \
  --with-xsl --enable-ftp \
  --enable-cgi \
  --with-curl=/usr \
  --with-tidy \
  --enable-sysvsem \
  --enable-sysvshm \
  --enable-shmop \
  --with-mysqli=mysqlnd \
  --with-pdo-mysql=mysqlnd \
  --with-pdo-sqlite \
  --enable-pcntl \
  --with-readline \
  --enable-mbstring \
  --disable-debug \
  --enable-fpm \
  --enable-bcmath \
  --enable-phpdbg \
  --enable-gd \
  --with-jpeg \
  --with-zip \
  --with-mhash \
  --with-libdir=lib64  

This issue looks similar to me #11603

PHP Version

8.3.0

Operating System

Centos 8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions