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

Bug#857621: marked as done (error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’)



Your message dated Mon, 13 Mar 2017 12:36:22 +0000
with message-id <20170313123622.GP20455@riva.ucam.org>
and subject line Re: Bug#857621: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
has caused the Debian Bug report #857621,
regarding error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
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.)


-- 
857621: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857621
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: openssh
Version: 7.4p1-7
Tag: debian/1%7.4p1-7
Sources: https://anonscm.debian.org/git/pkg-ssh/openssh.git

Building with branch=master & tag=debian/1%7.4p1-7
        echo --------
        echo Cleaning
        echo --------
        cd git-openssh
        sudo -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 Dependencies
        echo ---------------------------
        check-build-dependencies.sh

        echo --------
        echo Building
        echo --------
        sudo -u actionmystique -H git checkout $branch
        sudo -u actionmystique -H gbp buildpackage --git-verbose --git-debian-branch=$branch --git-pristine-tar

leads to:
...
ranlib libopenbsd-compat.a
make[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' failed
make[2]: *** [sshkey.o] Error 1
make[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' failed
make[1]: *** [override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/OpenSSH/git-openssh'
debian/rules:121: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29

--
Jean-Christophe

--- End Message ---
--- Begin Message ---
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]

--- End Message ---

Reply to: