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

build php-worker fails while installing amqp #3326

Closed
Silassiai opened this issue Dec 13, 2022 · 1 comment
Closed

build php-worker fails while installing amqp #3326

Silassiai opened this issue Dec 13, 2022 · 1 comment

Comments

@Silassiai
Copy link
Contributor

Silassiai commented Dec 13, 2022

Description:

@tancou (#3148) fixed php-worker build failure when installing amqp using php 8.x.
I am still getting the bellow error (on mac only, on my ubuntu 20.04 it works):

------
executor failed running [/bin/sh -c if [ ${INSTALL_AMQP} = true ]; then   docker-php-ext-install sockets;   apk --update add -q rabbitmq-c rabbitmq-c-dev &&   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then     printf "\n" | pecl install amqp-1.11.0;   else     printf "\n" | pecl install amqp;   fi &&     docker-php-ext-enable amqp &&     apk del -q rabbitmq-c-dev;     php -m | grep -oiE '^amqp$'   ;fi]: exit code: 1
ERROR: Service 'php-worker' failed to build : Build failed

Expected Behavior:

Build should not fail in PHP 8.x

Context information:

Output of git rev-parse HEAD

1df09d5fd22d0d94e4ece133ba2f8466a891bfe9

Output of docker version

20.10.17

Output of docker-compose version

1.29.2

System info: Mac, Windows or Linux. Include which disto/version

Mac 12.6

Steps to reproduce the issue:

  1. set PHP_WORKER_INSTALL_AMQP=true in .env
  2. run docker-compose build --no-cache php-worker

Stacktrace & Additional info:

 => ERROR [21/39] RUN if [ true = true ]; then   docker-php-ext-install sockets;   apk --update add -q rabbitmq-c rabbitmq-c-d  14.3s
------
 > [21/39] RUN if [ true = true ]; then   docker-php-ext-install sockets;   apk --update add -q rabbitmq-c rabbitmq-c-dev &&   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then     printf "\n" | pecl install amqp-1.11.0;   else     printf "\n" | pecl install amqp;   fi &&     docker-php-ext-enable amqp &&     apk del -q rabbitmq-c-dev;     php -m | grep -oiE '^amqp$'   ;fi:
#24 2.958 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#24 3.234 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#24 3.755 (1/4) Installing dpkg-dev (1.21.9-r0)
#24 3.828 (2/4) Installing dpkg (1.21.9-r0)
#24 3.920 (3/4) Installing re2c (3.0-r0)
#24 4.072 (4/4) Installing .phpize-deps (20221213.112428)
#24 4.074 Executing busybox-1.35.0-r29.trigger
#24 4.088 OK: 418 MiB in 111 packages
#24 4.219 Configuring for:
#24 4.219 PHP Api Version:         20210902
#24 4.219 Zend Module Api No:      20210902
#24 4.219 Zend Extension Api No:   420210902
#24 4.656 configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
#24 4.656 build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
#24 4.656 configure.ac:18: the top level
#24 4.656 configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
#24 4.656 configure.ac:161: You should run autoupdate.
#24 4.656 ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
#24 4.656 build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
#24 4.656 build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#24 4.656 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.656 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.656 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.656 configure.ac:161: the top level
#24 4.657 configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
#24 4.657 configure.ac:161: You should run autoupdate.
#24 4.657 ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
#24 4.657 lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
#24 4.657 lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
#24 4.657 ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
#24 4.657 ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
#24 4.657 build/libtool.m4:561: _LT_AC_LOCK is expanded from...
#24 4.657 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.657 build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.657 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.657 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.657 configure.ac:161: the top level
#24 4.657 configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.
#24 4.657 configure.ac:161: You should run autoupdate.
#24 4.657 ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
#24 4.657 lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
#24 4.657 lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
#24 4.657 ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
#24 4.657 ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
#24 4.657 build/libtool.m4:561: _LT_AC_LOCK is expanded from...
#24 4.657 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.657 build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.657 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.657 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.657 configure.ac:161: the top level
#24 4.657 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#24 4.657 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.657 build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.657 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.657 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.657 configure.ac:161: the top level
#24 4.657 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#24 4.657 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.657 build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
#24 4.657 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.657 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.657 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.657 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.658 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
#24 4.658 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.658 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.658 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.658 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.658 configure.ac:161: the top level
#24 4.659 configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
#24 4.659 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.659 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.659 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.659 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.659 configure.ac:161: the top level
#24 4.659 configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
#24 4.659 configure.ac:161: You should run autoupdate.
#24 4.659 ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
#24 4.659 build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.659 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.659 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.659 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.659 configure.ac:161: the top level
#24 4.659 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#24 4.659 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.659 build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.659 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.659 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.659 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.659 configure.ac:161: the top level
#24 4.659 configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
#24 4.659 build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
#24 4.659 build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
#24 4.659 build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
#24 4.659 build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
#24 4.659 build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
#24 4.659 build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
#24 4.659 configure.ac:161: the top level
#24 5.376 checking for grep that handles long lines and -e... /bin/grep
#24 5.418 checking for egrep... /bin/grep -E
#24 5.419 checking for a sed that does not truncate output... /bin/sed
#24 5.434 checking for pkg-config... /usr/bin/pkg-config
#24 5.435 checking pkg-config is at least version 0.9.0... yes
#24 5.436 checking for cc... cc
#24 5.460 checking whether the C compiler works... yes
#24 5.506 checking for C compiler default output file name... a.out
#24 5.507 checking for suffix of executables... 
#24 5.548 checking whether we are cross compiling... no
#24 5.593 checking for suffix of object files... o
#24 5.622 checking whether the compiler supports GNU C... yes
#24 5.648 checking whether cc accepts -g... yes
#24 5.678 checking for cc option to enable C11 features... none needed
#24 5.750 checking how to run the C preprocessor... cc -E
#24 5.809 checking for icc... no
#24 5.824 checking for suncc... no
#24 5.839 checking for system library directory... lib
#24 5.839 checking if compiler supports -Wl,-rpath,... yes
#24 5.882 checking build system type... x86_64-pc-linux-musl
#24 5.886 checking host system type... x86_64-pc-linux-musl
#24 5.886 checking target system type... x86_64-pc-linux-musl
#24 5.939 checking for PHP prefix... /usr/local
#24 5.939 checking for PHP includes... -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
#24 5.939 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20210902
#24 5.940 checking for PHP installed headers prefix... /usr/local/include/php
#24 5.940 checking if debug is enabled... no
#24 5.958 checking if zts is enabled... no
#24 5.976 checking for gawk... no
#24 5.976 checking for nawk... no
#24 5.976 checking for awk... awk
#24 5.977 checking if awk is broken... no
#24 5.978 checking whether to enable sockets support... yes, shared
#24 5.979 checking for hstrerror... yes
#24 6.020 checking for if_nametoindex... yes
#24 6.062 checking for if_indextoname... yes
#24 6.104 checking for stdio.h... yes
#24 6.129 checking for stdlib.h... yes
#24 6.157 checking for string.h... yes
#24 6.188 checking for inttypes.h... yes
#24 6.220 checking for stdint.h... yes
#24 6.251 checking for strings.h... yes
#24 6.283 checking for sys/stat.h... yes
#24 6.316 checking for sys/types.h... yes
#24 6.347 checking for unistd.h... yes
#24 6.380 checking for netinet/tcp.h... yes
#24 6.425 checking for sys/un.h... yes
#24 6.461 checking for sys/sockio.h... no
#24 6.495 checking for field ss_family in struct sockaddr_storage... yes
#24 6.531 checking if getaddrinfo supports AI_V4MAPPED... yes
#24 6.565 checking if getaddrinfo supports AI_ALL... yes
#24 6.600 checking if getaddrinfo supports AI_IDN... no
#24 6.625 checking if ancillary credentials uses ucred... yes
#24 6.657 checking if ancillary credentials uses cmsgcred... no
#24 6.687 checking for a sed that does not truncate output... /bin/sed
#24 6.689 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
#24 6.699 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
#24 6.701 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
#24 6.701 checking for BSD-compatible nm... /usr/bin/nm -B
#24 6.703 checking whether ln -s works... yes
#24 6.703 checking how to recognize dependent libraries... pass_all
#24 6.723 checking for dlfcn.h... yes
#24 6.760 checking the maximum length of command line arguments... 98304
#24 6.762 checking command to parse /usr/bin/nm -B output from cc object... ok
#24 6.829 checking for objdir... .libs
#24 6.832 checking for ar... ar
#24 6.832 checking for ranlib... ranlib
#24 6.833 checking for strip... strip
#24 6.890 checking if cc supports -fno-rtti -fno-exceptions... no
#24 6.911 checking for cc option to produce PIC... -fPIC
#24 6.912 checking if cc PIC flag -fPIC works... yes
#24 6.934 checking if cc static flag -static works... yes
#24 6.976 checking if cc supports -c -o file.o... yes
#24 7.008 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
#24 7.025 checking whether -lc should be explicitly linked in... no
#24 7.058 checking dynamic linker characteristics... GNU/Linux ld.so
#24 7.067 checking how to hardcode library paths into programs... immediate
#24 7.068 checking whether stripping libraries is possible... yes
#24 7.071 checking if libtool supports shared libraries... yes
#24 7.071 checking whether to build shared libraries... yes
#24 7.071 checking whether to build static libraries... no
#24 7.156 
#24 7.156 creating libtool
#24 7.213 appending configuration tag "CXX" to libtool
#24 7.290 configure: patching config.h.in
#24 7.293 configure: creating ./config.status
#24 7.331 config.status: creating config.h
#24 7.372 /bin/sh /usr/src/php/ext/sockets/libtool --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockets.c -o sockets.lo  -MMD -MF sockets.dep -MT sockets.lo
#24 7.433 mkdir .libs
#24 7.434  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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 -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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockets.c -MMD -MF sockets.dep -MT sockets.lo  -fPIC -DPIC -o .libs/sockets.o
#24 9.047 /bin/sh /usr/src/php/ext/sockets/libtool --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/multicast.c -o multicast.lo  -MMD -MF multicast.dep -MT multicast.lo
#24 9.115  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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 -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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/multicast.c -MMD -MF multicast.dep -MT multicast.lo  -fPIC -DPIC -o .libs/multicast.o
#24 9.633 /bin/sh /usr/src/php/ext/sockets/libtool --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/conversions.c -o conversions.lo  -MMD -MF conversions.dep -MT conversions.lo
#24 9.747  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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 -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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/conversions.c -MMD -MF conversions.dep -MT conversions.lo  -fPIC -DPIC -o .libs/conversions.o
#24 10.98 /bin/sh /usr/src/php/ext/sockets/libtool --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockaddr_conv.c -o sockaddr_conv.lo  -MMD -MF sockaddr_conv.dep -MT sockaddr_conv.lo
#24 11.04  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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 -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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockaddr_conv.c -MMD -MF sockaddr_conv.dep -MT sockaddr_conv.lo  -fPIC -DPIC -o .libs/sockaddr_conv.o
#24 11.36 /bin/sh /usr/src/php/ext/sockets/libtool --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sendrecvmsg.c -o sendrecvmsg.lo  -MMD -MF sendrecvmsg.dep -MT sendrecvmsg.lo
#24 11.42  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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 -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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sendrecvmsg.c -MMD -MF sendrecvmsg.dep -MT sendrecvmsg.lo  -fPIC -DPIC -o .libs/sendrecvmsg.o
#24 11.79 /bin/sh /usr/src/php/ext/sockets/libtool --mode=link cc -shared -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -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  -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  -Wl,-O1 -pie  -o sockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/sockets/modules  sockets.lo multicast.lo conversions.lo sockaddr_conv.lo sendrecvmsg.lo 
#24 11.85 cc -shared  .libs/sockets.o .libs/multicast.o .libs/conversions.o .libs/sockaddr_conv.o .libs/sendrecvmsg.o   -Wl,-O1 -Wl,-soname -Wl,sockets.so -o .libs/sockets.so
#24 11.87 creating sockets.la
#24 11.87 (cd .libs && rm -f sockets.la && ln -s ../sockets.la sockets.la)
#24 11.87 /bin/sh /usr/src/php/ext/sockets/libtool --mode=install cp ./sockets.la /usr/src/php/ext/sockets/modules
#24 11.89 cp ./.libs/sockets.so /usr/src/php/ext/sockets/modules/sockets.so
#24 11.90 cp ./.libs/sockets.lai /usr/src/php/ext/sockets/modules/sockets.la
#24 11.91 PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/sockets/modules
#24 11.91 ----------------------------------------------------------------------
#24 11.91 Libraries have been installed in:
#24 11.91    /usr/src/php/ext/sockets/modules
#24 11.91 
#24 11.91 If you ever happen to want to link against installed libraries
#24 11.91 in a given directory, LIBDIR, you must either use libtool, and
#24 11.91 specify the full pathname of the library, or use the `-LLIBDIR'
#24 11.91 flag during linking and do at least one of the following:
#24 11.91    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
#24 11.91      during execution
#24 11.91    - add LIBDIR to the `LD_RUN_PATH' environment variable
#24 11.91      during linking
#24 11.91    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
#24 11.91 
#24 11.91 See any operating system documentation about shared libraries for
#24 11.91 more information, such as the ld(1) and ld.so(8) manual pages.
#24 11.91 ----------------------------------------------------------------------
#24 11.91 
#24 11.91 Build complete.
#24 11.91 Don't forget to run 'make test'.
#24 11.91 
#24 11.93 + strip --strip-all modules/sockets.so
#24 11.96 Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
#24 12.04 Installing header files:          /usr/local/include/php/
#24 12.13 find . -name \*.gcno -o -name \*.gcda | xargs rm -f
#24 12.13 find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f
#24 12.14 find . -name \*.la -o -name \*.a | xargs rm -f
#24 12.14 find . -name \*.so | xargs rm -f
#24 12.14 find . -name .libs -a -type d|xargs rm -rf
#24 12.15 rm -f libphp.la      modules/* libs/*
#24 12.15 rm -f ext/opcache/jit/zend_jit_x86.c
#24 12.15 rm -f ext/opcache/jit/zend_jit_arm64.c
#24 12.45 (1/4) Purging .phpize-deps (20221213.112428)
#24 12.45 (2/4) Purging dpkg-dev (1.21.9-r0)
#24 12.46 (3/4) Purging dpkg (1.21.9-r0)
#24 12.46 (4/4) Purging re2c (3.0-r0)
#24 12.46 Executing busybox-1.35.0-r29.trigger
#24 12.47 OK: 414 MiB in 107 packages
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/aes.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/asn1.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/asn1t.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/bio.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/blowfish.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/bn.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/buffer.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/camellia.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/cast.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/cmac.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/cms.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/comp.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/conf.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/conf_api.h owned by libressl-dev-3.6.1-r0.
#24 14.04 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/crypto.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ct.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/des.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/dh.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/dsa.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/dtls1.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ec.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ecdh.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ecdsa.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/engine.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/err.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/evp.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/hmac.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/idea.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/kdf.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/lhash.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/md4.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/md5.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/modes.h owned by libressl-dev-3.6.1-r0.
#24 14.05 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/obj_mac.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/objects.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ocsp.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/opensslconf.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/opensslv.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ossl_typ.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/pem.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/pem2.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/pkcs12.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/pkcs7.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/rand.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/rc2.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/rc4.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ripemd.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/rsa.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/safestack.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/sha.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/srtp.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ssl.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ssl2.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ssl3.h owned by libressl-dev-3.6.1-r0.
#24 14.06 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/stack.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/tls1.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ts.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/txt_db.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/ui.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/whrlpool.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/x509.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/x509_vfy.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/include/openssl/x509v3.h owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/lib/libcrypto.so owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/lib/libssl.so owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/lib/pkgconfig/libcrypto.pc owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/lib/pkgconfig/libssl.pc owned by libressl-dev-3.6.1-r0.
#24 14.07 ERROR: openssl-dev-3.0.7-r0: trying to overwrite usr/lib/pkgconfig/openssl.pc owned by libressl-dev-3.6.1-r0.
------
executor failed running [/bin/sh -c if [ ${INSTALL_AMQP} = true ]; then   docker-php-ext-install sockets;   apk --update add -q rabbitmq-c rabbitmq-c-dev &&   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then     printf "\n" | pecl install amqp-1.11.0;   else     printf "\n" | pecl install amqp;   fi &&     docker-php-ext-enable amqp &&     apk del -q rabbitmq-c-dev;     php -m | grep -oiE '^amqp$'   ;fi]: exit code: 1
ERROR: Service 'php-worker' failed to build : Build failed
@jinmaodao116
Copy link

I have the same issue

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

No branches or pull requests

3 participants