Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

​ PHP:7.4 (dev-lang/php-7.4.11:7.4::core-server-kit) won't compile


sibok

Question

PHP:7.4 (dev-lang/php-7.4.11:7.4::core-server-kit) won't compile ?

It looks like mysql_pdo is causing the build to fail.

Should I fill a bug? There's anything I can do to fix it? Thanks in advanced! ?

emerge --update --newuse --deep --with-bdeps=y @world --backtrack=30 --verbose-conflicts --keep-going 
 * Mounting 9000M of memory to /var/tmp/portage ...                                                                                                                       [ ok ]
 * emerging --update --newuse --deep --with-bdeps=y @world --backtrack=30 --verbose-conflicts --keep-going
emerge --update --newuse --deep --with-bdeps=y @world --backtrack=30 --verbose-conflicts --keep-going 
 * Mounting 9000M of memory to /var/tmp/portage ...                                                                                                                       [ ok ]
 * emerging --update --newuse --deep --with-bdeps=y @world --backtrack=30 --verbose-conflicts --keep-going

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-lang/php-7.4.11:7.4::core-server-kit [7.4.6:7.4::core-server-kit] USE="apache2 argon2 bzip2 cgi cli ctype curl exif fileinfo filter flatfile fpm gd iconv intl json mysql mysqli nls opcache pcntl pdo phar posix readline session simplexml sockets sodium spell sqlite ssl threads tidy tokenizer truetype unicode webp xml xmlreader xmlrpc xmlwriter xslt zip zlib -acl -bcmath -berkdb -calendar -cdb -cjk -coverage -debug -embed -enchant -ffi -firebird -ftp -gdbm -gmp -imap -inifile -iodbc -ipv6 -kerberos -ldap -ldap-sasl -libedit -libressl -lmdb -maintainer-zts -mhash -mssql -oci8-instant-client -odbc -phpdbg -postgres -qdbm (-selinux) -session-mm -sharedmem -snmp -soap -sysvipc -test -tokyocabinet -xpm" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-lang/php-7.4.11:7.4::core-server-kit [7.4.6:7.4::core-server-kit] USE="apache2 argon2 bzip2 cgi cli ctype curl exif fileinfo filter flatfile fpm gd iconv intl json mysql mysqli nls opcache pcntl pdo phar posix readline session simplexml sockets sodium spell sqlite ssl threads tidy tokenizer truetype unicode webp xml xmlreader xmlrpc xmlwriter xslt zip zlib -acl -bcmath -berkdb -calendar -cdb -cjk -coverage -debug -embed -enchant -ffi -firebird -ftp -gdbm -gmp -imap -inifile -iodbc -ipv6 -kerberos -ldap -ldap-sasl -libedit -libressl -lmdb -maintainer-zts -mhash -mssql -oci8-instant-client -odbc -phpdbg -postgres -qdbm (-selinux) -session-mm -sharedmem -snmp -soap -sysvipc -test -tokyocabinet -xpm" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

 

/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pdo_mysql/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo 
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pdo_mysql/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_driver.c -o ext/pdo_mysql/mysql_driver.lo 
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pdo_mysql/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_statement.c -o ext/pdo_mysql/mysql_statement.lo 
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -Iext/pdo_sqlite/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/pdo_sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo 
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -Iext/pdo_sqlite/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/sqlite_driver.c -o ext/pdo_sqlite/sqlite_driver.lo 
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/pdo_mysql.c:24:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/cli/ext -Iext/pdo_sqlite/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/sqlite_statement.c -o ext/pdo_sqlite/sqlite_statement.lo 
/bin/sh /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-gnu-gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/phar/ -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/phar/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/include -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/TSRM -I/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend  -D_REENTRANT -pthread  -I/usr/include -march=nehalem -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2 -fvisibility=hidden -pthread -Wall -Wno-strict-aliasing -DZTS   -prefer-pic -c /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/phar/util.c -o ext/phar/util.lo 
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_driver.c:25:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_statement.c:25:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd.h:61,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/php_pdo_mysql_int.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/pdo_mysql.c:30:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd_structs.h:314:2: error: unknown type name ‘MUTEX_T’
  314 |  MUTEX_T LOCK_access;
      |  ^~~~~~~
make: *** [Makefile:1226: ext/pdo_mysql/pdo_mysql.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd.h:61,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/php_pdo_mysql_int.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_driver.c:31:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd_structs.h:314:2: error: unknown type name ‘MUTEX_T’
  314 |  MUTEX_T LOCK_access;
      |  ^~~~~~~
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/pdo_sqlite.c:23:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
make: *** [Makefile:1228: ext/pdo_mysql/mysql_driver.lo] Error 1
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd.h:61,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/php_pdo_mysql_int.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_mysql/mysql_statement.c:31:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/mysqlnd/mysqlnd_structs.h:314:2: error: unknown type name ‘MUTEX_T’
  314 |  MUTEX_T LOCK_access;
      |  ^~~~~~~
make: *** [Makefile:1230: ext/pdo_mysql/mysql_statement.lo] Error 1
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/sqlite_driver.c:23:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
In file included from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_portability.h:47,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend_types.h:25,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/zend.h:27,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/main/php.h:33,
                 from /var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/ext/pdo_sqlite/sqlite_statement.c:23:
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:109:46: error: unknown type name ‘THREAD_T’
  109 | TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id);
      |                                              ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:124:42: error: unknown type name ‘THREAD_T’
  124 | typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
      |                                          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:125:40: error: unknown type name ‘THREAD_T’
  125 | typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
      |                                        ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:133:10: error: unknown type name ‘THREAD_T’
  133 | TSRM_API THREAD_T tsrm_thread_id(void);
      |          ^~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:134:10: error: unknown type name ‘MUTEX_T’
  134 | TSRM_API MUTEX_T tsrm_mutex_alloc(void);
      |          ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:135:31: error: unknown type name ‘MUTEX_T’
  135 | TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
      |                               ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:136:30: error: unknown type name ‘MUTEX_T’
  136 | TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
      |                              ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:137:32: error: unknown type name ‘MUTEX_T’
  137 | TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
      |                                ^~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:142:50: error: unknown type name ‘tsrm_thread_begin_func_t’
  142 | TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2/Zend/../TSRM/TSRM.h:143:48: error: unknown type name ‘tsrm_thread_end_func_t’; did you mean ‘tsrm_shutdown_func_t’?
  143 | TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                                tsrm_shutdown_func_t
make: *** [Makefile:1232: ext/pdo_sqlite/pdo_sqlite.lo] Error 1
make: *** [Makefile:1236: ext/pdo_sqlite/sqlite_statement.lo] Error 1
make: *** [Makefile:1234: ext/pdo_sqlite/sqlite_driver.lo] Error 1
 * ERROR: dev-lang/php-7.4.11::core-server-kit failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/php-7.4.11::core-server-kit'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.4.11::core-server-kit'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-7.4.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.4.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/php-7.4.11/work/sapis-build/apache2'
 * S: '/var/tmp/portage/dev-lang/php-7.4.11/work/php-7.4.11'

>>> Failed to emerge dev-lang/php-7.4.11, Log file:

>>>  '/var/tmp/portage/dev-lang/php-7.4.11/temp/build.log'
*** Resuming merge...

 

Edited by sibok
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The php-7.4.11.ebuild src_prepare function has a conditional that is wrong.

if use apache2; then
    
    eapply "${FILESDIR}/php-iodbc-header-location.patch" || die
	
	fi
	
	if use iodbc; then
        eapply "${FILESDIR}/apache.patch" || die
    fi
    
    eapply_user

If apache2  use is enabled the apache.patch must be applied to prevent build failure.

The workaround is to enable iodbc use , then apache.patch is applied, and php will build successfully.

 

Reference: https://bugs.funtoo.org/browse/FL-7122

Edited by cardinal
Link to comment
Share on other sites

×
×
  • Create New...