This is an automatic notification regarding your Bug report
which was filed against the openssh package:
#857621: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
It has been closed by Colin Watson <cjwatson@debian.org>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Colin Watson <cjwatson@debian.org> by
replying to this email.
--
857621: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857621
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
---------- Forwarded message ----------
From: Colin Watson <cjwatson@debian.org>
To: 857621-close@bugs.debian.org
Cc:
Bcc:
Date: Mon, 13 Mar 2017 12:36:22 +0000
Subject: Re: Bug#857621: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
On Mon, Mar 13, 2017 at 12:33:26PM +0100, jean-christophe manciot wrote:
> ../../sshkey.c: In function ‘sshkey_size’:
> ../../sshkey.c:275:28: error: dereferencing pointer to incomplete type ‘RSA
> {aka struct rsa_st}’
> return BN_num_bits(k->rsa->n);
> ^~
You appear to be building with OpenSSL 1.1. OpenSSH upstream doesn't
support this yet, and the Debian build-dependencies already account for
this ("libssl1.0-dev | libssl-dev (<< 1.1.0~)"), so I think you must be
attempting to build without the build-dependencies properly satisfied.
--
Colin Watson [cjwatson@debian.org]
---------- Forwarded message ----------
From: jean-christophe manciot <actionmystique@gmail.com>
To: submit@bugs.debian.org
Cc:
Bcc:
Date: Mon, 13 Mar 2017 12:33:26 +0100
Subject: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’Package: opensshVersion: 7.4p1-7Tag: debian/1%7.4p1-7Sources: https://anonscm.debian.org/git/pkg-ssh/ openssh.git Building with branch=master & tag=debian/1%7.4p1-7echo --------echo Cleaningecho --------cd git-opensshsudo -u actionmystique -H git-reset-clean-pull-checkout.sh pristine-tar sudo -u actionmystique -H git-reset-clean-pull-checkout.sh $branch $tag echo ---------------------------echo Checking Build Dependenciesecho ---------------------------check-build-dependencies.shecho --------echo Buildingecho --------sudo -u actionmystique -H git checkout $branchsudo -u actionmystique -H gbp buildpackage --git-verbose --git-debian-branch=$branch --git-pristine-tarleads to:...ranlib libopenbsd-compat.amake[3]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/OpenSSH/git- openssh/debian/build-deb/ openbsd-compat' gcc -g -O2 -fdebug-prefix-map=/home/actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/home/ actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -DSSH_EXTRAVERSION=\"Ubuntu-8\ " -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -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_PIDDIR=\"/var/run\ " -D_PATH_PRIVSEP_CHROOT_DIR=\"/ var/run/sshd\" -DHAVE_CONFIG_H -c ../../ssh_api.c -o ssh_api.o gcc -g -O2 -fdebug-prefix-map=/home/actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/home/ actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -DSSH_EXTRAVERSION=\"Ubuntu-8\ " -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -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_PIDDIR=\"/var/run\ " -D_PATH_PRIVSEP_CHROOT_DIR=\"/ var/run/sshd\" -DHAVE_CONFIG_H -c ../../ssherr.c -o ssherr.o gcc -g -O2 -fdebug-prefix-map=/home/actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/home/ actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -DSSH_EXTRAVERSION=\"Ubuntu-8\ " -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -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_PIDDIR=\"/var/run\ " -D_PATH_PRIVSEP_CHROOT_DIR=\"/ var/run/sshd\" -DHAVE_CONFIG_H -c ../../sshbuf.c -o sshbuf.o gcc -g -O2 -fdebug-prefix-map=/home/actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-strong -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/home/ actionmystique/Program-Files/ Ubuntu/OpenSSH/git-openssh=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -DSSH_EXTRAVERSION=\"Ubuntu-8\ " -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -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_PIDDIR=\"/var/run\ " -D_PATH_PRIVSEP_CHROOT_DIR=\"/ var/run/sshd\" -DHAVE_CONFIG_H -c ../../sshkey.c -o sshkey.o ../../sshkey.c: In function ‘sshkey_size’:../../sshkey.c:275:28: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’return BN_num_bits(k->rsa->n);^~../../sshkey.c:278:28: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’return BN_num_bits(k->dsa->p);^~../../sshkey.c: In function ‘sshkey_new’:../../sshkey.c:479:11: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’(rsa->n = BN_new()) == NULL ||^~../../sshkey.c:491:11: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’(dsa->p = BN_new()) == NULL ||^~../../sshkey.c: In function ‘sshkey_parse_private_pem_fileblob’: ../../sshkey.c:3793:8: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’if (pk->type == EVP_PKEY_RSA &&^~Makefile:153: recipe for target 'sshkey.o' failedmake[2]: *** [sshkey.o] Error 1make[2]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/OpenSSH/git- openssh/debian/build-deb' debian/rules:140: recipe for target 'override_dh_auto_build-arch' failedmake[1]: *** [override_dh_auto_build-arch] Error 2make[1]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/OpenSSH/git- openssh' debian/rules:121: recipe for target 'build' failedmake: *** [build] Error 2dpkg-buildpackage: error: debian/rules build gave error exit status 2debuild: fatal error at line 1376:dpkg-buildpackage -rfakeroot -D -us -uc -i -I failedgbp:error: 'debuild -i -I' failed: it exited with 29--Jean-Christophe