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

Unable to install protobuf 3.20.0 for PHP with pecl: third_party/utf8_range/naive.loT: No such file or directory #9724

Closed
mlocati opened this issue Apr 2, 2022 · 13 comments · Fixed by #9727

Comments

@mlocati
Copy link
Contributor

mlocati commented Apr 2, 2022

What version of protobuf and what language are you using?
Version: 3.20.0RC2
Language: PHP

What operating system (Linux, Windows, ...) and version?
Linux, any version

What runtime / compiler are you using (e.g., python version or gcc version)
Installing protobuf via PECL

What did you do?
docker run --rm -it php:7.4-cli-bullseye pecl install protobuf-3.20.0

What did you expect to see
protobuf is compiled

What did you see instead?

downloading protobuf-3.20.0.tgz ...
Starting to download protobuf-3.20.0.tgz (171,197 bytes)
.....................................done: 171,197 bytes
24 source files, building
running: phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
building in /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0
running: /tmp/pear/temp/protobuf/configure --with-php-config=/usr/local/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
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
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable Protobuf extension... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/arena.c -o arena.lo
mkdir .libs
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/arena.c  -fPIC -DPIC -o .libs/arena.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/array.c -o array.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/array.c  -fPIC -DPIC -o .libs/array.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/convert.c -o convert.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/convert.c  -fPIC -DPIC -o .libs/convert.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/def.c -o def.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/def.c  -fPIC -DPIC -o .libs/def.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/map.c -o map.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/map.c  -fPIC -DPIC -o .libs/map.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/message.c -o message.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/message.c  -fPIC -DPIC -o .libs/message.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/names.c -o names.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/names.c  -fPIC -DPIC -o .libs/names.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/php-upb.c -o php-upb.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/php-upb.c  -fPIC -DPIC -o .libs/php-upb.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/protobuf.c -o protobuf.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/protobuf.c  -fPIC -DPIC -o .libs/protobuf.o
/bin/bash /tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/third_party/utf8_range/naive.c -o third_party/utf8_range/naive.lo
/tmp/pear/temp/pear-build-defaultuser1bDxlj/protobuf-3.20.0/libtool: line 1283: third_party/utf8_range/naive.loT: No such file or directory
mkdir third_party/utf8_range/.libs
mkdir: cannot create directory 'third_party/utf8_range/.libs': No such file or directory
make: *** [Makefile:209: third_party/utf8_range/naive.lo] Error 1
ERROR: `make' failed
@mlocati
Copy link
Contributor Author

mlocati commented Apr 2, 2022

The same on Alpine Linux:

By running

docker run --rm -it php:7.4-cli-alpine3.15 sh -c 'apk add -u $PHPIZE_DEPS && pecl install protobuf-3.20.0'

we have

fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/26) Upgrading zlib (1.2.11-r3 -> 1.2.12-r0)
(2/26) Installing m4 (1.4.18-r2)
(3/26) Installing libbz2 (1.0.8-r1)
(4/26) Installing perl (5.34.0-r1)
(5/26) Installing autoconf (2.71-r0)
(6/26) Installing dpkg (1.20.9-r0)
(7/26) Installing pkgconf (1.8.0-r0)
(8/26) Installing dpkg-dev (1.20.9-r0)
(9/26) Installing libmagic (5.41-r0)
(10/26) Installing file (5.41-r0)
(11/26) Installing libgcc (10.3.1_git20211027-r0)
(12/26) Installing libstdc++ (10.3.1_git20211027-r0)
(13/26) Installing binutils (2.37-r3)
(14/26) Installing libgomp (10.3.1_git20211027-r0)
(15/26) Installing libatomic (10.3.1_git20211027-r0)
(16/26) Installing libgphobos (10.3.1_git20211027-r0)
(17/26) Installing gmp (6.2.1-r1)
(18/26) Installing isl22 (0.22-r0)
(19/26) Installing mpfr4 (4.1.0-r0)
(20/26) Installing mpc1 (1.2.1-r0)
(21/26) Installing gcc (10.3.1_git20211027-r0)
(22/26) Installing musl-dev (1.2.2-r7)
(23/26) Installing libc-dev (0.7.2-r3)
(24/26) Installing g++ (10.3.1_git20211027-r0)
(25/26) Installing make (4.3-r0)
(26/26) Installing re2c (2.1.1-r0)
Executing busybox-1.34.1-r3.trigger
OK: 247 MiB in 57 packages
downloading protobuf-3.20.0.tgz ...
Starting to download protobuf-3.20.0.tgz (171,197 bytes)
.....................................done: 171,197 bytes
24 source files, building
running: phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2110: PHP_CONFIG_NICE is expanded from...
configure.ac:18: the top level
configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
build/libtool.m4:561: _LT_AC_LOCK is expanded from...
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
build/libtool.m4:561: _LT_AC_LOCK is expanded from...
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...
build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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'
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:161: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
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
build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...
build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:161: the top level
building in /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0
running: /tmp/pear/temp/protobuf/configure --with-php-config=/usr/local/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr/local
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
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable Protobuf extension... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/arena.c -o arena.lo
mkdir .libs
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/arena.c  -fPIC -DPIC -o .libs/arena.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/array.c -o array.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/array.c  -fPIC -DPIC -o .libs/array.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/convert.c -o convert.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/convert.c  -fPIC -DPIC -o .libs/convert.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/def.c -o def.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/def.c  -fPIC -DPIC -o .libs/def.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/map.c -o map.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/map.c  -fPIC -DPIC -o .libs/map.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/message.c -o message.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/message.c  -fPIC -DPIC -o .libs/message.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/names.c -o names.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/names.c  -fPIC -DPIC -o .libs/names.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/php-upb.c -o php-upb.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/php-upb.c  -fPIC -DPIC -o .libs/php-upb.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/protobuf.c -o protobuf.lo
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/protobuf.c  -fPIC -DPIC -o .libs/protobuf.o
/bin/sh /tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/third_party/utf8_range/naive.c -o third_party/utf8_range/naive.lo
/tmp/pear/temp/pear-build-defaultuserAogNLp/protobuf-3.20.0/libtool: line 1283: can't create third_party/utf8_range/naive.loT: nonexistent directory
mkdir third_party/utf8_range/.libs
mkdir: can't create directory 'third_party/utf8_range/.libs': No such file or directory
make: *** [Makefile:209: third_party/utf8_range/naive.lo] Error 1
ERROR: `make' failed

@remicollet
Copy link

A simple change in config.m4 should do the trick

PHP_ADD_BUILD_DIR($ext_builddir/third_party/utf8_range)

@andreladocruz
Copy link

+1

@mlocati
Copy link
Contributor Author

mlocati commented Apr 3, 2022

See #9727

@AndrewCustomSumIT
Copy link

I'm experiencing this error building a Docker image (loosely) defined as:

FROM php:7.4.28-fpm

# install the C implementation of protobuf
RUN pecl install protobuf \
 && docker-php-ext-install sockets \
 && docker-php-ext-enable protobuf

Which generates this error during the build:

...
 cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/protobuf/protobuf.c  -fPIC -DPIC -o .libs/protobuf.o
/bin/bash /tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/libtool --mode=compile cc -std=gnu99 -I. -I/tmp/pear/temp/protobuf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/include -I/tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/main -I/tmp/pear/temp/protobuf -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/protobuf/third_party/utf8_range/naive.c -o third_party/utf8_range/naive.lo
/tmp/pear/temp/pear-build-defaultuserWRGvcO/protobuf-3.20.0/libtool: line 1283: third_party/utf8_range/naive.loT: No such file or directory
mkdir third_party/utf8_range/.libs
mkdir: cannot create directory 'third_party/utf8_range/.libs': No such file or directory
make: *** [Makefile:209: third_party/utf8_range/naive.lo] Error 1
ERROR: `make' failed
...

I've fixed my build for now by rolling back to the specific version 3.19.4:

RUN pecl install protobuf-3.19.4

@mlocati
Copy link
Contributor Author

mlocati commented Apr 4, 2022

@AndrewCustomSumIT that's exactly the same error I reported above.

@Eugentis
Copy link

@mkruskal-google Could you clarify the reason for closing this issue?

As I can see from discussion for protobuf-3.20 it still be actual

@mlocati
Copy link
Contributor Author

mlocati commented Apr 13, 2022

@Eugentis this issue has been fixed by the pull request #9727

That fix is included in the 3.20.1RC1 version that has already been published on the pecl repository (see https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.1-rc1 and https://pecl.php.net/package-changelog.php?package=protobuf).

Since that version is marked as beta, pecl won't use it by default.
So, in order to install it, you need to specify it manually:

  • Use the specific version
    pecl install protobuf-3.20.1RC1
  • or use the "beta" flag
    pecl install protobuf-beta

@Eugentis
Copy link

@mlocati Thanks for information!

@mkruskal-google
Copy link
Member

Whoops, sorry for not clarifying that when I closed it! And thanks @mlocati :)

@mlocati
Copy link
Contributor Author

mlocati commented Apr 13, 2022

Well, for people that are used to use GitHub it's rather immediate to see what happened: we have this text at the top of this page:

immagine

But for sure occasional users may be a bit surprised

@setpill
Copy link

setpill commented Apr 18, 2022

Is there an ETA on 3.20.1 release?

@fowles
Copy link
Member

fowles commented Apr 18, 2022

This week

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

Successfully merging a pull request may close this issue.

8 participants