Re: PHP84 build error with ZTS

Xavier Humbert <[email protected]> Sat, 13 Jun 2026 19:28:23 +0200
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
Le 13/06/2026 18:33, Moin Rahman a écrit :
>
>> On Jun 13, 2026, at 18:09, Xavier Humbert <[email protected]> wrote:
>>
>> 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
>>
>>
> 1. Where are you building?
Directly from ports (no poudriere)
> 2. How are you building?
portupgrade -vf -o lang/php84 php82-8.2.31
but make clean all in ports directory leads to the same issue
> 3. With which exact version of php84 you are building?
8.4.22
> 4. With which exact version of FreeBSD you are building?
FreeBSD STABLE-14.4
> Kind regards,
> Moin

Thanks

Xavier

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