You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the base images, php:8.*-fpm-alpine, recently updated to Alpine 3.21, some modules now fail to build on i386, arm32v6, and arm32v7. The memcached module is the one that is currently failing. It is caused by Alpine 3.21 using gcc 14 which changed incompatible-pointer-types to an error instead of just a warning (https://gcc.gnu.org/gcc-14/porting_to.html). Luckily php-memcached already has a fix in in 3.3.0, so just a bump to the pecl install memcached should be enough to fix it.
/tmp/pear/temp/memcached/php_memcached.c: In function 's_compress_value':/tmp/pear/temp/memcached/php_memcached.c:903:65: error: passing argument 2 of 'compress' from incompatible pointer type [-Wincompatible-pointer-types] 903 | int status = compress((Bytef *) buffer, &compressed_size, (Bytef *) ZSTR_VAL(payload), ZSTR_LEN(payload)); | ^~~~~~~~~~~~~~~~ | | | size_t * {aka unsigned int *}In file included from /tmp/pear/temp/memcached/php_memcached.c:38:/usr/include/zlib.h:1232:53: note: expected 'uLongf *' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'unsigned int *'} 1232 | ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen, | ~~~~~~~~^~~~~~~/tmp/pear/temp/memcached/php_memcached.c: In function 's_decompress_value':/tmp/pear/temp/memcached/php_memcached.c:3636:72: error: passing argument 2 of 'uncompress' from incompatible pointer type [-Wincompatible-pointer-types] 3636 | decompress_status = (uncompress((Bytef *) buffer->val, &buffer->len, (Bytef *)payload, payload_len) == Z_OK); | ^~~~~~~~~~~~ | | | size_t * {aka unsigned int *}/usr/include/zlib.h:1270:55: note: expected 'uLongf *' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'unsigned int *'} 1270 | ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, | ~~~~~~~~^~~~~~~make: *** [Makefile:210: php_memcached.lo] Error 1
The text was updated successfully, but these errors were encountered:
Because the base images,
php:8.*-fpm-alpine
, recently updated to Alpine 3.21, some modules now fail to build oni386
,arm32v6
, andarm32v7
. Thememcached
module is the one that is currently failing. It is caused by Alpine 3.21 usinggcc
14 which changedincompatible-pointer-types
to an error instead of just a warning (https://gcc.gnu.org/gcc-14/porting_to.html). Luckilyphp-memcached
already has a fix in in 3.3.0, so just a bump to thepecl install memcached
should be enough to fix it.build logs:
The text was updated successfully, but these errors were encountered: