From: Thomas Huth <thuth@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>, qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH] net/passt: Fix build failure due to missing GIO dependency
Date: Fri, 18 Jul 2025 16:54:36 +0200 [thread overview]
Message-ID: <b30199ba-4c3e-4764-9b0a-fbbb8b73ce89@redhat.com> (raw)
In-Reply-To: <20250718133110.1510978-1-lvivier@redhat.com>
On 18/07/2025 15.31, Laurent Vivier wrote:
> The passt networking backend uses functions from the GIO library,
> such as g_subprocess_launcher_new(), to manage its daemon process.
> So, building with passt enabled requires GIO to be available.
>
> If we enable passt and disable gio the build fails during linkage with
> undefined reference errors:
>
> /usr/bin/ld: libsystem.a.p/net_passt.c.o: in function `net_passt_start_daemon':
> net/passt.c:250: undefined reference to `g_subprocess_launcher_new'
> /usr/bin/ld: net/passt.c:251: undefined reference to `g_subprocess_launcher_take_fd'
> /usr/bin/ld: net/passt.c:253: undefined reference to `g_subprocess_launcher_spawnv'
> /usr/bin/ld: net/passt.c:256: undefined reference to `g_object_unref'
> /usr/bin/ld: net/passt.c:263: undefined reference to `g_subprocess_wait'
> /usr/bin/ld: net/passt.c:268: undefined reference to `g_subprocess_get_if_exited'
> /usr/bin/ld: libsystem.a.p/net_passt.c.o: in function `glib_autoptr_clear_GSubprocess':
> /usr/include/glib-2.0/gio/gio-autocleanups.h:132: undefined reference to `g_object_unref'
> /usr/bin/ld: libsystem.a.p/net_passt.c.o: in function `net_passt_start_daemon':
> net/passt.c:269: undefined reference to `g_subprocess_get_exit_status'
>
> Fix this by adding an explicit weson dependency on GIO for the passt
> option.
> The existing dependency on linux is kept because passt is only available
> on this OS.
>
> Reported-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---
> meson.build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meson.build b/meson.build
> index c2bc3eeedce9..5842dd026a6f 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1287,6 +1287,7 @@ endif
>
> enable_passt = get_option('passt') \
> .require(host_os == 'linux', error_message: 'passt is supported only on Linux') \
> + .require(gio.found(), error_message: 'passt requires gio') \
> .allowed()
>
> vde = not_found
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2025-07-18 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-18 13:31 [PATCH] net/passt: Fix build failure due to missing GIO dependency Laurent Vivier
2025-07-18 13:41 ` Daniel P. Berrangé
2025-07-18 14:54 ` Thomas Huth [this message]
2025-09-25 10:13 ` Peter Maydell
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=b30199ba-4c3e-4764-9b0a-fbbb8b73ce89@redhat.com \
--to=thuth@redhat.com \
--cc=berrange@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).