Issue running windows signer for 0.15.0rc2 #11123

issue fanquake opened this issue on August 24, 2017
  1. fanquake commented at 5:34 AM on August 24, 2017: member

    I haven't seen this issue gitian building before, and had no issue running the signer for rc1. My gitian system shouldn't have changed between builds.

    + LANG=en_US.UTF-8
    + export LC_ALL=en_US.UTF-8
    + LC_ALL=en_US.UTF-8
    + umask 002
    + export OUTDIR=/home/ubuntu/out
    + OUTDIR=/home/ubuntu/out
    + GBUILD_BITS=64
    + MAKEOPTS=(-j2)
    + cd build/signature
    + git reset -q --hard
    + git clean -q -f -d
    + REFERENCE_DATETIME='2017-08-21 19:46:12'
    + REFERENCE_DATE=2017-08-21
    + REFERENCE_TIME=19:46:12
    + cd build
    ++ pwd
    + BUILD_DIR=/home/ubuntu/build
    + SIGDIR=/home/ubuntu/build/signature/win
    + UNSIGNED_DIR=/home/ubuntu/build/unsigned
    + sha256sum -c
    + echo 'f9a8cdb38b9c309326764ebc937cba1523a3a751a7ab05df3ecc99d18ae466c9  osslsigncode-1.7.1.tar.gz'
    osslsigncode-1.7.1.tar.gz: OK
    + echo 'a8c4e9cafba922f89de0df1f2152e7be286aba73f78505169bc351a7938dd911  osslsigncode-Backports-to-1.7.1.patch'
    + sha256sum -c
    osslsigncode-Backports-to-1.7.1.patch: OK
    + mkdir -p /home/ubuntu/build/unsigned
    + tar -C /home/ubuntu/build/unsigned -xf bitcoin-win-unsigned.tar.gz
    + tar xf osslsigncode-1.7.1.tar.gz
    + cd osslsigncode-1.7.1
    + patch -p1
    patching file osslsigncode.c
    + ./configure --without-gsf --without-curl --disable-dependency-tracking
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... none
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking how to run the C preprocessor... gcc -E
    checking whether ln -s works... yes
    checking for a sed that does not truncate output... /bin/sed
    checking whether make sets $(MAKE)... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for ANSI C header files... (cached) yes
    checking whether time.h and sys/time.h may both be included... yes
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking for mmap... yes
    checking windows.h usability... no
    checking windows.h presence... no
    checking for windows.h... no
    checking for dlopen in -ldl... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking for getpass... yes
    checking for OPENSSL... yes
    checking for LIBCURL... no
    checking for curl_easy_strerror in -lcurl... no
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    + make
    (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/ubuntu/build/osslsigncode-1.7.1/missing autoheader)
    rm -f stamp-h1
    touch config.h.in
    cd . && /bin/bash ./config.status config.h
    config.status: creating config.h
    config.status: config.h is unchanged
    make  all-am
    make[1]: Entering directory `/home/ubuntu/build/osslsigncode-1.7.1'
    gcc -DHAVE_CONFIG_H -I.       -g -O2 -c -o osslsigncode.o osslsigncode.c
    gcc    -g -O2   -o osslsigncode osslsigncode.o  -lcrypto    
    make[1]: Leaving directory `/home/ubuntu/build/osslsigncode-1.7.1'
    + find /home/ubuntu/build/unsigned -name '*-unsigned.exe'
    + read i
    ++ basename /home/ubuntu/build/unsigned/unsigned/bitcoin-0.15.0-win64-setup-unsigned.exe
    + INFILE=bitcoin-0.15.0-win64-setup-unsigned.exe
    ++ echo bitcoin-0.15.0-win64-setup-unsigned.exe
    ++ sed s/-unsigned//
    + OUTFILE=bitcoin-0.15.0-win64-setup.exe
    + ./osslsigncode attach-signature -in /home/ubuntu/build/unsigned/unsigned/bitcoin-0.15.0-win64-setup-unsigned.exe -out /home/ubuntu/out/bitcoin-0.15.0-win64-setup.exe -sigin /home/ubuntu/build/signature/win/bitcoin-0.15.0-win64-setup-unsigned.exe.pem
    Signature mismatch.
    
    Failed
    Current PE checksum   : 00DB1471
    Calculated PE checksum: 00DB1471
    
    Message digest algorithm  : SHA1
    Current message digest    : 73AAB82BB3761BE13A9DC0ACAC0BD35AC51C48DC
    Calculated message digest : 97C1D01159CAFD4144D22DDC8A1B39D391A69509    MISMATCH!!!
    
    Signature verification: ok
    
    Number of signers: 1
    	Signer [#0](/bitcoin-bitcoin/0/):
    		Subject: /C=US/postalCode=98104/ST=WA/L=Seattle/street=Ste 300/street=71 Columbia St/O=The Bitcoin Foundation, Inc./CN=The Bitcoin Foundation, Inc.
    		Issuer : /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Code Signing CA
    
    Number of certificates: 4
    	Cert [#0](/bitcoin-bitcoin/0/):
    		Subject: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Certification Authority
    		Issuer : /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Certification Authority
    	Cert [#1](/bitcoin-bitcoin/1/):
    		Subject: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Code Signing CA
    		Issuer : /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Certification Authority
    	Cert [#2](/bitcoin-bitcoin/2/):
    		Subject: /C=US/postalCode=98104/ST=WA/L=Seattle/street=Ste 300/street=71 Columbia St/O=The Bitcoin Foundation, Inc./CN=The Bitcoin Foundation, Inc.
    		Issuer : /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Code Signing CA
    	Cert [#3](/bitcoin-bitcoin/3/):
    		Subject: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO SHA-1 Time Stamping Signer
    		Issuer : /C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Object
    
  2. fanquake added the label Build system on Aug 24, 2017
  3. fanquake added the label Windows on Aug 24, 2017
  4. fanquake added this to the milestone 0.15.0 on Aug 24, 2017
  5. laanwj assigned theuni on Aug 24, 2017
  6. achow101 commented at 7:35 PM on August 24, 2017: member

    Do you get the same error every time you try running it?

  7. theuni commented at 10:42 PM on August 28, 2017: member

    rc1:

    cory@desktop:/tmp/signtest$ osslsigncode verify bitcoin-0.15.0rc1-win64-setup.exe 
    Current PE checksum   : 00DB0EAA
    Calculated PE checksum: 00DB0EAA
    
    Current message digest    : 97C1D01159CAFD4144D22DDC8A1B39D391A69509
    Calculated message digest : 97C1D01159CAFD4144D22DDC8A1B39D391A69509
    

    rc2:

    cory@desktop:/tmp/sign$ osslsigncode verify bitcoin-0.15.0rc2-win64-setup.exe
    Current PE checksum   : 00DB66FF
    Calculated PE checksum: 00DB66FF
    
    Message digest algorithm  : SHA1
    Current message digest    : 73AAB82BB3761BE13A9DC0ACAC0BD35AC51C48DC
    Calculated message digest : 73AAB82BB3761BE13A9DC0ACAC0BD35AC51C48DC
    

    Notice that you have one of each digest. Looks like you're trying to attach the rc2 signature to the rc1 binary. Did you forget to copy the rc2 unsigned result to inputs/ ?

  8. fanquake commented at 12:37 AM on August 29, 2017: member

    @theuni Yep, looks like this was just my fault. I've now built the rc3 sigs with no issue.

  9. fanquake closed this on Aug 29, 2017

  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me