Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 30 build error #205

Open
djnotes opened this issue Oct 5, 2019 · 9 comments
Open

Fedora 30 build error #205

djnotes opened this issue Oct 5, 2019 · 9 comments

Comments

@djnotes
Copy link

djnotes commented Oct 5, 2019

Trying to install zmq with sudo pecl install zmq-beta on Fedora, I face the following error:

/var/tmp/zmq/zmq.c: In function ‘php_zmq_context_get’:
/var/tmp/zmq/zmq.c:238:20: error: lvalue required as left operand of assignment
  238 |   GC_REFCOUNT(&le) = 1;
      |                    ^
/var/tmp/zmq/zmq.c: In function ‘php_zmq_socket_store’:
/var/tmp/zmq/zmq.c:538:19: error: lvalue required as left operand of assignment
  538 |  GC_REFCOUNT(&le) = 1;
      |                   ^
make: *** [Makefile:194: zmq.lo] Error 1
ERROR: `make' failed

@god1dog
Copy link

god1dog commented Oct 21, 2019

Similar error on docker image:

FROM php:7.3.10-fpm
RUN apt-get install --yes libzmq3-dev
RUN pecl install zmq-beta
RUN docker-php-ext-enable zmq

had to install zmq from master branch #200

FROM php:7.3.10-fpm
RUN apt-get install --yes git libzmq3-dev
RUN git clone git://github.com/mkoppanen/php-zmq.git \
 && cd php-zmq \
 && phpize && ./configure \
 && make \
 && make install \
 && cd .. \
 && rm -fr php-zmq 
RUN docker-php-ext-enable zmq

@jamzy118
Copy link

Same error appears on Arch Linux when trying to install php-zmq from AUR https://aur.archlinux.org/packages/php-zmq/

@andres101
Copy link

If anyone tries to use the config from god1dog above, remove the \ at the end of 2nd last line.

@god1dog
Copy link

god1dog commented Feb 4, 2020

Fixed the message, thanks @andres101

@WeTurkstra
Copy link

Thank you guys so much! @god1dog @andres101 Was searching al morning to install zmq on my php docker image and this worked great!

@koxelez
Copy link

koxelez commented May 30, 2020

@god1dog Thank you!

@dungahk
Copy link

dungahk commented Jun 2, 2020

I believe this is related to PHP 7.3, I was upgrading my stack from 7.2 to 7.3 and it failed with that error message.

@cmb69
Copy link

cmb69 commented Aug 4, 2021

I believe this is related to PHP 7.3, […]

Right. The fix has already been committed (e0db82c), but a new release is pending, what is tracked by PR #203.

@Rzhevsky87
Copy link

Rzhevsky87 commented Dec 16, 2021

Thank you so much! @god1dog @andres101 ! This help for me. Build basic on php:7.4.26-apache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants