qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qemu-ga v2] qga: Make qemu-ga compile statically


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH qemu-ga v2] qga: Make qemu-ga compile statically for Windows
Date: Thu, 23 Mar 2017 18:21:27 +0000
User-agent: Mutt/1.8.0 (2017-02-23)

On Thu, Mar 23, 2017 at 11:22:11AM +0200, Sameeh Jubran wrote:
> Attempting to compile qemu-ga statically as follows for Windows causes
> the following error:
> 
> Compilation:
>     ./configure --disable-docs --target-list=x86_64-softmmu \
>     --cross-prefix=x86_64-w64-mingw32- --static \
>     --enable-guest-agent-msi --with-vss-sdk=/path/to/VSSSDK72
> 
>     make -j8 qemu-ga
> 
> Error:
>     path/to/qemu/stubs/error-printf.c:7: undefined reference to 
> `__imp_g_test_config_vars'
>     collect2: error: ld returned 1 exit status
>     Makefile:444: recipe for target 'qemu-ga.exe' failed
>     make: *** [qemu-ga.exe] Error 1
> 
> This is caused by a bug in the pkg-config file for glib as it doesn't define
> GLIB_STATIC_COMPILATION for pkg-config --static.

> 
> Signed-off-by: Stefan Hajnoczi <address@hidden>

Please remove this.  I didn't post my Signed-off-by.  Only add
Signed-off-by for someone else if they ask you to do so.

For details on Signed-off-by please read:
"11) Sign your work - the Developer's Certificate of Origin"
https://www.kernel.org/doc/Documentation/process/submitting-patches.rst

> Signed-off-by: Sameeh Jubran <address@hidden>
> ---
>  configure | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/configure b/configure
> index b9a30cf..8210494 100755
> --- a/configure
> +++ b/configure
> @@ -3041,6 +3041,13 @@ if test "$modules" = yes; then
>      glib_modules="$glib_modules gmodule-2.0"
>  fi
>  
> +# This workaround is required due to a bug in pkg-config file for glib as it
> +# doesn't define GLIB_STATIC_COMPILATION for pkg-config --static

Please add:

# See https://bugzilla.gnome.org/show_bug.cgi?id=780399 for the glib bug
# report.

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]