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

[BUG]: PECL build no longer working #16680

Open
JamesArthurHolland opened this issue Jan 13, 2025 · 2 comments
Open

[BUG]: PECL build no longer working #16680

JamesArthurHolland opened this issue Jan 13, 2025 · 2 comments
Labels
bug A bug report status: unverified Unverified

Comments

@JamesArthurHolland
Copy link

Building on docker using pecl was working before Christmas, now it doesn't work.

Steps to reproduce the behavior:

Docker image: php:8.3-fpm-alpine

RUN pecl install mongodb apcu igbinary redis phalcon-5.6.2
#12 362.8 /usr/local/include/php/Zend/zend_API.h:2311:71: note: expected 'zval **' {aka 'struct _zval_struct **'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
#12 362.8  2311 | static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool check_null, bool or_object)
#12 362.8       |                                                                ~~~~~~~^~~~
#12 362.8 /tmp/pear/temp/phalcon/phalcon.zep.c: In function 'php_zephir_init_globals':
#12 362.8 /tmp/pear/temp/phalcon/phalcon.zep.c:206421:57: error: assignment to 'zend_string *' {aka 'struct _zend_string *'} from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
#12 362.8 206421 |         phalcon_globals->orm.resultset_prefetch_records = ZSTR_VAL(zend_string_init(ZEND_STRL("0"), 0));
#12 362.8        |                                                         ^
#12 362.8 make: *** [Makefile:210: phalcon.lo] Error 1
#12 362.8 ERROR: `make' failed
#12 ERROR: process "/bin/sh -c pecl install mongodb apcu igbinary redis phalcon-5.6.2" did not complete successfully: exit code: 1
------
 > [php  6/15] RUN pecl install mongodb apcu igbinary redis phalcon-5.6.2:
@JamesArthurHolland JamesArthurHolland added bug A bug report status: unverified Unverified labels Jan 13, 2025
@oleghind
Copy link

It's the same for all: pecl or non-pecl, all builds are broken

@oleghind
Copy link

I was able to find a solution, need to set those flags before building:
export CFLAGS="$CFLAGS -DALPINE_LINUX=1 -fpermissive"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: unverified Unverified
Projects
None yet
Development

No branches or pull requests

2 participants