qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: chenqing <chenqing@nsfocus.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier.
Date: Fri, 04 Jul 2008 10:42:07 +0200	[thread overview]
Message-ID: <1215160927.3802.4.camel@frecb07144> (raw)
In-Reply-To: <20080704115101.5BC9.20F538E7@nsfocus.com>

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

Le vendredi 04 juillet 2008 à 11:51 +0800, chenqing a écrit :
> > 
> > Hm, how much of nbd.c works on windows?
> 
> We don't care nbd.c works on windows, we just want to compile qemu on
> windows smoothly. In fact, I can did it successfully yestoday, but failed
> today because these error.

The attached patch should disable NBD on win32.

Regards,
Laurent
-- 
------------- Laurent.Vivier@bull.net ---------------
"The best way to predict the future is to invent it."
- Alan Kay

[-- Attachment #2: nbd-win32.patch --]
[-- Type: text/x-vhdl, Size: 1533 bytes --]

---
 Makefile |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Index: qemu/Makefile
===================================================================
--- qemu.orig/Makefile	2008-07-04 10:39:31.000000000 +0200
+++ qemu/Makefile	2008-07-04 10:39:35.000000000 +0200
@@ -42,7 +42,10 @@ recurse-all: $(SUBDIR_RULES)
 BLOCK_OBJS=cutils.o qemu-malloc.o
 BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o
 BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o
-BLOCK_OBJS+=block-qcow2.o block-parallels.o block-nbd.o
+BLOCK_OBJS+=block-qcow2.o block-parallels.o 
+ifndef CONFIG_WIN32
+BLOCK_OBJS+=block-nbd.o
+endif
 
 ######################################################################
 # libqemu_common.a: Target independent part of system emulation. The
@@ -50,7 +53,10 @@ BLOCK_OBJS+=block-qcow2.o block-parallel
 # system emulation, i.e. a single QEMU executable should support all
 # CPUs and machines.
 
-OBJS=nbd.o $(BLOCK_OBJS)
+OBJS=$(BLOCK_OBJS)
+ifndef CONFIG_WIN32
+OBJS+=nbd.o
+endif
 OBJS+=readline.o console.o
 OBJS+=block.o
 
@@ -159,11 +165,11 @@ libqemu_user.a: $(USER_OBJS)
 	rm -f $@ 
 	$(AR) rcs $@ $(USER_OBJS)
 
-QEMU_IMG_BLOCK_OBJS = nbd.o $(BLOCK_OBJS)
+QEMU_IMG_BLOCK_OBJS = $(BLOCK_OBJS)
 ifdef CONFIG_WIN32
 QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-win32.o
 else
-QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-posix.o
+QEMU_IMG_BLOCK_OBJS += nbd.o qemu-img-block-raw-posix.o
 endif
 
 ######################################################################

  reply	other threads:[~2008-07-04  8:42 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 13:41 [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier Thiemo Seufer
2008-07-04  1:33 ` chenqing
2008-07-04  2:34   ` Thiemo Seufer
2008-07-04  3:51     ` chenqing
2008-07-04  8:42       ` Laurent Vivier [this message]
2008-07-04 20:32         ` Thiemo Seufer
2008-07-04 20:52           ` Johannes Schindelin
2008-07-04 22:02             ` [Qemu-devel] [PATCH] Fix compilation of nbd on Windows Johannes Schindelin
2008-07-05 11:58               ` Filip Navara
2008-07-05 22:41                 ` Jamie Lokier
2008-07-06  1:51                   ` Johannes Schindelin
2008-07-06 16:49                     ` Jamie Lokier
2008-07-06 17:23                       ` Johannes Schindelin
2008-07-08 19:22               ` Anthony Liguori
2008-07-09  0:14                 ` Johannes Schindelin
2008-07-18 14:24                   ` [Qemu-devel] " Sebastian Herbszt
2008-07-18 15:26                     ` Johannes Schindelin
2008-08-02 19:21               ` [Qemu-devel] [PATCH v2] " Johannes Schindelin
2008-08-03 17:11                 ` Anthony Liguori
2008-08-03 17:32                   ` Johannes Schindelin
2008-08-03 20:42                     ` Anthony Liguori
2008-08-03 20:58                       ` Johannes Schindelin
2008-08-03 21:09                         ` Anthony Liguori
2008-08-03 21:30                           ` Johannes Schindelin
2008-08-04 13:29                       ` Jamie Lokier
2008-08-04 16:49                         ` Thiemo Seufer
2008-08-03 21:21                     ` Anthony Liguori
2008-08-03 21:37                       ` Johannes Schindelin
2008-08-04 13:23                         ` Jamie Lokier
2008-08-03 21:57                     ` Andreas Färber
2008-07-04  8:01     ` [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier Laurent Vivier

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=1215160927.3802.4.camel@frecb07144 \
    --to=laurent.vivier@bull.net \
    --cc=chenqing@nsfocus.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).