Hi All, I am trying building fips capable openssl and getting following error:
*gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_DOING_MAKEDEPEND -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_SCTP -DOPENSSL_NO_JPAKE -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -I/unixhome/mrnpawar/openssl/linux_x86/fips//include -c -o m_md2.o m_md2.cm_md2.c: In function `init':m_md2.c:74: error: void value not ignored as it ought to bem_md2.c: In function `update':m_md2.c:77: error: void value not ignored as it ought to bem_md2.c: In function `final':m_md2.c:80: error: void value not ignored as it ought to bemake[2]: *** [m_md2.o] Error 1make[2]: Leaving directory `/unixhome/mrnpawar/openssl/linux_x86/openssl-1.0.1h/crypto/evp'make[1]: *** [subdirs] Error 1make[1]: Leaving directory `/unixhome/mrnpawar/openssl/linux_x86/openssl-1.0.1h/crypto'make: *** [build_crypto] Error 1* Here is the sequence of build that i followed with options provided: 1) Copy and Extract sources 2) cd openssl-fips-ecp-2.0.5 3) run : ./config make make install INSTALLTOP=/linux_x86/fips 4) cd openssl-1.0.1h 5) run : ./config fips shared no-idea no-mdc2 no-ec2m no-asm no-sctp no-jpake md2 -DOPENSSL_DOING_MAKEDEPEND -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_SCTP -DOPENSSL_NO_JPAKE --with-fipslibdir=/unixhome/mrnpawar/openssl/linux_x86/fips/lib/ --with-fipsdir=/unixhome/mrnpawar/openssl/linux_x86/fips/ make depend make The errors are seen in the last make run. I checked definition of init, update and final functions in md2.h which return int value. not sure what is causing this error. Need urgent help on this. Also, in the config option,i have added -DOPENSSL_DOING_MAKEDEPEND -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_SCTP -DOPENSSL_NO_JPAKE to avoid many other errors. Any suggestions to achieve the same with other options? Thanks & Regards, Mrunal
