[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#982705: marked as done (openssh: FTBFS: sha2.h:57:16: error: redefinition of ‘struct _SHA2_CTX’)



Your message dated Mon, 15 Feb 2021 10:48:48 +0000
with message-id <E1lBbQu-0004nZ-45@fasolo.debian.org>
and subject line Bug#982705: fixed in openssh 1:8.4p1-4
has caused the Debian Bug report #982705,
regarding openssh: FTBFS: sha2.h:57:16: error: redefinition of ‘struct _SHA2_CTX’
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
982705: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982705
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: openssh
Version: 1:8.4p1-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210213 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -Wno-error=format-truncation -Wall -Wextra -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-parameter -Wno-unused-result -Wimplicit-fallthrough -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSSH_EXTRAVERSION=\"Debian-3\"   -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/usr/include/editline  -isystem /usr/include/mit-krb5 -isystem /usr/include/mit-krb5  -DSSHDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/bin/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/lib/openssh/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/lib/openssh/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/lib/openssh/ssh-pkcs11-helper\" -D_PATH_SSH_SK_HELPER=\"/usr/lib/openssh/ssh-sk-helper\" -D_PATH_SSH_PIDDIR=\"/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/run/sshd\" -DHAVE_CONFIG_H -c ../../sk-usbhid.c -o sk-usbhid.o
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:57:16: error: redefinition of ‘struct _SHA2_CTX’
>    57 | typedef struct _SHA2_CTX {
>       |                ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:66:16: note: originally defined here
>    66 | typedef struct _SHA2_CTX {
>       |                ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:64:3: error: conflicting types for ‘SHA2_CTX’
>    64 | } SHA2_CTX;
>       |   ^~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:73:3: note: previous declaration of ‘SHA2_CTX’ was here
>    73 | } SHA2_CTX;
>       |   ^~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:70:6: error: conflicting types for ‘SHA256Init’
>    70 | void SHA256Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:96:6: note: previous declaration of ‘SHA256Init’ was here
>    96 | void SHA256Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:72:6: error: conflicting types for ‘SHA256Update’
>    72 | void SHA256Update(SHA2_CTX *, const uint8_t *, size_t);
>       |      ^~~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:98:6: note: previous declaration of ‘SHA256Update’ was here
>    98 | void SHA256Update(SHA2_CTX *, const u_int8_t *, size_t)
>       |      ^~~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:73:6: error: conflicting types for ‘SHA256Pad’
>    73 | void SHA256Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:100:6: note: previous declaration of ‘SHA256Pad’ was here
>   100 | void SHA256Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:74:6: error: conflicting types for ‘SHA256Final’
>    74 | void SHA256Final(uint8_t [SHA256_DIGEST_LENGTH], SHA2_CTX *);
>       |      ^~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:101:6: note: previous declaration of ‘SHA256Final’ was here
>   101 | void SHA256Final(u_int8_t [SHA256_DIGEST_LENGTH], SHA2_CTX *)
>       |      ^~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:75:7: error: conflicting types for ‘SHA256End’
>    75 | char *SHA256End(SHA2_CTX *, char *);
>       |       ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:103:7: note: previous declaration of ‘SHA256End’ was here
>   103 | char *SHA256End(SHA2_CTX *, char *)
>       |       ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:80:6: error: conflicting types for ‘SHA384Init’
>    80 | void SHA384Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:115:6: note: previous declaration of ‘SHA384Init’ was here
>   115 | void SHA384Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:82:6: error: conflicting types for ‘SHA384Update’
>    82 | void SHA384Update(SHA2_CTX *, const uint8_t *, size_t);
>       |      ^~~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:117:6: note: previous declaration of ‘SHA384Update’ was here
>   117 | void SHA384Update(SHA2_CTX *, const u_int8_t *, size_t)
>       |      ^~~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:83:6: error: conflicting types for ‘SHA384Pad’
>    83 | void SHA384Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:119:6: note: previous declaration of ‘SHA384Pad’ was here
>   119 | void SHA384Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:84:6: error: conflicting types for ‘SHA384Final’
>    84 | void SHA384Final(uint8_t [SHA384_DIGEST_LENGTH], SHA2_CTX *);
>       |      ^~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:120:6: note: previous declaration of ‘SHA384Final’ was here
>   120 | void SHA384Final(u_int8_t [SHA384_DIGEST_LENGTH], SHA2_CTX *)
>       |      ^~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:85:7: error: conflicting types for ‘SHA384End’
>    85 | char *SHA384End(SHA2_CTX *, char *);
>       |       ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:122:7: note: previous declaration of ‘SHA384End’ was here
>   122 | char *SHA384End(SHA2_CTX *, char *)
>       |       ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:90:6: error: conflicting types for ‘SHA512Init’
>    90 | void SHA512Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:134:6: note: previous declaration of ‘SHA512Init’ was here
>   134 | void SHA512Init(SHA2_CTX *);
>       |      ^~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:92:6: error: conflicting types for ‘SHA512Update’
>    92 | void SHA512Update(SHA2_CTX *, const uint8_t *, size_t);
>       |      ^~~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:136:6: note: previous declaration of ‘SHA512Update’ was here
>   136 | void SHA512Update(SHA2_CTX *, const u_int8_t *, size_t)
>       |      ^~~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:93:6: error: conflicting types for ‘SHA512Pad’
>    93 | void SHA512Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:138:6: note: previous declaration of ‘SHA512Pad’ was here
>   138 | void SHA512Pad(SHA2_CTX *);
>       |      ^~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:94:6: error: conflicting types for ‘SHA512Final’
>    94 | void SHA512Final(uint8_t [SHA512_DIGEST_LENGTH], SHA2_CTX *);
>       |      ^~~~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:139:6: note: previous declaration of ‘SHA512Final’ was here
>   139 | void SHA512Final(u_int8_t [SHA512_DIGEST_LENGTH], SHA2_CTX *)
>       |      ^~~~~~~~~~~
> In file included from ../../sk-usbhid.c:30:
> /usr/include/sha2.h:95:7: error: conflicting types for ‘SHA512End’
>    95 | char *SHA512End(SHA2_CTX *, char *);
>       |       ^~~~~~~~~
> In file included from ../../openbsd-compat/openbsd-compat.h:46,
>                  from ../../includes.h:174,
>                  from ../../sk-usbhid.c:19:
> ../../openbsd-compat/sha2.h:141:7: note: previous declaration of ‘SHA512End’ was here
>   141 | char *SHA512End(SHA2_CTX *, char *)
>       |       ^~~~~~~~~
> make[2]: *** [Makefile:196: sk-usbhid.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/02/13/openssh_8.4p1-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

--- End Message ---
--- Begin Message ---
Source: openssh
Source-Version: 1:8.4p1-4
Done: Colin Watson <cjwatson@debian.org>

We believe that the bug you reported is fixed in the latest version of
openssh, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 982705@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated openssh package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 15 Feb 2021 10:25:17 +0000
Source: openssh
Architecture: source
Version: 1:8.4p1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 982705
Changes:
 openssh (1:8.4p1-4) unstable; urgency=medium
 .
   * Avoid using libmd's <sha2.h> even if it's installed (closes: #982705).
Checksums-Sha1:
 d8252aec401862bab3abcf115be880493fd3b4d4 3353 openssh_8.4p1-4.dsc
 d8581700f5318550902e8c516fc02e70490180fa 178920 openssh_8.4p1-4.debian.tar.xz
Checksums-Sha256:
 90b6960dfb1977c0435ece58626178c92f7cf0d8541bf6bc994aaa5b7789cd52 3353 openssh_8.4p1-4.dsc
 b1a4ea6486978c984cea450ddc4da04b106f2e34a14886b394027fbaec83d275 178920 openssh_8.4p1-4.debian.tar.xz
Files:
 e14c495d14a592272531aa601229478a 3353 net standard openssh_8.4p1-4.dsc
 035368cefdfc7018a7b3889af4b8dbf4 178920 net standard openssh_8.4p1-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmAqTHcACgkQOTWH2X2G
UAtiHxAAgkLeBJo6XTq6pJL60EB/UtTNHjterGCHW+GUVYmJrFYR+xgN0hZ49WJl
iqL6UF1vDbSkd5nEOV1OVAOpvWpubBz9eStMFSYWd3dd8mUnJMoTDPf9AVdnzz+B
XnmkrJBYSFv3HkXdbzliSJECB6T8JBp1M0/UAyz7vM09P1Zr65+/m1MSG2kICris
wOm6bmWpaMpqF4/TG+bnWt0tQi8mXokA11uNhxoRtv1LO/hWOyN+GFp/8BahU9A0
j5vONhAdscghtpyJmzs8EqtqHeZT0/YASzW+xBIP+LrxiK31nbEL95L1mKCvBQjP
UJaM4/yOROUR7I7Sp5/3EVXBQ9o7QhSgohqDDKIM5US+8WMjgs0H1a0OXB9wRH+K
dUK3i4c/3PI7ptXIV9YXS8fmvTeyXlLZlpGclarhg8qcNGzjxsh8Vz/LKEtqLGma
x8LbwtOzZKS4D2nqcU0v+pZl4mlk+JZvvb6etWKtK21TZtbbYoE5Zn0Q5Cehkedh
gWwqT964aF5d6bief6LruCnSVeYZf/QFtufgUsjJWRgYCl9eazJQVEuGuBEfhAeZ
wzPu9TjlOCJD+FXzHnAYBjVodihizk6CoXUrVNqxZ2tabE47dtj+wH+jnD63nL0m
8z65jwEnRuoBGSvCjZauC32dTj27wPfjeaOL1T72y8BK+Wr6xUw=
=lnPs
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: