Bug 868587

Summary: fipstest.c:930: error: 'HASH_AlgSHA224' undeclared
Product: [Fedora] Fedora Reporter: Mr-4 <mr.dash.four>
Component: nss-softoknAssignee: Elio Maldonado Batiz <emaldona>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: emaldona, kengert, rrelyea
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-22 16:27:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mr-4 2012-10-21 00:33:07 UTC
Description of problem:
During compilation (building from srpm) I get the following errors:
fipstest.c: In function 'sftk_fips_HMAC_PowerUpSelfTest':
fipstest.c:930: error: 'HASH_AlgSHA224' undeclared (first use in this function)
fipstest.c:930: error: (Each undeclared identifier is reported only once
fipstest.c:930: error: for each function it appears in.)
fipstest.c:934: error: 'SHA224_LENGTH' undeclared (first use in this function)
fipstest.c: In function 'sftk_fips_SHA_PowerUpSelfTest':
fipstest.c:1051: error: implicit declaration of function 'SHA224_HashBuf'
fipstest.c:1056: error: 'SHA224_LENGTH' undeclared (first use in this function)
make[2]: *** [Linux3.3_x86_64_glibc_PTH_64_OPT.OBJ/fipstest.o] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/nss-softokn-3.13.4/mozilla/security/nss/lib/softoken'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/nss-softokn-3.13.4/mozilla/security/nss/lib'
make: *** [libs] Error 2
make: Leaving directory `/builddir/build/BUILD/nss-softokn-3.13.4/mozilla/security/nss'
error: Bad exit status from /var/tmp/rpm-tmp.UfgtKO (%build)


Version-Release number of selected component (if applicable):
3.13.4

How reproducible:
Always

Steps to Reproduce:
1. rpmbuild -bb nss-softokn
2.
3.
  
Actual results:
The above errors

Expected results:
Compilation to succeed.

Additional info:
grep -r "HASH_AlgSHA224" indicates that this is defined in a couple of places:
/mozilla/dist/public/nss/hasht.h
/mozilla/security/nss/lib/freebl/hasht.h

Comment 1 Elio Maldonado Batiz 2012-10-21 21:26:07 UTC
Hi Mr-4, You are using 3.13.4 and that's likely the problem. The current version of nss-softokn is 3.13.6.

Please download the srpm from 
http://koji.fedoraproject.org/koji/buildinfo?buildID=358521
and copy that to it to ~/rpmbuild/SRPM. 
1. cd ~/rembuild/SRPM
2. rpm -ihv nss-softokn-3.13.6-1.fc16.src.rpm
3. cd ../SPECS
4. rpmbuild -bb nss-softokn
which works as expected and so does rpmbuild -ba nss-softokn.

Comment 2 Mr-4 2012-10-22 16:15:53 UTC
Thanks, the new version works flawlessly, so it must have been a specific gremlin to the particular version I've had on my machine. You may close this, thanks again.