Skip to content

Instantly share code, notes, and snippets.

@jerrac
Created December 14, 2018 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerrac/cc260053fc411003160e6b89532e1cff to your computer and use it in GitHub Desktop.
Save jerrac/cc260053fc411003160e6b89532e1cff to your computer and use it in GitHub Desktop.
php pthreads not compiling on new 7.3.0-zts docker images, just change the image tag to test.
$ docker build .
Sending build context to Docker daemon   2.56kB
Step 1/3 : FROM php:7.2.13-zts
 ---> 51a221079be4
Step 2/3 : RUN apt-get update   && apt-get -y install git   && rm -rf /var/lib/apt/lists/*
 ---> Running in 3226df121e89
Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security-cdn.debian.org/debian-security buster/updates InRelease [38.3 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [461 kB]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:5 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster InRelease [154 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [47.6 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:10 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7784 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7089 kB]
Fetched 15.9 MB in 3s (4438 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  git-man less libcurl3-gnutls liberror-perl libexpat1 libpopt0 libx11-6
  libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 openssh-client rsync
  xauth
Suggested packages:
  gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn keychain
  libpam-ssh monkeysphere ssh-askpass openssh-server
The following NEW packages will be installed:
  git git-man less libcurl3-gnutls liberror-perl libexpat1 libpopt0 libx11-6
  libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 openssh-client rsync
  xauth
0 upgraded, 17 newly installed, 0 to remove and 5 not upgraded.
Need to get 8677 kB of archives.
After this operation, 41.5 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcurl3-gnutls amd64 7.52.1-5+deb9u8 [290 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libexpat1 amd64 2.2.0-2+deb9u1 [83.4 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liberror-perl all 0.17024-1 [26.9 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git-man all 1:2.11.0-3+deb9u4 [1433 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git amd64 1:2.11.0-3+deb9u4 [4167 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10+b2 [49.4 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 less amd64 481-2.1 [126 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 openssh-client amd64 1:7.4p1-10+deb9u4 [778 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxcb1 amd64 1.12-1 [133 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-data all 2:1.6.4-3+deb9u1 [287 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-6 amd64 2:1.6.4-3+deb9u1 [748 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxmuu1 amd64 2:1.1.2-2 [23.5 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 rsync amd64 3.1.2-1+deb9u1 [393 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 xauth amd64 1:1.0.9-1+b2 [39.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 8677 kB in 0s (17.9 MB/s)
Selecting previously unselected package libcurl3-gnutls:amd64.
(Reading database ... 12256 files and directories currently installed.)
Preparing to unpack .../00-libcurl3-gnutls_7.52.1-5+deb9u8_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../01-libexpat1_2.2.0-2+deb9u1_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.0-2+deb9u1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../02-liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../03-git-man_1%3a2.11.0-3+deb9u4_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package git.
Preparing to unpack .../04-git_1%3a2.11.0-3+deb9u4_amd64.deb ...
Unpacking git (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../05-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libpopt0:amd64.
Preparing to unpack .../06-libpopt0_1.16-10+b2_amd64.deb ...
Unpacking libpopt0:amd64 (1.16-10+b2) ...
Selecting previously unselected package less.
Preparing to unpack .../07-less_481-2.1_amd64.deb ...
Unpacking less (481-2.1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../08-openssh-client_1%3a7.4p1-10+deb9u4_amd64.deb ...
Unpacking openssh-client (1:7.4p1-10+deb9u4) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../09-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../10-libxcb1_1.12-1_amd64.deb ...
Unpacking libxcb1:amd64 (1.12-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../11-libx11-data_2%3a1.6.4-3+deb9u1_all.deb ...
Unpacking libx11-data (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../12-libx11-6_2%3a1.6.4-3+deb9u1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../13-libxext6_2%3a1.3.3-1+b2_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1+b2) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../14-libxmuu1_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.2-2) ...
Selecting previously unselected package rsync.
Preparing to unpack .../15-rsync_3.1.2-1+deb9u1_amd64.deb ...
Unpacking rsync (3.1.2-1+deb9u1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../16-xauth_1%3a1.0.9-1+b2_amd64.deb ...
Unpacking xauth (1:1.0.9-1+b2) ...
Setting up git-man (1:2.11.0-3+deb9u4) ...
Setting up libpopt0:amd64 (1.16-10+b2) ...
Setting up libexpat1:amd64 (2.2.0-2+deb9u1) ...
Setting up less (481-2.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up liberror-perl (0.17024-1) ...
Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Setting up rsync (3.1.2-1+deb9u1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up openssh-client (1:7.4p1-10+deb9u4) ...
Setting up git (1:2.11.0-3+deb9u4) ...
Setting up libx11-data (2:1.6.4-3+deb9u1) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libxcb1:amd64 (1.12-1) ...
Setting up libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Setting up libxmuu1:amd64 (2:1.1.2-2) ...
Setting up libxext6:amd64 (2:1.3.3-1+b2) ...
Setting up xauth (1:1.0.9-1+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Removing intermediate container 3226df121e89
 ---> fc60546374a9
Step 3/3 : RUN cd /opt   && git clone https://github.com/krakjoe/pthreads.git   && cd pthreads   && phpize && ./configure && make && make install   && docker-php-ext-enable pthreads
 ---> Running in 4120c69ee77f
Cloning into 'pthreads'...
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
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 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 whether cc understands -c and -o together... yes
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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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-zts-20170718
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable pthreads... yes, shared
checking whether to enable AddressSanitizer for pthreads... no
checking whether to enable dmalloc for pthreads... no
checking for ZTS... ok
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: creating ./config.status
config.status: creating config.h
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/php_pthreads.c -o php_pthreads.lo
mkdir .libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/php_pthreads.c  -fPIC -DPIC -o .libs/php_pthreads.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/monitor.c -o src/monitor.lo
mkdir src/.libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/monitor.c  -fPIC -DPIC -o src/.libs/monitor.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/stack.c -o src/stack.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/stack.c  -fPIC -DPIC -o src/.libs/stack.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/globals.c -o src/globals.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/globals.c  -fPIC -DPIC -o src/.libs/globals.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/prepare.c -o src/prepare.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/prepare.c  -fPIC -DPIC -o src/.libs/prepare.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/store.c -o src/store.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/store.c  -fPIC -DPIC -o src/.libs/store.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/resources.c -o src/resources.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/resources.c  -fPIC -DPIC -o src/.libs/resources.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/handlers.c -o src/handlers.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/handlers.c  -fPIC -DPIC -o src/.libs/handlers.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/object.c -o src/object.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/object.c  -fPIC -DPIC -o src/.libs/object.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/socket.c -o src/socket.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/socket.c  -fPIC -DPIC -o src/.libs/socket.o
/bin/bash /opt/pthreads/libtool --mode=link cc -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -o pthreads.la -export-dynamic -avoid-version -prefer-pic -module -rpath /opt/pthreads/modules  php_pthreads.lo src/monitor.lo src/stack.lo src/globals.lo src/prepare.lo src/store.lo src/resources.lo src/handlers.lo src/object.lo src/socket.lo
cc -shared  .libs/php_pthreads.o src/.libs/monitor.o src/.libs/stack.o src/.libs/globals.o src/.libs/prepare.o src/.libs/store.o src/.libs/resources.o src/.libs/handlers.o src/.libs/object.o src/.libs/socket.o   -Wl,-soname -Wl,pthreads.so -o .libs/pthreads.so
creating pthreads.la
(cd .libs && rm -f pthreads.la && ln -s ../pthreads.la pthreads.la)
/bin/bash /opt/pthreads/libtool --mode=install cp ./pthreads.la /opt/pthreads/modules
cp ./.libs/pthreads.so /opt/pthreads/modules/pthreads.so
cp ./.libs/pthreads.lai /opt/pthreads/modules/pthreads.la
PATH="$PATH:/sbin" ldconfig -n /opt/pthreads/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/pthreads/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-zts-20170718/
Removing intermediate container 4120c69ee77f
 ---> 0c2d7777e84b
Successfully built 0c2d7777e84b
$ docker build .
Sending build context to Docker daemon   2.56kB
Step 1/3 : FROM php:7.3.0-zts
 ---> 278e32dc5f51
Step 2/3 : RUN apt-get update   && apt-get -y install git   && rm -rf /var/lib/apt/lists/*
 ---> Running in 020eda0b4bd6
Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security-cdn.debian.org/debian-security buster/updates InRelease [38.3 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [461 kB]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:5 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:6 http://cdn-fastly.deb.debian.org/debian buster InRelease [154 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [47.6 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7784 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7089 kB]
Fetched 15.9 MB in 3s (4444 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  git-man less libcurl3-gnutls liberror-perl libexpat1 libpopt0 libx11-6
  libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 openssh-client rsync
  xauth
Suggested packages:
  gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn keychain
  libpam-ssh monkeysphere ssh-askpass openssh-server
The following NEW packages will be installed:
  git git-man less libcurl3-gnutls liberror-perl libexpat1 libpopt0 libx11-6
  libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 openssh-client rsync
  xauth
0 upgraded, 17 newly installed, 0 to remove and 5 not upgraded.
Need to get 8677 kB of archives.
After this operation, 41.5 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcurl3-gnutls amd64 7.52.1-5+deb9u8 [290 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libexpat1 amd64 2.2.0-2+deb9u1 [83.4 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liberror-perl all 0.17024-1 [26.9 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git-man all 1:2.11.0-3+deb9u4 [1433 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 git amd64 1:2.11.0-3+deb9u4 [4167 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10+b2 [49.4 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 less amd64 481-2.1 [126 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 openssh-client amd64 1:7.4p1-10+deb9u4 [778 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxcb1 amd64 1.12-1 [133 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-data all 2:1.6.4-3+deb9u1 [287 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libx11-6 amd64 2:1.6.4-3+deb9u1 [748 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxmuu1 amd64 2:1.1.2-2 [23.5 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 rsync amd64 3.1.2-1+deb9u1 [393 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 xauth amd64 1:1.0.9-1+b2 [39.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 8677 kB in 0s (18.9 MB/s)
Selecting previously unselected package libcurl3-gnutls:amd64.
(Reading database ... 12256 files and directories currently installed.)
Preparing to unpack .../00-libcurl3-gnutls_7.52.1-5+deb9u8_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../01-libexpat1_2.2.0-2+deb9u1_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.0-2+deb9u1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../02-liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../03-git-man_1%3a2.11.0-3+deb9u4_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package git.
Preparing to unpack .../04-git_1%3a2.11.0-3+deb9u4_amd64.deb ...
Unpacking git (1:2.11.0-3+deb9u4) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../05-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libpopt0:amd64.
Preparing to unpack .../06-libpopt0_1.16-10+b2_amd64.deb ...
Unpacking libpopt0:amd64 (1.16-10+b2) ...
Selecting previously unselected package less.
Preparing to unpack .../07-less_481-2.1_amd64.deb ...
Unpacking less (481-2.1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../08-openssh-client_1%3a7.4p1-10+deb9u4_amd64.deb ...
Unpacking openssh-client (1:7.4p1-10+deb9u4) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../09-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../10-libxcb1_1.12-1_amd64.deb ...
Unpacking libxcb1:amd64 (1.12-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../11-libx11-data_2%3a1.6.4-3+deb9u1_all.deb ...
Unpacking libx11-data (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../12-libx11-6_2%3a1.6.4-3+deb9u1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../13-libxext6_2%3a1.3.3-1+b2_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1+b2) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../14-libxmuu1_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.2-2) ...
Selecting previously unselected package rsync.
Preparing to unpack .../15-rsync_3.1.2-1+deb9u1_amd64.deb ...
Unpacking rsync (3.1.2-1+deb9u1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../16-xauth_1%3a1.0.9-1+b2_amd64.deb ...
Unpacking xauth (1:1.0.9-1+b2) ...
Setting up git-man (1:2.11.0-3+deb9u4) ...
Setting up libpopt0:amd64 (1.16-10+b2) ...
Setting up libexpat1:amd64 (2.2.0-2+deb9u1) ...
Setting up less (481-2.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up liberror-perl (0.17024-1) ...
Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Setting up rsync (3.1.2-1+deb9u1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up openssh-client (1:7.4p1-10+deb9u4) ...
Setting up git (1:2.11.0-3+deb9u4) ...
Setting up libx11-data (2:1.6.4-3+deb9u1) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libxcb1:amd64 (1.12-1) ...
Setting up libx11-6:amd64 (2:1.6.4-3+deb9u1) ...
Setting up libxmuu1:amd64 (2:1.1.2-2) ...
Setting up libxext6:amd64 (2:1.3.3-1+b2) ...
Setting up xauth (1:1.0.9-1+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Removing intermediate container 020eda0b4bd6
 ---> e65792a97fc7
Step 3/3 : RUN cd /opt   && git clone https://github.com/krakjoe/pthreads.git   && cd pthreads   && phpize && ./configure && make && make install   && docker-php-ext-enable pthreads
 ---> Running in e6ba1d0a0a4f
Cloning into 'pthreads'...
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
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 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 whether cc understands -c and -o together... yes
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-zts-20180731
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable pthreads... yes, shared
checking whether to enable AddressSanitizer for pthreads... no
checking whether to enable dmalloc for pthreads... no
checking for ZTS... ok
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: creating ./config.status
config.status: creating config.h
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/php_pthreads.c -o php_pthreads.lo
mkdir .libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/php_pthreads.c  -fPIC -DPIC -o .libs/php_pthreads.o
/opt/pthreads/php_pthreads.c: In function 'zm_startup_pthreads':
/opt/pthreads/php_pthreads.c:750:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  zend_handlers = zend_get_std_object_handlers();
                ^
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/monitor.c -o src/monitor.lo
mkdir src/.libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/monitor.c  -fPIC -DPIC -o src/.libs/monitor.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/stack.c -o src/stack.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/stack.c  -fPIC -DPIC -o src/.libs/stack.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/globals.c -o src/globals.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/globals.c  -fPIC -DPIC -o src/.libs/globals.o
/bin/bash /opt/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /opt/pthreads/src/prepare.c -o src/prepare.lo
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/pthreads -DPHP_ATOM_INC -I/opt/pthreads/include -I/opt/pthreads/main -I/opt/pthreads -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/opt/pthreads/. -DHAVE_CONFIG_H -g -O2 -c /opt/pthreads/src/prepare.c  -fPIC -DPIC -o src/.libs/prepare.o
/opt/pthreads/src/prepare.c: In function 'prepare_class_handlers':
/opt/pthreads/src/prepare.c:196:10: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  prepared->iterator_funcs = candidate->iterator_funcs;
          ^~
/opt/pthreads/src/prepare.c:196:38: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  prepared->iterator_funcs = candidate->iterator_funcs;
                                      ^~
/opt/pthreads/src/prepare.c: In function 'prepare_class_interceptors':
/opt/pthreads/src/prepare.c:243:18: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  memcpy(&prepared->iterator_funcs, &candidate->iterator_funcs, sizeof(zend_class_iterator_funcs));
                  ^~
/opt/pthreads/src/prepare.c:243:46: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  memcpy(&prepared->iterator_funcs, &candidate->iterator_funcs, sizeof(zend_class_iterator_funcs));
                                              ^~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:245:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_new_iterator);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:245:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_new_iterator);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:245:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_new_iterator);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:246:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_valid);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:246:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_valid);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:246:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_valid);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:247:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_current);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:247:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_current);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:247:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_current);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:248:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_key);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:248:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_key);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:248:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_key);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:249:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_next);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:249:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_next);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:249:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_next);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:237:15: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
  if (candidate->iterator_funcs.f) { \
               ^
/opt/pthreads/src/prepare.c:250:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_rewind);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:238:11: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
   prepared->iterator_funcs.f = zend_hash_index_find_ptr( \
           ^
/opt/pthreads/src/prepare.c:250:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_rewind);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:239:49: error: 'zend_class_entry {aka struct _zend_class_entry}' has no member named 'iterator_funcs'; did you mean 'iterator_funcs_ptr'?
    &PTHREADS_ZG(resolve), (zend_ulong) candidate->iterator_funcs.f); \
                                                 ^
/opt/pthreads/src/prepare.c:250:2: note: in expansion of macro 'SET_ITERATOR_FUNC'
  SET_ITERATOR_FUNC(zf_rewind);
  ^~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c: In function 'pthreads_prepare_constants':
/opt/pthreads/src/prepare.c:585:14: error: 'zend_constant {aka struct _zend_constant}' has no member named 'flags'
      constant.flags = zconstant->flags;
              ^
/opt/pthreads/src/prepare.c:585:32: error: 'zend_constant {aka struct _zend_constant}' has no member named 'flags'
      constant.flags = zconstant->flags;
                                ^~
/opt/pthreads/src/prepare.c:586:14: error: 'zend_constant {aka struct _zend_constant}' has no member named 'module_number'
      constant.module_number = zconstant->module_number;
              ^
/opt/pthreads/src/prepare.c:586:40: error: 'zend_constant {aka struct _zend_constant}' has no member named 'module_number'
      constant.module_number = zconstant->module_number;
                                        ^~
/opt/pthreads/src/prepare.c: In function 'pthreads_preparation_copy_trait_alias':
/opt/pthreads/src/prepare.c:793:6: error: used struct type value where scalar is required
  if (alias->trait_method) {
      ^~~~~
/opt/pthreads/src/prepare.c:794:81: error: incompatible type for argument 2 of 'pthreads_preparation_copy_trait_method_reference'
   copy->trait_method = pthreads_preparation_copy_trait_method_reference(thread, alias->trait_method);
                                                                                 ^~~~~
/opt/pthreads/src/prepare.c:47:39: note: expected 'zend_trait_method_reference * {aka struct _zend_trait_method_reference *}' but argument is of type 'zend_trait_method_reference {aka struct _zend_trait_method_reference}'
 static  zend_trait_method_reference * pthreads_preparation_copy_trait_method_reference(pthreads_object_t* thread, zend_trait_method_reference *reference);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c: In function 'pthreads_preparation_copy_trait_precedence':
/opt/pthreads/src/prepare.c:810:80: error: incompatible type for argument 2 of 'pthreads_preparation_copy_trait_method_reference'
  copy->trait_method = pthreads_preparation_copy_trait_method_reference(thread, precedence->trait_method);
                                                                                ^~~~~~~~~~
/opt/pthreads/src/prepare.c:47:39: note: expected 'zend_trait_method_reference * {aka struct _zend_trait_method_reference *}' but argument is of type 'zend_trait_method_reference {aka struct _zend_trait_method_reference}'
 static  zend_trait_method_reference * pthreads_preparation_copy_trait_method_reference(pthreads_object_t* thread, zend_trait_method_reference *reference);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pthreads/src/prepare.c:811:16: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
  if (precedence->exclude_from_classes) {
                ^~
/opt/pthreads/src/prepare.c:812:7: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
       ^~
In file included from /usr/local/include/php/Zend/zend.h:29:0,
                 from /usr/local/include/php/main/php.h:33,
                 from ./src/pthreads.h:37,
                 from ./src/prepare.h:22,
                 from /opt/pthreads/src/prepare.c:22:
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:110:24: note: in definition of macro '_emalloc'
  (__builtin_constant_p(size) ? \
                        ^~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:100:4: note: in definition of macro '_ZEND_BIN_ALLOCATOR_SELECTOR_START'
  ((size <= _size) ? _emalloc_ ## _size() :
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:105:2: note: in expansion of macro 'ZEND_MM_BINS_INFO'
  ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR_SELECTOR_START, size, y) \
  ^~~~~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:111:3: note: in expansion of macro 'ZEND_ALLOCATOR'
   ZEND_ALLOCATOR(size) \
   ^~~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:106:4: note: in definition of macro 'ZEND_ALLOCATOR'
  ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
    ^~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:106:53: note: in definition of macro 'ZEND_ALLOCATOR'
  ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
                                                     ^~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:106:75: note: in definition of macro 'ZEND_ALLOCATOR'
  ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
                                                                           ^~~~
/usr/local/include/php/Zend/zend_alloc.h:157:28: note: in expansion of macro '_emalloc'
 #define emalloc(size)      _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                            ^~~~~~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:812:52: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                                    ^
/usr/local/include/php/Zend/zend_alloc.h:113:12: note: in definition of macro '_emalloc'
   _emalloc(size) \
            ^~~~
/opt/pthreads/src/prepare.c:812:32: note: in expansion of macro 'emalloc'
   copy->exclude_from_classes = emalloc(sizeof(*copy->exclude_from_classes));
                                ^~~~~~~
/opt/pthreads/src/prepare.c:813:7: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes->ce = pthreads_prepared_entry(
       ^~
/opt/pthreads/src/prepare.c:814:22: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
    thread, precedence->exclude_from_classes->ce
                      ^~
/opt/pthreads/src/prepare.c:816:7: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes->class_name = zend_string_new(precedence->exclude_from_classes->class_name);
       ^~
/opt/pthreads/src/prepare.c:816:70: error: 'zend_trait_precedence {aka struct _zend_trait_precedence}' has no member named 'exclude_from_classes'; did you mean 'exclude_class_names'?
   copy->exclude_from_classes->class_name = zend_string_new(precedence->exclude_from_classes->class_name);
                                                                      ^~
/opt/pthreads/src/prepare.c: In function 'pthreads_preparation_copy_trait_method_reference':
/opt/pthreads/src/prepare.c:830:6: error: 'zend_trait_method_reference {aka struct _zend_trait_method_reference}' has no member named 'ce'
  copy->ce = pthreads_prepared_entry(thread, (zend_class_entry*) reference->ce);
      ^~
/opt/pthreads/src/prepare.c:830:74: error: 'zend_trait_method_reference {aka struct _zend_trait_method_reference}' has no member named 'ce'
  copy->ce = pthreads_prepared_entry(thread, (zend_class_entry*) reference->ce);
                                                                          ^~
Makefile:204: recipe for target 'src/prepare.lo' failed
make: *** [src/prepare.lo] Error 1
The command '/bin/sh -c cd /opt   && git clone https://github.com/krakjoe/pthreads.git   && cd pthreads   && phpize && ./configure && make && make install   && docker-php-ext-enable pthreads' returned a non-zero code: 2
FROM php:7.2.13-zts
RUN apt-get update \
&& apt-get -y install git \
&& rm -rf /var/lib/apt/lists/*
RUN cd /opt \
&& git clone https://github.com/krakjoe/pthreads.git \
&& cd pthreads \
&& phpize && ./configure && make && make install \
&& docker-php-ext-enable pthreads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment