From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxHF-0007yS-Ne for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:09:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJxHA-0007ZV-Tk for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:09:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxHA-0007Yq-Kf for qemu-devel@nongnu.org; Wed, 11 Sep 2013 23:09:00 -0400 Date: Thu, 12 Sep 2013 11:08:52 +0800 From: Fam Zheng Message-ID: <20130912030852.GL9134@T430s.nay.redhat.com> References: <1378906448-15834-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Michael Tokarev , QEMU Developers , Stefan Hajnoczi , Paolo Bonzini , =?iso-8859-1?Q?Llu=EDs?= Vilanova , Richard Henderson On Wed, 09/11 17:26, Peter Maydell wrote: > On 11 September 2013 14:34, Fam Zheng wrote: > > This series implements feature of shared object building as described in: > > > > http://wiki.qemu.org/Features/Modules > > > v6: Dropping RFC. > > ...which I guess makes it a reasonable time to mention that > this doesn't build on MacOSX/clang: > > cc -m64 -DOS_OBJECT_USE_OBJC=0 -arch x86_64 -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes > -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes > -fno-strict-aliasing -Wno-initializer-overrides -Wendif-labels > -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security > -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition > -Wtype-limits -fstack-protector-all -I/sw/include > -I/sw/include/libpng15 -I/opt/X11/include/pixman-1 > -I/Users/pm215/src/qemu/dtc/libfdt -I/Users/pm215/src/qemu/tests -I > qga/qapi-generated -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include > -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -g -m64 -framework > CoreFoundation -framework IOKit -arch x86_64 -g -o qemu-ga > -L/sw/lib -lgmodule-2.0 -lglib-2.0 -lintl -L/sw/lib -lgthread-2.0 > -lglib-2.0 -lintl > Undefined symbols for architecture x86_64: > "_main", referenced from: > -u command line option > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > ...which looks like we're trying to link qemu-ga but not specifying > any object files at all, with the result that the linker complains that > we haven't provided a main() function. > Yes, the same bug with patch 03 without libtool, fixed here. Thanks. Fam