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

Bug#857621: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’



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

Reply to: