PHP ZeroMQ extension support for mipsel 24kc

Hi,
I'm looking for PHP ZeroMQ extension for mipsel 24kc on Openwrt, but I can't find it.
I'm talking about this: https://github.com/zeromq/php-zmq

This can be installed easily via PECL from Linux Debian-based distro.
I've seen that all PHP extensions are on packages feeds as ipk.

There's a way to compile it?

Thanks in advance.

I once made it in php5. if you want to try it you can grab it here

php5-pecl-zmq_1.1.3-1_mipsel_24kc

You made my day!
But, how did you do? Are there any instructions to convert PECL extensions for Openwrt?

I need to the same extension for PHP 7. Have you got it too?

Thank you very much.

i have not tried in php7. but I believe it can be used in php7 and php8

Actually I'm using Openwrt 19.07.7 with the following packages:

https://downloads.openwrt.org/releases/19.07.7/packages/mipsel_24kc/packages/

I see your ipk has a dependency with php5, but I cannot install it.

I tried to create the /etc/php7/20_zmq.ini file with this content:

extension=zmq.so

and then I paste zmq.so inside /usr/lib/php but executing php -m it shows me:

PHP Warning:  PHP Startup: Unable to load dynamic library 'zmq.so' (tried: /usr/lib/php/zmq.so (Error relocating /usr/lib/php/zmq.so: zend_object_store_get
_object: symbol not found), /usr/lib/php/zmq.so.so (Error loading shared library /usr/lib/php/zmq.so.so: No such file or directory)) in Unknown on line 0
[PHP Modules]

you are wrong it can't be used in php7 you have to create it with php7

Ok, but I don't know how. :pensive:
I didn't find any tutorial.

i don't have zmq file for php7. it has to be remade

Ok, if you tell me how, I'll do it and I publish it here with its ipk for everyone. :slightly_smiling_face:

php7-pecl-zmq_1.1.3-1_mipsel_24kc.ipk

1 Like

Can I see your Makefile?

I have given you the link above how to make packages

I know how creating packages on OpenWrt, but in this case I've no information how pecl works on OpenWrt and there's no tutorial or examples about that.

I think it could be very helpful for the PHP community.

please search on google according to your wishes

1 Like