From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nximx-0001yb-SQ for qemu-devel@nongnu.org; Fri, 02 Apr 2010 11:28:03 -0400 Received: from [140.186.70.92] (port=36971 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nximw-0001yS-Gg for qemu-devel@nongnu.org; Fri, 02 Apr 2010 11:28:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nximu-0000Sa-Sf for qemu-devel@nongnu.org; Fri, 02 Apr 2010 11:28:02 -0400 Received: from mail-pz0-f186.google.com ([209.85.222.186]:37995) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nximu-0000SK-Lv for qemu-devel@nongnu.org; Fri, 02 Apr 2010 11:28:00 -0400 Received: by pzk16 with SMTP id 16so1840023pzk.22 for ; Fri, 02 Apr 2010 08:28:00 -0700 (PDT) Message-ID: <4BB60CFD.5010806@codemonkey.ws> Date: Fri, 02 Apr 2010 10:27:57 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [BREAKAGE] commit 9bc6304c156dcc01c619672ca33d7152bb18bcb9 breaks build References: <4BB5FF88.8090100@mail.berlios.de> In-Reply-To: <4BB5FF88.8090100@mail.berlios.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Blue Swirl , Roy Tam , qemu-devel , "Michael S. Tsirkin" On 04/02/2010 09:30 AM, Stefan Weil wrote: > Blue Swirl schrieb: > >> On 4/2/10, Roy Tam wrote: >> >>> 2010/4/2 Anthony Liguori: >>> >>> >>>> Try doing a clean build >>>> >>> This is a fresh checkout. >>> >> I can confirm this with mingw32: >> LINK sparc64-softmmu/qemu-system-sparc64.exe >> virtio-net.o: In function `virtio_net_exit': >> /src/qemu/hw/virtio-net.c:943: undefined reference to `_tap_get_vhost_net' >> virtio-net.o: In function `virtio_net_save': >> /src/qemu/hw/virtio-net.c:719: undefined reference to `_tap_get_vhost_net' >> virtio-net.o: In function `virtio_net_reset': >> /src/qemu/hw/virtio-net.c:122: undefined reference to `_tap_get_vhost_net' >> virtio-net.o: In function `virtio_net_set_status': >> /src/qemu/hw/virtio-net.c:863: undefined reference to `_tap_get_vhost_net' >> /src/qemu/hw/virtio-net.c:870: undefined reference to `_tap_get_vhost_net' >> virtio-net.o:/src/qemu/hw/virtio-net.c:878: more undefined references >> to `_tap_get_vhost_net' follow >> collect2: ld returned 1 exit status >> > A cross build (mingw32 on debian) also results in this linker error. > The reason is quite simple: tap.o (which provides tap_get_vhost_net) > is only build for posix systems, but not for windows: > > Makefile.objs:net-nested-$(CONFIG_POSIX) += tap.o > > Changing this does not help because tap.c does not > compile for win32 without errors. Either these errors > have to be fixed, or don't call tap_get_vhost_net when > compiling for win32. > This tap files are a bit odd. We don't compile tap.o for mingw32 but we do compile tap-win32.o so what we need to do is define tap_get_vhost_net in tap-win32.c. Testing a patch right now. Regards, Anthony Liguori > Stefan > > > >