After successfully building the combination of openssl-fips-2.0.2 and 
openssl-1.0.1e on Intel Linux I am trying to do the same on mainframe Linux, 
64-bit SuSE 10.2 in my case.

When I unpack openssl-fips-2.0.2 and do "./config; make" it fails with

*** No rule to make target `s390xcap.o', needed by `fips'.

So I found a copy of s390xcap.c after unpacking the openssl-1.0.1e tarball and 
copied it to the FIPS crypto directory and was then able to make and install.

Question: was that the correct action to take?

Next I tried to build openssl-1.0.1e after ./config fips + prefix options. It 
compiles everything but when it tries to link the openssl executable it dumps a 
long list of errors starting with:

../libcrypto.a(aes-s390x.o): In function `AES_xts_encrypt':
aes-s390x.S:(.text+0x2490): multiple definition of `AES_xts_encrypt'
/usr/local/ssl/fips-2.0/lib//fipscanister.o:(.text+0x34ed0): first defined here
/usr/lib64/gcc/s390x-suse-linux/4.1.2/../../../../s390x-suse-linux/bin/ld: 
Warning: size of symbol `AES_xts_encrypt' changed from 750 in 
/usr/local/ssl/fips-2.0/lib//fipscanister.o to 722 in 
../libcrypto.a(aes-s390x.o)
../libcrypto.a(aes-s390x.o): In function `AES_xts_decrypt':
aes-s390x.S:(.text+0x2770): multiple definition of `AES_xts_decrypt'
/usr/local/ssl/fips-2.0/lib//fipscanister.o:(.text+0x351c0): first defined here
/usr/lib64/gcc/s390x-suse-linux/4.1.2/../../../../s390x-suse-linux/bin/ld: 
Warning: size of symbol `AES_xts_decrypt' changed from 1094 in 
/usr/local/ssl/fips-2.0/lib//fipscanister.o to 1032 in 
../libcrypto.a(aes-s390x.o)
/usr/local/ssl/fips-2.0/lib//fipscanister.o: In function `fips_bn_uadd':
(.text+0x1940): undefined reference to `fips_bn_add_words'
/usr/local/ssl/fips-2.0/lib//fipscanister.o: In function `fips_bn_div':
(.text+0x2f2a): undefined reference to `fips_bn_div_words'
/usr/local/ssl/fips-2.0/lib//fipscanister.o: In function `fips_bn_div':
(.text+0x301c): undefined reference to `fips_bn_mul_words'
/usr/local/ssl/fips-2.0/lib//fipscanister.o: In function `fips_bn_div':
(.text+0x3064): undefined reference to `fips_bn_sub_words'
/usr/local/ssl/fips-2.0/lib//fipscanister.o: In function `fips_bn_div':

And ending with a bunch more of different "undefined reference" errors.

Question: any idea as to how to resolve this?

Andrew
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to