Compilation of port php82-pgsql ends in error for undeclared identifiers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jan 2024 18:57:29 UTC
Context: FreeBSD 13.2-RELEASE-p8 GENERIC amd64 I'm trying to install from the port phppgadmin that I know requires a php8x-pgsql dependency. Unfortunately /usr/ports/databases/php82-pgsql % sudo make install Password: ===> Building for php82-pgsql-8.2.14 --- pgsql.lo --- /bin/sh /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/libtool --mode=compile cc -I. -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql -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/usr/local/include -I/usr/local/include -isystem /usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c -o pgsql.lo cc -I. -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql -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/usr/local/include -I/usr/local/include -isystem /usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c -fPIC -DPIC -o .libs/pgsql.o In file included from /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:65: ./pgsql_arginfo.h:775:73: error: use of undeclared identifier 'ZEND_ACC_NOT_SERIALIZABLE' class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE; ^ ./pgsql_arginfo.h:786:73: error: use of undeclared identifier 'ZEND_ACC_NOT_SERIALIZABLE' class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE; ^ ./pgsql_arginfo.h:797:73: error: use of undeclared identifier 'ZEND_ACC_NOT_SERIALIZABLE' class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE; ^ /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:4058:4: error: use of undeclared identifier 'ZEND_FALLTHROUGH' ZEND_FALLTHROUGH; ^ 4 errors generated. *** [pgsql.lo] Error code 1 make[1]: stopped in /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql 1 error make[1]: stopped in /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Where am I wrong? And what should I do to solve this compilation error? Thank you Vittorio