[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support |
Date: |
Wed, 11 Sep 2013 17:26:20 +0100 |
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.
-- PMM
- [Qemu-devel] [PATCH v6 5/8] configure: introduce --enable-modules, (continued)
- [Qemu-devel] [PATCH v6 5/8] configure: introduce --enable-modules, Fam Zheng, 2013/09/11
- [Qemu-devel] [PATCH v6 6/8] Makefile: install modules with "make install", Fam Zheng, 2013/09/11
- [Qemu-devel] [PATCH v6 7/8] .gitignore: ignore module related files (dll, so, mo), Fam Zheng, 2013/09/11
- [Qemu-devel] [PATCH v6 8/8] block: convert block drivers linked with libs to modules, Fam Zheng, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 0/8] Shared Library Module Support,
Peter Maydell <=