Compilation error: 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
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- build-system, tooling
Research direction
Start by reproducing asdf install php 8.3.11 on RHEL 8 and inspect the sapi/fpm/php-fpm target in Makefile along with ext/mbstring/libmbfl/filters/mbfilter_utf16.o. Check the reported PIE-related linker failure and the listed dependency and re2c requirements. Done means PHP 8.3.11 installs successfully through asdf on the reported environment.
Written by the indexing model from the issue text.
Description
Provide environment information
When I try to install PHP, then I get a compilation error.
PHP 8.3.11
RHEL 8
To Reproduce
$ asdf install php 8.3.11
/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
Describe the Bug
Some kind of PIE related compilation error occurs when installing PHP.
As an aside, several packages were needed but not documented in the PHP instructions:
- Unclear which versions of re2c are supported
- Python > 3.7 (for latest re2c)
- libxml2-dev(el)
- libcurl-dev(el)
- gd-dev(el)
- libicu-dev(el)
- oniguruma-dev(el)
- libpq-dev(el)
- libzip-dev(el)
Expected Behaviour
asdf install php 8.3.11 should succeed.
- Dominant language
- Python
- Stars
- 255
- Forks
- 118
- Avg merge
- 42m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from asdf-community/asdf-php
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
asdf-community/asdf-php#213 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
asdf-community/asdf-php#145 · 3 comments · 3 reactions ·
-
Install PIE (PHP's new extension installer) by defaultMay be free again @Rusydy claimed this 348 days ago, and no pull request is open. Open
asdf-community/asdf-php#190 · 2 reactions · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
asdf-community/asdf-php#181 · 10 comments · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
asdf-community/asdf-php#180 · 1 comment · 1 reaction ·
All issues in asdf-community/asdf-php
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#872 ·
Maintainers usually reply within 1 day
-
[Bug]: Scheduled returns scan all accepted minion keys causing extreme loadPossibly taken A pull request linked to this issue is open or already merged. Openbug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
saltstack/salt#70789 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
btclib-org/btclib#3093 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
patrickballard/wheelgap#269 ·
-
priority: low python
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
LearningCircuit/local-deep-research#8635 ·
Maintainers usually reply within 1 day