(Re-Aligning)
Hi,
I am trying to build FIPS capable openssl 1.0.1c.(Cross Compiling, but both
OS s are linux x86_64)
Following are the steps i followed-

1) Downloaded openssl-fips-2.0.2.tar.gz 
    untared and build object module in /common/openssl/openssl-fips-2.0.2/ 
using -
                                    ./config
                                     make
   
 fipscanister.o and sha1 files are formed in
/common/openssl/openssl-fips-2.0.2/fips/  folder.

2) Downloaded openssl-1.0.1c.tar.gz
    untared and build in /common/openssl/openssl-1.0.1c/   using commands-
                         ./config fips
--with-fipsdir=/common/openssl/openssl-fips-2.0.2/
                          make depend
                          make
   Initially make failed since Makefile of 1.0.1c expected *fipscanister.o* 
to be in /common/openssl/openssl-fips-2.0.2/lib and *fipsld*  in
/common/openssl/openssl-fips-2.0.2/bin. But those folders were not there. So
i created those two folders and copied files to there.

Now the make is failing with following log.

make[2]: Leaving directory `/common/openssl/openssl-1.0.1c/crypto/cmac'
if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
        (cd ..; make libcrypto.so.1.0.0); \
fi
make[2]: Entering directory `/common/openssl/openssl-1.0.1c'
[ -z "libcrypto" ] || gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3
-Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
-DOPENSSL_BN_ASM_GF2m
-I/software/src/common/openssl/openssl-fips-2.0.2//include -DSHA1_ASM
-DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM
-DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \
        -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso  \
        /common/openssl/openssl-fips-2.0.2//lib/fips_premain.c 
/common/openssl/openssl-fips-2.0.2//lib/fipscanister.o \
        libcrypto.a -ldl
make[3]: Entering directory `/common/openssl/openssl-1.0.1c'
make[4]: Entering directory `/common/openssl/openssl-1.0.1c'
libcrypto.a(x86_64cpuid.o)(.text+0x1a0): In function `OPENSSL_cleanse':
: multiple definition of `OPENSSL_cleanse'
libcrypto.a(mem_clr.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `OPENSSL_cleanse' changed from 90 in
libcrypto.a(mem_clr.o) to 81 in libcrypto.a(x86_64cpuid.o)
libcrypto.a(wp-x86_64.o)(.text+0x0): In function `whirlpool_block':
: multiple definition of `whirlpool_block'
libcrypto.a(wp_block.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `whirlpool_block' changed from 3606 in
libcrypto.a(wp_block.o) to 2148 in libcrypto.a(wp-x86_64.o)
libcrypto.a(aes-x86_64.o)(.text+0x460): In function `asm_AES_encrypt':
: multiple definition of `AES_encrypt'
libcrypto.a(aes_core.o)(.text+0x650): first defined here
/usr/bin/ld: Warning: size of symbol `AES_encrypt' changed from 1262 in
libcrypto.a(aes_core.o) to 179 in libcrypto.a(aes-x86_64.o)
.
.
.
libcrypto.a(x86_64-mont.o)(.text+0x0): In function `bn_mul_mont':
: multiple definition of `bn_mul_mont'
libcrypto.a(bn_asm.o)(.text+0x4af0): first defined here
/usr/bin/ld: Warning: size of symbol `bn_mul_mont' changed from 3 in
libcrypto.a(bn_asm.o) to 591 in libcrypto.a(x86_64-mont.o)
collect2: ld returned 1 exit status
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory `/common/openssl/openssl-1.0.1c'
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory `/common/openssl/openssl-1.0.1c'
make[2]: *** [libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory `/common/openssl/openssl-1.0.1c'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/common/openssl/openssl-1.0.1c/crypto'
make: *** [build_crypto] Error 1
bash-3.00$


Can you please help me with this errors?
- Cipher



--
View this message in context: 
http://openssl.6102.n7.nabble.com/Build-issue-openssl-1-0-1c-with-FIPS-tp44235p44236.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to