Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/php: fix OpenSSL detection for SNMP extension
Date: Fri, 21 Aug 2026 10:42:19 +0200	[thread overview]
Message-ID: <aogPFYDwimNddpnl@windsurf> (raw)
In-Reply-To: <20260808060556.4358-1-bernd@kuhls.net>

Hello Bernd,

On Sat, Aug 08, 2026 at 08:05:56AM +0200, Bernd Kuhls wrote:
> Buildroot commit a9e5cf6ac2cb7ba62d23c842899b3f7816eca14c bumped the
> package to version 8.4.13 which added upstream commit:
> https://github.com/php/php-src/commit/dbdc79df954a22495d0939eceb3ab4e09ced1c1e
> introducing changes for netsnmp detection.
> 
> Since this bump building php with its SNMP extension enabled and openssl
> globally disabled is broken:
> 
> /home/autobuild/autobuild/instance-12/output-1/host/lib/gcc/i686-buildroot-linux-gnu/15.3.0/../../../../i686-buildroot-linux-gnu/bin/ld:
>  ext/snmp/snmp.o: in function `snmp_session_set_security':
> snmp.c:(.text+0x677): undefined reference to `usmHMAC384SHA512AuthProtocol'
> /home/autobuild/autobuild/instance-12/output-1/host/lib/gcc/i686-buildroot-linux-gnu/15.3.0/../../../../i686-buildroot-linux-gnu/bin/ld:
>  snmp.c:(.text+0x9c2): undefined reference to `usmHMAC192SHA256AuthProtocol'
> 
> because php configure misdetects the presence of openssl support in
> netsnmp although it is not present.
> 
> To fix the problem we add some autoconf variables to forcefully disable
> OpenSSL support in the SNMP extension when OpenSSL is disabled.
> 
> The build error could be reproduced with php 8.4.17 but could not be
> reproduced with php 8.3.24 so a backport to LTS branches should be
> considered.

I don't really understand this paragraph. If the issue does NOT happen
with php 8.3.x that is in 2025.02.x, then why should the backport be
considered?

> +ifeq ($(BR2_PACKAGE_OPENSSL),)
> +PHP_CONF_ENV += \
> +	ac_cv_have_decl_usmHMAC192SHA256AuthProtocol=no \
> +	ac_cv_have_decl_usmHMAC384SHA512AuthProtocol=no
> +endif

As usual, I don't like this approach. If the detection of NetSNMP by
the PHP configure.ac is broken, then it should be fixed rather than
worked around. Could you have a look at doing a proper fix, that can
be submitted upstream?

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2026-08-21  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-08  6:05 [Buildroot] [PATCH 1/1] package/php: fix OpenSSL detection for SNMP extension Bernd Kuhls
2026-08-21  8:42 ` Thomas Petazzoni via buildroot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aogPFYDwimNddpnl@windsurf \
    --to=buildroot@buildroot.org \
    --cc=bernd@kuhls.net \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox