qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-ga static compilation
@ 2017-03-14 16:51 Sameeh Jubran
  2017-03-20 12:05 ` Sameeh Jubran
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sameeh Jubran @ 2017-03-14 16:51 UTC (permalink / raw)
  To: Michael Roth, qemu-devel

Hi all,

I am trying to compile qemu-ga for Windows statically using the following
commands:

./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


And I keep getting this error:

/home/sameeh/Builds/q/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


Notes to consider:
* without --static I can compile it successfully
* Build machine is running Fedora 25
* I have upgraded all of the tools to their latest version
* If I comment out the function which is causing the issue
(g_test_initialized()), qemu ga compiles statically and runs successfully
without the need of any dlls.

Can anyone reproduce this? Do you have any idea why is this happening?

-- 
Respectfully,
*Sameeh Jubran*
*Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>*
*Software Engineer @ Daynix <http://www.daynix.com>.*

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-22 17:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14 16:51 [Qemu-devel] qemu-ga static compilation Sameeh Jubran
2017-03-20 12:05 ` Sameeh Jubran
2017-03-20 12:12 ` Peter Maydell
2017-03-20 13:57 ` Stefan Hajnoczi
2017-03-20 14:04   ` Peter Maydell
2017-03-20 15:44   ` Sameeh Jubran
2017-03-21  9:23     ` Sameeh Jubran
2017-03-22 17:08       ` Stefan Hajnoczi

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).