From: Julien Olivain via buildroot <buildroot@buildroot.org>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/collectd: fix build of virt plugin
Date: Fri, 28 Aug 2026 13:42:36 +0200 [thread overview]
Message-ID: <ddc91179e94584026e68412462afed31@free.fr> (raw)
In-Reply-To: <20260827200814.1801974-1-thomas.petazzoni@bootlin.com>
On 27/08/2026 22:08, Thomas Petazzoni via buildroot wrote:
> Since the bump of libxml2 from 2.13.8 to 2.15.0 in Buildroot commit
> d81922c1ef8825f10b802984d9721412a1a1a377, the "virt" plugin of
> collectd no longer builds:
>
> src/virt.c:2208:49: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
> 2208 | static void virt_eventloop_timeout_cb(int timer
> ATTRIBUTE_UNUSED,
> |
> ^~~~~~~~~~~~~~~~
> src/virt.c: In function 'register_event_impl':
> src/virt.c:2221:26: error: 'virt_eventloop_timeout_cb' undeclared
> (first use in this function)
> 2221 | virt_eventloop_timeout_cb, NULL, NULL)
> < 0) {
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> src/virt.c:2221:26: note: each undeclared identifier is reported only
> once for each function it appears in
>
> This is due to the fact that the virt plugin code was incorrectly
> using the ATTRIBUTE_UNUSED define, which was supposed to be an
> internal define of libxml2. But it turns out that up to libxml2 2.14.0
> and its commit 208f27f9641a59863ce1f7d4992df77f7eb0ea9d, this define
> had been made publicly available. It could therefore mistakenly be
> used by collectd's virt plugin... until libxml2 was upgraded.
>
> We backport an upstream patch from collectd that fixes the issue.
>
> Fixes:
>
>
> https://autobuild.buildroot.net/results/4c8463f0372560f4c3a20b0f67854460f0d1c400/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-08-28 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 20:08 [Buildroot] [PATCH] package/collectd: fix build of virt plugin Thomas Petazzoni via buildroot
2026-08-28 11:42 ` Julien Olivain 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=ddc91179e94584026e68412462afed31@free.fr \
--to=buildroot@buildroot.org \
--cc=ju.o@free.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.