error seems to be
mkdir: cc -I. -I/usr/src/php/ext/readline -DPHP_ATOM_INC -I/usr/src/php/ext/readline/include -I/usr/src/php/ext/readline/main -I/usr/src/php/ext/readline -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/editline -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c /usr/src/php/ext/readline/readline.c -fPIC -DPIC -o .libs/readline.o
cannot create directory '.libs': File exists
cc -I. -I/usr/src/php/ext/readline -DPHP_ATOM_INC -I/usr/src/php/ext/readline/include -I/usr/src/php/ext/readline/main -I/usr/src/php/ext/readline -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/editline -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c /usr/src/php/ext/readline/readline_cli.c -fPIC -DPIC -o .libs/readline_cli.o
In file included from /usr/local/include/php/main/php.h:37,
from /usr/src/php/ext/readline/readline.c:25:
/usr/src/php/ext/readline/readline.c: In function 'zif_readline_info':
/usr/src/php/ext/readline/readline.c:258:38: error: 'rl_mark' undeclared (first use in this function)
258 | add_assoc_long(return_value,"mark",rl_mark);
| ^~~~~~~
/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'
402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)
| ^~~
/usr/src/php/ext/readline/readline.c:258:38: note: each undeclared identifier is reported only once for each function it appears in
258 | add_assoc_long(return_value,"mark",rl_mark);
| ^~~~~~~
/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'
402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)
| ^~~
/usr/src/php/ext/readline/readline.c:260:47: error: 'rl_pending_input' undeclared (first use in this function)
260 | add_assoc_long(return_value,"pending_input",rl_pending_input);
| ^~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'
402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)
| ^~~
/usr/src/php/ext/readline/readline.c:267:60: error: 'rl_completion_suppress_append' undeclared (first use in this function)
267 | add_assoc_bool(return_value,"completion_suppress_append",rl_completion_suppress_append);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:404:90: note: in definition of macro 'add_assoc_bool'
404 | #define add_assoc_bool(__arg, __key, __b) add_assoc_bool_ex(__arg, __key, strlen(__key), __b)
| ^~~
make: *** [Makefile:192: readline.lo] Error 1
make: *** Waiting for unfinished jobs....
The command '/bin/sh -c apt-get update && apt-get install -y acl apt-utils unzip libpng-dev libzip-dev libbz2-dev libgmp-dev libreadline-dev libedit-dev libxml2-dev libxslt-dev libpcre3 libpcre3-dev libpcre++-dev libzip-dev supervisor procps && docker-php-ext-install -j$(nproc) bcmath && docker-php-ext-install -j$(nproc) bz2 && docker-php-ext-install -j$(nproc) exif && docker-php-ext-install -j$(nproc) gd && docker-php-ext-install -j$(nproc) gettext && docker-php-ext-install -j$(nproc) gmp && docker-php-ext-install -j$(nproc) mysqli && docker-php-ext-install -j$(nproc) pcntl && docker-php-ext-install -j$(nproc) pdo_mysql && docker-php-ext-install -j$(nproc) readline && docker-php-ext-install -j$(nproc) shmop && docker-php-ext-install -j$(nproc) soap && docker-php-ext-install -j$(nproc) sockets && docker-php-ext-install -j$(nproc) xmlrpc && docker-php-ext-install -j$(nproc) xsl && docker-php-ext-install -j$(nproc) zip && docker-php-ext-install -j$(nproc) sysvmsg && docker-php-ext-install -j$(nproc) sysvsem && docker-php-ext-install -j$(nproc) sysvshm && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer' returned a non-zero code: 2
2021-08-27T07:54:10.474749339Z stdout P
Same here, docker image bulding fails because redline even outside pipelines.
Found the error, it's because I had set
FROM php:7.4-fpm
In one of my images but the version 7.4.23 breaks redline so I added the minor version like this:
FROM php:7.4.22-fpm
And it works now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.