Closed ict-21-nib-sakai closed 2 years ago
PHP-Apache 8.1.2
と PHP-CLI 8.1.2
両方のコンテナが作れない。
なんかこけてる。
/usr/src/php/ext/sockets/sendrecvmsg.c: In function 'init_ancillary_registry':
/usr/src/php/ext/sockets/sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred'
128 | PUT_ENTRY(sizeof(struct cmsgcred), 0, 0, from_zval_write_ucred,
| ^~~~~~
/usr/src/php/ext/sockets/sendrecvmsg.c:99:17: note: in definition of macro 'PUT_ENTRY'
99 | entry.size = sizev; \
| ^~~~~
/usr/src/php/ext/sockets/sendrecvmsg.c:129:36: error: 'SCM_CREDS' undeclared (first use in this function)
129 | to_zval_read_ucred, SOL_SOCKET, SCM_CREDS);
| ^~~~~~~~~
/usr/src/php/ext/sockets/sendrecvmsg.c:105:19: note: in definition of macro 'PUT_ENTRY'
105 | key.cmsg_type = type; \
| ^~~~
/usr/src/php/ext/sockets/sendrecvmsg.c:129:36: note: each undeclared identifier is reported only once for each function it appears in
129 | to_zval_read_ucred, SOL_SOCKET, SCM_CREDS);
| ^~~~~~~~~
/usr/src/php/ext/sockets/sendrecvmsg.c:105:19: note: in definition of macro 'PUT_ENTRY'
105 | key.cmsg_type = type; \
| ^~~~
make: *** [Makefile:213: sendrecvmsg.lo] Error 1
2 errors occurred:
* Status: The command '/bin/sh -c adduser ${PHP_APACHE_USER_NAME} --disabled-password --uid ${PHP_APACHE_USER_ID} --gecos "" --shell /sbin/nologin && apt-get update && apt-get install -y --no-install-recommends libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libmagickwand-dev libonig-dev libpng-dev libxml2-dev libzip-dev && docker-php-ext-install bcmath calendar ctype dba dom exif fileinfo -j$(nproc) gd gettext gmp iconv intl mbstring mysqli opcache pdo pdo_mysql posix session simplexml soap sockets xml xmlwriter zip && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && docker-php-ext-enable gd mysqli pdo pdo_mysql && printf "\n" | pecl install imagick-3.6.0 && apt-get clean && rm -rf /var/lib/apt/lists/* && a2enmod rewrite' returned a non-zero code: 2, Code: 2
* Status: The command '/bin/sh -c adduser -D ${PHP_CLI_USER_NAME} --uid ${PHP_CLI_USER_ID} --shell /sbin/nologin && /usr/local/bin/install-composer.sh && apk update && apk add --no-cache curl-dev gettext-dev gmp-dev icu-dev libjpeg-turbo-dev libpng-dev libxml2-dev libzip-dev supervisor && docker-php-ext-configure gd --enable-gd && docker-php-ext-install bcmath bz2 calendar ctype curl dba dom exif fileinfo -j$(nproc) gd gettext gmp iconv intl mysqli opcache pdo pdo_mysql posix session simplexml soap sockets xml xmlwriter zip && rm -rf /var/cache/apk/*' returned a non-zero code: 2, Code: 2
[vagrant@lamp81-laravel-template containers]$
2022/01/22 19:35 GMT+9 https://github.com/php/php-src/issues/7986#issuecomment-1019179653 修正されたようだ。
まだ反映されていないのかも。 2022/01/22 10:27 (タイムゾーン不明) https://hub.docker.com/_/php?tab=tags&page=1&name=8.1.2-cli-alpine3.15
sockets は使っていない (はず) ので、それを外して先に進めよう。