From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Kostiantyn Kostiuk <konstantin@daynix.com>,
Developers <qemu-devel@nongnu.org>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P . Berrange" <berrange@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH 1/1] qga-vss: Use dynamic linking for GLib
Date: Mon, 1 Mar 2021 12:39:22 +0100 [thread overview]
Message-ID: <4ecbde1e-fd10-28a5-10b7-33dda8c7f9a1@redhat.com> (raw)
In-Reply-To: <20210209145423.178611-1-konstantin@daynix.com>
Cc'ing Paolo/Marc-André/Daniel
On 2/9/21 3:54 PM, Kostiantyn Kostiuk wrote:
> The current GLib version implements the DllMain function. DllMain is also
> present in the provider.cpp code. So in the case of static linking, the
> DllMain redefinition error occurs. For now, just switch to dynamic linking
> and revert this patch when the issue will be solved.
>
> See Glib issue for more details https://gitlab.gnome.org/GNOME/glib/-/issues/692
>
> Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
> ---
> qga/vss-win32/meson.build | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
> index 780c461432..90825edef3 100644
> --- a/qga/vss-win32/meson.build
> +++ b/qga/vss-win32/meson.build
> @@ -1,5 +1,5 @@
> if add_languages('cpp', required: false)
> - glib_static = dependency('glib-2.0', static: true)
> + glib_dynamic = dependency('glib-2.0', static: false)
> link_args = cc.get_supported_link_arguments(['-fstack-protector-all', '-fstack-protector-strong',
> '-Wl,--add-stdcall-alias', '-Wl,--enable-stdcall-fixup'])
>
> @@ -8,7 +8,7 @@ if add_languages('cpp', required: false)
> cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
> link_args: link_args,
> vs_module_defs: 'qga-vss.def',
> - dependencies: [glib_static, socket,
> + dependencies: [glib_dynamic, socket,
> cc.find_library('ole32'),
> cc.find_library('oleaut32'),
> cc.find_library('shlwapi'),
>
next prev parent reply other threads:[~2021-03-01 11:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 14:54 [PATCH 1/1] qga-vss: Use dynamic linking for GLib Kostiantyn Kostiuk
2021-02-17 12:54 ` Konstantin Kostiuk
2021-03-01 9:49 ` Konstantin Kostiuk
2021-03-01 11:39 ` Philippe Mathieu-Daudé [this message]
2021-03-01 12:10 ` Marc-André Lureau
2021-03-01 12:16 ` Paolo Bonzini
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=4ecbde1e-fd10-28a5-10b7-33dda8c7f9a1@redhat.com \
--to=philmd@redhat.com \
--cc=berrange@redhat.com \
--cc=konstantin@daynix.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--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).