• PHP84 build error with ZTS

    From Xavier Humbert@xavier@groumpf.org to muc.lists.freebsd.ports on Sat Jun 13 18:09:02 2026
    From Newsgroup: muc.lists.freebsd.ports

    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



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Moin Rahman@bofh@freebsd.org to muc.lists.freebsd.ports on Sat Jun 13 18:33:36 2026
    From Newsgroup: muc.lists.freebsd.ports


    --Apple-Mail=_71E2E6B3-239D-4261-9861-CE8284556C96
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=us-ascii



    On Jun 13, 2026, at 18:09, Xavier Humbert <xavier@groumpf.org> wrote:
    =20
    Hi,
    =20
    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 :
    =20
    --- 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
    =20
    Any idea ?
    =20
    Regards,
    =20
    Xavier
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr
    =20
    =20

    1. Where are you building?
    2. How are you building?
    3. With which exact version of php84 you are building?
    4. With which exact version of FreeBSD you are building?

    Kind regards,
    Moin=

    --Apple-Mail=_71E2E6B3-239D-4261-9861-CE8284556C96
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename=signature.asc
    Content-Type: application/pgp-signature;
    name=signature.asc
    Content-Description: Message signed with OpenPGP

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmothmBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJFv5Q/8DQfCTryvRys4rbKoqiFyTsqRkOogEN1PCFaE+weNyw0+mPlr+arRRsUW X4upoeQWCAHlN/4pJsjpNOrIzDugyBH70YDxaDkMCCL6idn0zJiBI2NxZ8eeqvxF xpsu2/2/sPAGIC86qJxNWSCP1VzNY/2mJ+KY5qJvb75XmstlmkAu38uJkBZcglUC l4vBGGrZq8P20z/4/WqAe2s9QV9YIBgRrrh/g+0JImTbpxI0NLPFxC1JeqjkYaYX hA1EjmhGE4P1NbkDx5DZIAEYjdRZTNm6ZRvho9zTcfJHGw53W0IPmIxgk7aJEejC NguTZxWNBX+dHPqb7LpcJaCV6u8Cw1uHamudmZUFNZCAFcNF2W6+sv+l7qsXbbF5 IQIJmK5nRyDfl7YiwZe4B5dVNzEt1m95osDEFSlzW9FbRGnaExsHnLh+mtnAUNBs vHlG82Fi1nYUmXoolOx+THcDx9kf+8D0UeI/PYD9XrFM2NW+LGSDuC8v2Jaq7EgO XBTAAzz8UhbPLIJPokTr402so6MvDPToFxs66UCLNcX6yV1nNjcAKoiQbg96/TdL ba0uLvqGOGKwaFEOgrhiu0gt9PbzsCj+rnmWIxwLeEFUEIYjdJ17OuKwf6OFCF4g B9fZA2cLUTRE/VyDPUXfCpySC8w96Q+3JOdCuu0we4PRW9tr9w8=
    =+bgH
    -----END PGP SIGNATURE-----

    --Apple-Mail=_71E2E6B3-239D-4261-9861-CE8284556C96--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Moin Rahman@bofh@freebsd.org to muc.lists.freebsd.ports on Sat Jun 13 19:36:56 2026
    From Newsgroup: muc.lists.freebsd.ports


    --Apple-Mail=_A698E7A1-EE41-4B4B-AF13-2AEB9571722E
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=utf-8



    On Jun 13, 2026, at 19:28, Xavier Humbert <xavier@groumpf.org> wrote:
    =20
    Le 13/06/2026 18:33, Moin Rahman a =C3=A9crit :
    =20
    On Jun 13, 2026, at 18:09, Xavier Humbert <xavier@groumpf.org> =
    wrote:
    =20
    Hi,
    =20
    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 :
    =20
    --- 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
    =20
    Any idea ?
    =20
    Regards,
    =20
    Xavier
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
    https://www.amdh.fr
    =20
    =20
    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
    =20
    Thanks
    =20
    Xavier
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr


    Can you share your make.conf?

    Kind regards,
    Moin=

    --Apple-Mail=_A698E7A1-EE41-4B4B-AF13-2AEB9571722E
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename=signature.asc
    Content-Type: application/pgp-signature;
    name=signature.asc
    Content-Description: Message signed with OpenPGP

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmotlTlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJEQiw//QO+l/9wupluSRGzguJrQYL2/GiWwcwJofRySR6ucsVr2nznOHQtVykEr PMR5J8/czLRl6I9yRwUtshoE9oYCFpzvUdpm3K8TbVhruQ4R+ubIHMGSr/wcS7WP +70QM2ARtbVjwXQuJohyADA9Z8TR9h8XoSLHkEJwKH6lJQycSBLh6hMv0uXkYdBk fbKiV2b1Y4FFcE+70aFwBdYAE8owzvlvprxEkqWO20gM2mzXVjeVsWGu/lZq3Tm6 Q4Ik+ehE33ZBta+sf/jKTyO0SCMHjz/BgGoHurWASGowu1vVwd6kGXFZ4uMA4Bwn K/BAQscU+JfzJqWtSCbYQWMYKmOgXacXxPvFwiGuyh4znroAQWE0S4hOJOBx5fu3 BIwe20NMyqxHHS1EjZMB0+JQ+syD5tI9L9mZ/og/UhDXUDL3YDWzFEevlqvhM5SS 0Uw1oMZNXQ19dp5E0MOkGa3mAF3aoBjjgrw3E+jC6uMsygByf7veXsroxdZyVj73 AtRwPAe3XjLuOoyQJGgLpyECxM1Sx+3WxbcvAVqnmRjaTKsOyYKWrOO72U003ttQ cQKXD4qVyUt9MQuXaoiihtvDJP3Nuw4IhF814couxncXwnsmnvWcXsSFhIE3TX8/ AF8AxYxU/ws3XM0KzCpSEQ3XIhQv8MokB0gx1NMa5JgWvLcwi4Q=
    =wWNV
    -----END PGP SIGNATURE-----

    --Apple-Mail=_A698E7A1-EE41-4B4B-AF13-2AEB9571722E--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Moin Rahman@bofh@freebsd.org to muc.lists.freebsd.ports on Sat Jun 13 19:51:24 2026
    From Newsgroup: muc.lists.freebsd.ports


    --Apple-Mail=_760E525C-212D-431A-9ECF-4F4222A761D5
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=utf-8



    On Jun 13, 2026, at 19:40, Xavier Humbert <xavier@groumpf.org> wrote:
    =20
    Le 13/06/2026 19:36, Moin Rahman a =C3=A9crit :
    =20
    On Jun 13, 2026, at 19:28, Xavier Humbert <xavier@groumpf.org> =
    wrote:
    =20
    Le 13/06/2026 18:33, Moin Rahman a =C3=A9crit :
    On Jun 13, 2026, at 18:09, Xavier Humbert <xavier@groumpf.org> =
    wrote:
    =20
    Hi,
    =20
    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 :
    =20
    --- 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
    =20
    Any idea ?
    =20
    Regards,
    =20
    Xavier
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
    https://www.amdh.fr
    =20
    =20
    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
    =20
    Xavier
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
    https://www.amdh.fr
    =20
    Can you share your make.conf?
    =20
    Kind regards,
    Moin
    =20
    =20
    CPUTYPE?=3Dcore2
    CFLAGS+=3D -g
    CXXFLAGS+=3D -g
    =20
    MAKEFLAGS=3D -j 8
    MASTER_SITE_BACKUP?=3D \ http://distcache.FreeBSD.org/ports-distfiles/${DIST_SUBDIR}/ MASTER_SITE_OVERRIDE?=3D ${MASTER_SITE_BACKUP}
    MASTER_SITE_APACHE_HTTPD?=3D 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?=3D ://[^/]*\.fr[/.]
    PACKAGES=3D/usr/ports/packages
    =20
    DEFAULT_VERSIONS+=3Dssl=3Dopenssl
    DEFAULT_VERSIONS+=3Dpython=3D3.11 python3=3D3.11 DEFAULT_VERSIONS+=3Dperl5=3D5.40
    DEFAULT_VERSIONS+=3Dllvm=3D20
    DEFAULT_VERSIONS+=3Dmono=3D5.20
    DEFAULT_VERSIONS+=3Dphp=3D8.4
    DEFAULT_VERSIONS+=3Dbdb=3D18
    =20
    OPTIONS_UNSET=3D GSSAPI_BASE
    OPTIONS_SET=3D GSSAPI_MIT
    =20
    .if ${.CURDIR:M*/ports/net/librsync}
    LDFLAGS +=3D -L/usr/local/lib
    .endif
    =20
    =20
    .if !defined(NO_CCACHE)
    .endif
    =20
    .if ${.CURDIR:M*/ports/devel/ccache}
    NO_CCACHE=3Dyes
    .endif
    =20
    .if ${.CURDIR:M*/ports/java/openjdk17}
    NO_CCACHE=3Dyes
    .endif
    =20
    WITH_CTF=3Dyes
    MK_CTF=3Dyes
    =20
    =20
    TMPFS_BLACKLIST=3D'rust gcc* llvm* texlive-texmf' TMPFS_BLACKLIST_TMPDIR=3D/var/tmp
    USE_TMPFS=3Dyes
    TMPFS_LIMIT=3D4
    =20
    databases_memcached_UNSET+=3DDOCS
    =20
    --=20
    Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr
    =20
    =20

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

    lang_php84_UNSET+=3DDTRACE

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

    Kind regards,
    Moin=

    --Apple-Mail=_760E525C-212D-431A-9ECF-4F4222A761D5
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename=signature.asc
    Content-Type: application/pgp-signature;
    name=signature.asc
    Content-Description: Message signed with OpenPGP

    -----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-----

    --Apple-Mail=_760E525C-212D-431A-9ECF-4F4222A761D5--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2