[php-src] Issue #8227: Compile php with mbstring result in `symbol lookup error: mbstring.so: undefined symbol: pcre2_compile_8`
| From: | kocoten1992 | Date: | Sun, 20 Mar 2022 06:52:09 +0000 |
| Subject: | [php-src] Issue #8227: Compile php with mbstring result in `symbol lookup error: mbstring.so: undefined symbol: pcre2_compile_8` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240421@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8227
Author: kocoten1992
### Description
The following code:
```bash
wget -qO- https://www.php.net/distributions/php-8.1.4.tar.xz
| tar -xJv
cd php-8.1.4
./configure
make
cd ext/mbstring
phpize && ./configure && make
```
Here is my
php.ini
```ini
...
extension_dir=.
extension=mbstring.so
...
```
When I run ./php -c php.ini (php is newly complied with newly
php.ini and mbstring.so), it result in:
```bash
./php: symbol lookup error: php-cli-ext/mbstring.so: undefined symbol: pcre2_compile_8
```
Compiling is success, if I remove ext mbstring in php.ini, php seem to work again, I
don't know where it when wrong, have try to google it but found nothing.
### PHP Version
8.1.4
### Operating System
Ubuntu 22.04