Received: from eggs.gnu.org ([2001:4830:134:3::10]:58906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agrjq-0001Ou-Dt for qemu-devel@nongnu.org; Fri, 18 Mar 2016 06:34:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agrjk-0000u4-B1 for qemu-devel@nongnu.org; Fri, 18 Mar 2016 06:34:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agrjk-0000ts-4e for qemu-devel@nongnu.org; Fri, 18 Mar 2016 06:34:32 -0400 From: Markus Armbruster References: <20160317202556.GD8489@HEDWIG.INI.CMU.EDU> Date: Fri, 18 Mar 2016 11:26:32 +0100 In-Reply-To: <20160317202556.GD8489@HEDWIG.INI.CMU.EDU> (Gabriel L. Somlo's message of "Thu, 17 Mar 2016 16:25:56 -0400") Message-ID: <87r3f8rsiv.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] commit 084a85e breaks build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: qemu-devel@nongnu.org You forgot to cc: Dan. Fixed :) I see similar diagnostics from F22's gcc. Linking fails: ../crypto/cipher.o: In function `qcrypto_cipher_new': /home/armbru/work/qemu/crypto/cipher-nettle.c:229: undefined reference to `= cast5_set_key' /home/armbru/work/qemu/crypto/cipher-nettle.c:230: undefined reference to `= cast5_set_key' /home/armbru/work/qemu/crypto/cipher-nettle.c:232: undefined reference to `= cast5_set_key' "Gabriel L. Somlo" writes: > Hi Daniel, > > I get the error below when I try to build QEMU, and bisect claims it > started with commit 084a85e (crypto: add support for the cast5-128 > cipher algorithm). > > Sorry if this is already a known issue. Let me know if there's > anything you'd like me to test. > > My command line is: > ~/KVM-OSX/SCRATCH/qemu/configure --prefix=3D/home/somlo/KVM-OSX/SCRATCH -= -audio-drv-list=3Dpa --target-list=3Dx86_64-softmmu,i386-softmmu,aarch64-so= ftmmu,arm-softmmu; make install > > Thanks, > --Gabriel > > ... > CC crypto/cipher.o > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153:0: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c: In function > =E2=80=98qcrypto_cipher_new=E2=80=99: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:229:13: error: > implicit declaration of function =E2=80=98cast5_set_key=E2=80=99 > [-Werror=3Dimplicit-function-declaration] > cast5_set_key(ctx->ctx, nkey, key); > ^ > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:229:13: error: > nested extern declaration of =E2=80=98cast5_set_key=E2=80=99 [-Werror=3Dn= ested-externs] > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153:0: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c: In function > =E2=80=98qcrypto_cipher_encrypt=E2=80=99: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:344:21: error: > passing argument 3 of =E2=80=98xts_encrypt=E2=80=99 from incompatible poi= nter type > [-Werror=3Dincompatible-pointer-types] > ctx->alg_encrypt, ctx->alg_encrypt, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:22:0, > from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153: > /home/somlo/KVM-OSX/SCRATCH/qemu/include/crypto/xts.h:76:6: note: > expected =E2=80=98void (*)(const void *, size_t, uint8_t *, const uint8_= t *) > {aka void (*)(const void *, long unsigned int, unsigned char *, const > unsigned char *)}=E2=80=99 but argument is of type =E2=80=98void (*)(void= *, unsigned > int, uint8_t *, const uint8_t *) {aka void (*)(void *, unsigned int, > unsigned char *, const unsigned char *)}=E2=80=99 > void xts_encrypt(const void *datactx, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153:0: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:344:39: error: > passing argument 4 of =E2=80=98xts_encrypt=E2=80=99 from incompatible poi= nter type > [-Werror=3Dincompatible-pointer-types] > ctx->alg_encrypt, ctx->alg_encrypt, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:22:0, > from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153: > /home/somlo/KVM-OSX/SCRATCH/qemu/include/crypto/xts.h:76:6: note: > expected =E2=80=98void (*)(const void *, size_t, uint8_t *, const uint8_= t *) > {aka void (*)(const void *, long unsigned int, unsigned char *, const > unsigned char *)}=E2=80=99 but argument is of type =E2=80=98void (*)(void= *, unsigned > int, uint8_t *, const uint8_t *) {aka void (*)(void *, unsigned int, > unsigned char *, const unsigned char *)}=E2=80=99 > void xts_encrypt(const void *datactx, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153:0: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c: In function > =E2=80=98qcrypto_cipher_decrypt=E2=80=99: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:389:21: error: > passing argument 3 of =E2=80=98xts_decrypt=E2=80=99 from incompatible poi= nter type > [-Werror=3Dincompatible-pointer-types] > ctx->alg_encrypt, ctx->alg_decrypt, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:22:0, > from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153: > /home/somlo/KVM-OSX/SCRATCH/qemu/include/crypto/xts.h:54:6: note: > expected =E2=80=98void (*)(const void *, size_t, uint8_t *, const uint8_= t *) > {aka void (*)(const void *, long unsigned int, unsigned char *, const > unsigned char *)}=E2=80=99 but argument is of type =E2=80=98void (*)(void= *, unsigned > int, uint8_t *, const uint8_t *) {aka void (*)(void *, unsigned int, > unsigned char *, const unsigned char *)}=E2=80=99 > void xts_decrypt(const void *datactx, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153:0: > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:389:39: error: > passing argument 4 of =E2=80=98xts_decrypt=E2=80=99 from incompatible poi= nter type > [-Werror=3Dincompatible-pointer-types] > ctx->alg_encrypt, ctx->alg_decrypt, > ^ > In file included from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher-nettle.c:22:0, > from > /home/somlo/KVM-OSX/SCRATCH/qemu/crypto/cipher.c:153: > /home/somlo/KVM-OSX/SCRATCH/qemu/include/crypto/xts.h:54:6: note: > expected =E2=80=98void (*)(const void *, size_t, uint8_t *, const uint8_= t *) > {aka void (*)(const void *, long unsigned int, unsigned char *, const > unsigned char *)}=E2=80=99 but argument is of type =E2=80=98void (*)(void= *, unsigned > int, uint8_t *, const uint8_t *) {aka void (*)(void *, unsigned int, > unsigned char *, const unsigned char *)}=E2=80=99 > void xts_decrypt(const void *datactx, > ^ > cc1: all warnings being treated as errors > /home/somlo/KVM-OSX/SCRATCH/qemu/rules.mak:57: recipe for target > 'crypto/cipher.o' failed > make: *** [crypto/cipher.o] Error 1