PHP84 build error with ZTS

Xavier Humbert <[email protected]> Sat, 13 Jun 2026 18:09:02 +0200
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
Hi,

Trying to upgrade PHP from 8.2 to 8.4 (forced since Nextcloud does not 
build anymore with 8.2 ) but php84 won't build with ZTS enabled, fails 
with this error :

--- sapi/cli/php ---
ld: error: Zend/zend_dtrace.d.o: requires an executable stack, but -z 
execstack is not specified
--- sapi/fpm/php-fpm ---
ld: error: Zend/zend_dtrace.d.o: requires an executable stack, but -z 
execstack is not specified
--- sapi/phpdbg/phpdbg ---
ld: error: Zend/zend_dtrace.d.o: requires an executable stack, but -z 
execstack is not specified

Any idea ?

Regards,

Xavier

-- 
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr