Received: from eggs.gnu.org ([2001:4830:134:3::10]:39220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnfki-00086O-9s for qemu-devel@nongnu.org; Thu, 22 May 2014 23:02:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wnfkc-0005Zi-4M for qemu-devel@nongnu.org; Thu, 22 May 2014 23:02:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnfkb-0005Ze-Sk for qemu-devel@nongnu.org; Thu, 22 May 2014 23:02:30 -0400 From: Fam Zheng Date: Fri, 23 May 2014 11:02:26 +0800 Message-Id: <1400814150-31666-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] buildsys: Fix module build for block-iscsi.so List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Stefan Weil , Michael Tokarev , Michael Roth , Christophe Fergeau , Alon Levy , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , 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