[Solved][hiredis][php] latest hiredis breaks phpiredis armv7

Problems with packages? Post here, using [tags] of the package name.

[Solved][hiredis][php] latest hiredis breaks phpiredis armv7

Postby keithspg » Mon Feb 17, 2020 3:38 pm

Recently, hiredis was upgraded from 0.13.3-2 to 0.14.0-1. I use this to build php-phiredis for use in a web based appliance.
https://github.com/nrk/phpiredis
with this AUR
https://aur.archlinux.org/packages/php-phpiredis-git/
phpiredis has not changed since 2016 and is at version 1.0.0. Well, I rebuilt the package with the new hiredis for armv7 and now I get an error:
$this->bbcode_second_pass_code('', 'PHP Warning: PHP Startup: Unable to load dynamic library 'phpiredis' (tried: /usr/lib/php/modules/phpiredis (/usr/lib/php/modules/phpiredis: cannot open shared object file: No such file or directory), /usr/lib/php/modules/phpiredis.so (/usr/lib/php/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'phpiredis' (tried: /usr/lib/php/modules/phpiredis (/usr/lib/php/modules/phpiredis: cannot open shared object file: No such file or directory), /usr/lib/php/modules/phpiredis.so (/usr/lib/php/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError)) in Unknown on line 0
')
If I build this on the armv6 (RpiZero) it works fine with hiredis 0.14.0-1:
$this->bbcode_second_pass_code('', 'phpinfo()
PHP Version => 7.4.2

System => Linux runeaudio 4.19.102-1-ARCH #1 SMP PREEMPT Thu Feb 13 22:13:34 CST 2020 armv6l
Build Date => Jan 21 2020 19:19:29
...
phpiredis

phpiredis => enabled
phpiredis version => 1.0.0
hiredis version => 0.14.0')
I tried building hiredis 0.14.0-1 from the ARM PKGBUILD then building php-phpiredis and get the same result. The only way I can build php-phpiredis to work on the armv7 (Rpi2/3), up to date with all packages, is to downgrade hiredis to 0.13.3-2 then build php-phpiredis:
$this->bbcode_second_pass_code('', 'phpinfo()
PHP Version => 7.4.2

System => Linux livingrune 4.19.102-1-ARCH #1 SMP PREEMPT Sun Feb 9 19:07:08 UTC 2020 armv7l
Build Date => Jan 21 2020 19:19:33
...
phpiredis

phpiredis => enabled
phpiredis version => 1.0.0
hiredis version => 0.13.3')
Any idea what may be going on?
Last edited by keithspg on Thu Feb 20, 2020 3:48 pm, edited 1 time in total.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

[Solved] [hiredis][php] latest update breaks phpiredis on ar

Postby keithspg » Thu Feb 20, 2020 3:46 pm

I do not know what is causing the difference in response for v7(does not work) versus v6 (works), but my guess is that the armv6 hiredis package is actually 0.13.3 instead of the advertised 0.14.0. The reason I think this is the case is that I was able to solve the problem for armv7 and x86_64 by forking the php-phpiredis repsoitory, changing some function calls, compiled, installed, and use the php-phpiredis package with hiredis 0.14.0 from the repsoitory on armv7...

I have submitted a pull request for php-phpiredis. Thanks for watching...
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 3 guests