Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JC1HL-0001GQ-Bi for qemu-devel@nongnu.org; Mon, 07 Jan 2008 18:21:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JC1HJ-0001F5-G9 for qemu-devel@nongnu.org; Mon, 07 Jan 2008 18:21:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC1HJ-0001F2-DH for qemu-devel@nongnu.org; Mon, 07 Jan 2008 18:21:09 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JC1HJ-0000V7-36 for qemu-devel@nongnu.org; Mon, 07 Jan 2008 18:21:09 -0500 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 02367C75F2C8 for ; Tue, 8 Jan 2008 00:21:08 +0100 (CET) Received: from [91.18.80.219] (helo=[10.0.1.1]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1JC1HH-0008PE-00 for qemu-devel@nongnu.org; Tue, 08 Jan 2008 00:21:07 +0100 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: multipart/mixed; boundary=Apple-Mail-10-250030725 Mime-Version: 1.0 (Apple Message framework v915) Subject: [PATCH] Re: [Qemu-devel] Mac OS X build failure (qemu-img) Date: Tue, 8 Jan 2008 00:20:46 +0100 References: Sender: andreas.faerber@web.de Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-10-250030725 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Am 12.12.2007 um 13:08 schrieb Alexander Graf: > > On Dec 12, 2007, at 12:39 PM, Andreas F=E4rber wrote: > >> >> Am 11.11.2007 um 13:40 schrieb Andreas F=E4rber: >> >>> Building CVS HEAD on OS X (here sparc-softmmu) currently results =20 >>> in unresolved symbols: >>> >>> gcc-3.3 -g -o qemu-img qemu-img.o qemu-img-block.o qemu-img-=20 >>> block-raw.o cutils.o block-cow.o block-qcow.o aes.o block-vmdk.o =20 >>> block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o =20= >>> block-qcow2.o block-parallels.o -lz >>> ld: Undefined symbols: >>> _CFDictionarySetValue >>> _CFRelease >>> _CFStringGetCString >>> _IOIteratorNext >>> _IOMasterPort >>> _IOObjectRelease >>> _IORegistryEntryCreateCFProperty >>> _IOServiceGetMatchingServices >>> _IOServiceMatching >>> ___CFStringMakeConstantString >>> _kCFAllocatorDefault >>> _kCFBooleanTrue >>> make: *** [qemu-img] Error 1 >> > > Does it work if you specify "-framework CoreFoundation -framework =20 > IOKit" in your LDFLAGS? That's what was needed on my Leopard x86_64 =20= > build. The attached patch fixes the above build problem by adding -framework =20= CoreFoundation -framework IOKit to LDFLAGS, as suggested by Alexander. Andreas --Apple-Mail-10-250030725 Content-Disposition: attachment; filename=qemu-img-CF+IO.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="qemu-img-CF+IO.diff" Content-Transfer-Encoding: 7bit Index: configure =================================================================== RCS file: /sources/qemu/qemu/configure,v retrieving revision 1.178 diff -u -r1.178 configure --- configure 6 Jan 2008 18:27:58 -0000 1.178 +++ configure 7 Jan 2008 23:10:41 -0000 @@ -151,6 +151,7 @@ cocoa="yes" coreaudio="yes" OS_CFLAGS="-mdynamic-no-pic" +OS_LDFLAGS="-framework CoreFoundation -framework IOKit" ;; SunOS) solaris="yes" --Apple-Mail-10-250030725 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-10-250030725--