[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support

From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support
Date: Thu, 12 Sep 2013 11:08:52 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, 09/11 17:26, Peter Maydell wrote:
> On 11 September 2013 14:34, Fam Zheng <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]