Message ID | 1403098014-1522-1-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
On 18 June 2014 14:26, Paolo Bonzini <pbonzini@redhat.com> wrote: > The following changes since commit af44da87e926ff64260b95f4350d338c4fc113ca: > > Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging (2014-06-16 18:26:21 +0100) > > are available in the git repository at: > > > git://github.com/bonzini/qemu.git scsi-next > > for you to fetch changes up to 3eff1f46f08a360a4ae9f834ce9fef4c45bf6f0f: > > virtio-scsi: add support for the any_layout feature (2014-06-18 08:47:11 +0200) Hi; I'm afraid this fails to build for me: /home/petmay01/linaro/qemu-for-merges/block/iscsi.c: In function ‘iscsi_co_generic_cb’: /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:187:27: error: ‘SCSI_STATUS_BUSY’ undeclared (first use in this function) if (status == SCSI_STATUS_BUSY) { ^ /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:187:27: note: each undeclared identifier is reported only once for each function it appears in /home/petmay01/linaro/qemu-for-merges/block/iscsi.c: In function ‘iscsi_co_writev’: /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: passing argument 3 of ‘iscsi_write10_task’ makes pointer from integer without a cast [-Werror] iscsi_co_generic_cb, &iTask); ^ In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: /usr/include/iscsi/iscsi.h:610:1: note: expected ‘unsigned char *’ but argument is of type ‘uint64_t’ iscsi_write10_task(struct iscsi_context *iscsi, int lun, ^ /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: passing argument 4 of ‘iscsi_write10_task’ makes integer from pointer without a cast [-Werror] iscsi_co_generic_cb, &iTask); ^ In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: /usr/include/iscsi/iscsi.h:610:1: note: expected ‘uint32_t’ but argument is of type ‘uint8_t *’ iscsi_write10_task(struct iscsi_context *iscsi, int lun, ^ /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: too many arguments to function ‘iscsi_write10_task’ iscsi_co_generic_cb, &iTask); ^ In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: /usr/include/iscsi/iscsi.h:610:1: note: declared here iscsi_write10_task(struct iscsi_context *iscsi, int lun, ^ cc1: all warnings being treated as errors make: *** [block/iscsi.o] Error 1 thanks -- PMM
Il 18/06/2014 17:30, Peter Maydell ha scritto: > On 18 June 2014 14:26, Paolo Bonzini <pbonzini@redhat.com> wrote: >> The following changes since commit af44da87e926ff64260b95f4350d338c4fc113ca: >> >> Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging (2014-06-16 18:26:21 +0100) >> >> are available in the git repository at: >> >> >> git://github.com/bonzini/qemu.git scsi-next >> >> for you to fetch changes up to 3eff1f46f08a360a4ae9f834ce9fef4c45bf6f0f: >> >> virtio-scsi: add support for the any_layout feature (2014-06-18 08:47:11 +0200) > > Hi; I'm afraid this fails to build for me: Looks like your libiscsi is too old. Paolo > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c: In function > ‘iscsi_co_generic_cb’: > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:187:27: error: > ‘SCSI_STATUS_BUSY’ undeclared (first use in this function) > if (status == SCSI_STATUS_BUSY) { > ^ > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:187:27: note: each > undeclared identifier is reported only once for each function it > appears in > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c: In function > ‘iscsi_co_writev’: > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: > passing argument 3 of ‘iscsi_write10_task’ makes pointer from integer > without a cast [-Werror] > iscsi_co_generic_cb, &iTask); > ^ > In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: > /usr/include/iscsi/iscsi.h:610:1: note: expected ‘unsigned char *’ but > argument is of type ‘uint64_t’ > iscsi_write10_task(struct iscsi_context *iscsi, int lun, > ^ > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: > passing argument 4 of ‘iscsi_write10_task’ makes integer from pointer > without a cast [-Werror] > iscsi_co_generic_cb, &iTask); > ^ > In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: > /usr/include/iscsi/iscsi.h:610:1: note: expected ‘uint32_t’ but > argument is of type ‘uint8_t *’ > iscsi_write10_task(struct iscsi_context *iscsi, int lun, > ^ > /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:394:41: error: too > many arguments to function ‘iscsi_write10_task’ > iscsi_co_generic_cb, &iTask); > ^ > In file included from /home/petmay01/linaro/qemu-for-merges/block/iscsi.c:43:0: > /usr/include/iscsi/iscsi.h:610:1: note: declared here > iscsi_write10_task(struct iscsi_context *iscsi, int lun, > ^ > cc1: all warnings being treated as errors > make: *** [block/iscsi.o] Error 1 > > > thanks > -- PMM >
On 18 June 2014 16:47, Paolo Bonzini <pbonzini@redhat.com> wrote: > Il 18/06/2014 17:30, Peter Maydell ha scritto: >> Hi; I'm afraid this fails to build for me: > > > Looks like your libiscsi is too old. Then you probably need to fix the configure test ;-) This is Ubuntu Trusty so really pretty recent (it's my main x86 build machine, not some oddball platform); libiscsi-dev 1.4.0-3. thanks -- PMM
Il 18/06/2014 17:53, Peter Maydell ha scritto: > Then you probably need to fix the configure test ;-) This is > Ubuntu Trusty so really pretty recent (it's my main x86 build > machine, not some oddball platform); libiscsi-dev 1.4.0-3. This is a very old release. I'll apply Peter's patch to disable libiscsi for pre-1.9.0 versions and respin the pull request. I didn't want to do that because 1.4.0->1.9.0 breaks ABI, but Peter thinks that versions before 1.8.0 are not reliable anyway. If Ubuntu wants to distribute both 1.4.0 and 1.9.0, they can move 1.9.0 header files to a separate directory using pkgconfig (1.4.0 does not support pkgconfig). Paolo
On Wed, Jun 18, 2014 at 8:57 AM, Paolo Bonzini <pbonzini@redhat.com> wrote: > Il 18/06/2014 17:53, Peter Maydell ha scritto: > >> Then you probably need to fix the configure test ;-) This is >> Ubuntu Trusty so really pretty recent (it's my main x86 build >> machine, not some oddball platform); libiscsi-dev 1.4.0-3. > > > This is a very old release. I'll apply Peter's patch to disable libiscsi > for pre-1.9.0 versions and respin the pull request. > > I didn't want to do that because 1.4.0->1.9.0 breaks ABI, but Peter thinks > that versions before 1.8.0 are not reliable anyway. +1 Versions prior are good for causal use but Peter is the authority on production use here. I think qemu should have a configure check and just force disable iscsi support if libiscsi < 1.9.0 > > If Ubuntu wants to distribute both 1.4.0 and 1.9.0, they can move 1.9.0 > header files to a separate directory using pkgconfig (1.4.0 does not support > pkgconfig). > > Paolo >
Il 18/06/2014 18:06, ronnie sahlberg ha scritto: >> > This is a very old release. I'll apply Peter's patch to disable libiscsi >> > for pre-1.9.0 versions and respin the pull request. >> > >> > I didn't want to do that because 1.4.0->1.9.0 breaks ABI, but Peter thinks >> > that versions before 1.8.0 are not reliable anyway. > +1 > > Versions prior are good for causal use but Peter is the authority on > production use here. > I think qemu should have a configure check and just force disable > iscsi support if libiscsi < 1.9.0 But you should stop breaking the ABI, coz you make it more complicated for distros to upgrade your library! :) Paolo