Bug 868587 - fipstest.c:930: error: 'HASH_AlgSHA224' undeclared
Summary: fipstest.c:930: error: 'HASH_AlgSHA224' undeclared
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: nss-softokn
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elio Maldonado Batiz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-21 00:33 UTC by Mr-4
Modified: 2012-10-22 16:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-22 16:27:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.