qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] buildsys: Fix module build for block-iscsi.so
@ 2014-05-23  3:02 Fam Zheng
  2014-05-23  3:02 ` [Qemu-devel] [PATCH 1/4] Makefile: Link vscclient with libqemuutil.a and libqemustub.a Fam Zheng
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Fam Zheng @ 2014-05-23  3:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Stefan Weil, Michael Tokarev, Michael Roth,
	Christophe Fergeau, Alon Levy, Stefan Hajnoczi, Paolo Bonzini,
	Alex Bennée, Richard Henderson

We get:

    $ qemu-img
    Failed to open module: /home/fam/build/master/block-iscsi.so: undefined symbol: bitmap_set
    qemu-img: Not enough arguments
    Try 'qemu-img --help' for more information

Because since commit b03c38 (block/iscsi: speed up read for unallocated
sectors), block/iscsi.c calls utils/bitmap.c:bitmap_* functions, which is not
linked to qemu-img nor shared objects.

This series links module objects to libqemuutil.a. That requires -fPIC on the
static library objects. The first patch unifies the dependency path of
util-obj-y to libqemuutil.a by removing individual object list from
libcacard-obj-y, so we can apply -fPIC from libqemuutils.a's object specific
variables.

Also added a travis build task for --enable-modules.

Fam

Fam Zheng (4):
  Makefile: Link vscclient with libqemuutil.a and libqemustub.a
  Makefile: Compile libqemustub.a and libqemuutil.a with -fPIC
  rules.mak: Link DSO with libqemuutil.a
  .travis.yml: Add a new build target with --enable-modules

 .travis.yml        | 3 +++
 Makefile           | 1 +
 libcacard/Makefile | 9 ++-------
 rules.mak          | 2 +-
 4 files changed, 7 insertions(+), 8 deletions(-)

-- 
1.9.2

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-23 11:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23  3:02 [Qemu-devel] [PATCH 0/4] buildsys: Fix module build for block-iscsi.so Fam Zheng
2014-05-23  3:02 ` [Qemu-devel] [PATCH 1/4] Makefile: Link vscclient with libqemuutil.a and libqemustub.a Fam Zheng
2014-05-23  8:22   ` Paolo Bonzini
2014-05-23  8:26     ` Michael Tokarev
2014-05-23  9:25       ` Paolo Bonzini
2014-05-23  9:36         ` Michael Tokarev
2014-05-23 11:33           ` Paolo Bonzini
2014-05-23  3:02 ` [Qemu-devel] [PATCH 2/4] Makefile: Compile libqemustub.a and libqemuutil.a with -fPIC Fam Zheng
2014-05-23  3:02 ` [Qemu-devel] [PATCH 3/4] rules.mak: Link DSO with libqemuutil.a Fam Zheng
2014-05-23  3:02 ` [Qemu-devel] [PATCH 4/4] .travis.yml: Add a new build target with --enable-modules Fam Zheng
2014-05-23  9:59 ` [Qemu-devel] [PATCH 0/4] buildsys: Fix module build for block-iscsi.so Michael Tokarev
2014-05-23 11:35   ` Paolo Bonzini
2014-05-23 11:36 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).