Home » php8.2-apcu fails with ” undefined symbol: php_strlcpy”

php8.2-apcu fails with ” undefined symbol: php_strlcpy”

0 comment 210 views

Follow below to fix

@Matthias Nagel (and interested parties): This worked for me:
#### rebuild php-apcu.so
mkdir apcu
cd apcu
git clone -b ubuntu/mantic https://git.launchpad.net/ubuntu/+source/php-apcu
ls -l
cd php-apcu/apcu-5.1.22
phpize
./configure –enable-apcu
make
make test
### as root
cp modules/apcu.so /usr/lib/php/20220829/
php -version
PHP 8.2.10-2ubuntu1 (cli) (built: Sep 5 2023 14:37:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.10, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.10-2ubuntu1, Copyright (c), by Zend Technologies
## works !

Refer – https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/2038916

Leave a Comment