diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-06-05 23:25:49 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-08 10:33:38 +0200 |
commit | fcce5287c009770d74f289185eadd6163a1b6a4b (patch) | |
tree | 5d99c9cf73d3f0ef93c198bb8ab4d65bd85cf840 /python | |
parent | 75997e182b695f2e3f0a2d649734952af5caf3ee (diff) | |
download | qemu-fcce5287c009770d74f289185eadd6163a1b6a4b.zip qemu-fcce5287c009770d74f289185eadd6163a1b6a4b.tar.gz qemu-fcce5287c009770d74f289185eadd6163a1b6a4b.tar.bz2 |
stubs/meson: Fix qemuutil build when --disable-system
Compiling without system, user, tools or guest-agent fails with the
following error message:
./configure --disable-system --disable-user --disable-tools \
--disable-guest-agent
error message:
/usr/bin/ld: libqemuutil.a.p/util_error-report.c.o: in function `error_printf':
/media/liuzhao/data/qemu-cook/build/../util/error-report.c:38: undefined reference to `error_vprintf'
/usr/bin/ld: libqemuutil.a.p/util_error-report.c.o: in function `vreport':
/media/liuzhao/data/qemu-cook/build/../util/error-report.c:215: undefined reference to `error_vprintf'
collect2: error: ld returned 1 exit status
This is because tests/bench and tests/unit both need qemuutil, which
requires error_vprintf stub when system is disabled.
Add error_vprintf stub into stub_ss for all cases other than disabling
system.
Fixes: 3a15604900c4 ("stubs: include stubs only if needed")
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20240605152549.1795762-1-zhao1.liu@intel.com>
[Include error-printf.c unconditionally. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions