Re: PHP84 build error with ZTS

Moin Rahman <[email protected]> Sat, 13 Jun 2026 19:51:24 +0200
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>

> On Jun 13, 2026, at 19:40, Xavier Humbert <[email protected]> wrote:
> 
> Le 13/06/2026 19:36, Moin Rahman a écrit :
>> 
>>> On Jun 13, 2026, at 19:28, Xavier Humbert <[email protected]> wrote:
>>> 
>>> 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
>> 
>> Can you share your make.conf?
>> 
>> Kind regards,
>> Moin
> 
> 
> CPUTYPE?=core2
> CFLAGS+=        -g
> CXXFLAGS+=      -g
> 
> MAKEFLAGS= -j 8
> MASTER_SITE_BACKUP?=    \
> http://distcache.FreeBSD.org/ports-distfiles/${DIST_SUBDIR}/
> MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}
> MASTER_SITE_APACHE_HTTPD?= http://apache.fastorama.com/dist/httpd/ http://mir2.ovh.net/ftp.apache.org/dist/httpd/ http://apache.crihan.fr/dist/httpd/ ftp://mir1.ovh.net/ftp.apache.org/dist/httpd/ ftp://ftp.fastorama.com/mirrors/ftp.apache.org/dist/httpd/ ftp://ftp.inria.fr/pub/Apache/httpd/
> MASTER_SORT_REGEX?=     ://[^/]*\.fr[/.]
> PACKAGES=/usr/ports/packages
> 
> DEFAULT_VERSIONS+=ssl=openssl
> DEFAULT_VERSIONS+=python=3.11 python3=3.11
> DEFAULT_VERSIONS+=perl5=5.40
> DEFAULT_VERSIONS+=llvm=20
> DEFAULT_VERSIONS+=mono=5.20
> DEFAULT_VERSIONS+=php=8.4
> DEFAULT_VERSIONS+=bdb=18
> 
> OPTIONS_UNSET= GSSAPI_BASE
> OPTIONS_SET=   GSSAPI_MIT
> 
> .if ${.CURDIR:M*/ports/net/librsync}
>   LDFLAGS += -L/usr/local/lib
> .endif
> 
> 
> .if !defined(NO_CCACHE)
> .endif
> 
> .if ${.CURDIR:M*/ports/devel/ccache}
>   NO_CCACHE=yes
> .endif
> 
> .if ${.CURDIR:M*/ports/java/openjdk17}
>   NO_CCACHE=yes
> .endif
> 
> WITH_CTF=yes
> MK_CTF=yes
> 
> 
> TMPFS_BLACKLIST='rust gcc* llvm* texlive-texmf'
> TMPFS_BLACKLIST_TMPDIR=/var/tmp
> USE_TMPFS=yes
> TMPFS_LIMIT=4
> 
> databases_memcached_UNSET+=DOCS
> 
> -- 
> Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
> https://www.amdh.fr
> 
> 

For now add this in the `make.conf`:

lang_php84_UNSET+=DTRACE

And retry. I will need to take a look on this.

Kind regards,
Moin
signature.asc (application/pgp-signature, 963 B)
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmotmJxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE
Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA
vJG34Q/+OjZL4PMBe4IZwys56ABEtlJG8vGNVMKyAv9OV689ETyykz0OUcHh/ISa
I/vbUgxDZUquRHXM1Hqb9SKUlBU9F2a6ZStPq3yUl5dKu6GzUiTNCbrZz0z1uSrF
NhyeQ6lFmL0TmEpS3nKVCxDSvvUC9x1XNbZPk9Kw4Ps/emYRpvYCgAjR7hQdHa56
DxgL7QqatAN9++VBoUMtcrvM9JZtx9vMPCDtpRZmgJ8AqM9eosUK5IY1Tv1suWw7
SK+6dFETm71wIah1vG8DFZhfwIBq4KYV71jnlELT5mm7QGuYlgSFe0iCwAeakVXR
ggkeREk4jcT+vzXt6IkNjkcg1YXG5Loc/JNoAEIhhCRtsr+sGggG4IonpZz+ZHqW
huzXDZVj53NdPWmk3KXrtsp2WrCtOnddUVKQDXsPZczMy3wx+EwRiTFqDuFpCj+E
IkUl98MQUiqCvGtK6beA04XmOEjFU2I+e8r+A3c2RgYwEkANxpUrNkpP/J80bz1Y
htEKgCBw+XUN32VZxoNG3R+YwVCU0HFC2UJf5EybNU4e0AgRFmawvcWvNP8NScAY
jGDg9mfOVILiI0I17CUJgQkFFVyt65eylQqWF01r4XDwMqjFr7IWgvUVU1/Aiwe8
KljuZZCAy1orIiZOwS9BH1CKug73xGvfx3YXX41it9qc1nhnzxQ=
=AQ8N
-----END PGP SIGNATURE-----