I am successful at building a STATIC library...but shared library build fails.

gmake[3]: Entering directory `/junk/openssl-0.9.7e'
+ rm -f libcrypto.so.0
+ rm -f libcrypto.so
+ rm -f libcrypto.so.0.9.7
libs='-L. '; for i in crypto; do \
if [ "crypto" = "ssl" -a -n "" ]; then \
libs=" $libs"; \
fi; \
( set -x; gcc \
-shared -o lib$i.so.0.9.7 \
-Wl,-soname=lib$i.so.0.9.7 \
-Wl,-Bsymbolic \
-Wl,--whole-archive lib$i.a \
-Wl,--no-whole-archive $libs -lz -lc ) || exit 1; \
libs="-l$i $libs"; \
done
+ gcc -shared -o libcrypto.so.0.9.7 -Wl,-soname=libcrypto.so.0.9.7 -Wl,-Bsymbolic -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L. -lz -lc
libcrypto.a(fips-dx86-elf.o)(.text+0x0): In function `DES_encrypt1':
: multiple definition of `DES_encrypt1'
libcrypto.a(dx86-elf.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `DES_encrypt1' changed from 3886 in libcrypto.a(dx86-elf.o) to 3873 in libcrypto.a(dx86-elf.o)
libcrypto.a(fips-dx86-elf.o)(.text+0xf30): In function `DES_encrypt2':
: multiple definition of `DES_encrypt2'
libcrypto.a(dx86-elf.o)(.text+0xf30): first defined here
/usr/bin/ld: Warning: size of symbol `DES_encrypt2' changed from 3734 in libcrypto.a(dx86-elf.o) to 3715 in libcrypto.a(dx86-elf.o)
libcrypto.a(fips-dx86-elf.o)(.text+0x1dc0): In function `DES_encrypt3':
: multiple definition of `DES_encrypt3'
libcrypto.a(dx86-elf.o)(.text+0x1dd0): first defined here
libcrypto.a(fips-dx86-elf.o)(.text+0x1ef0): In function `DES_decrypt3':
: multiple definition of `DES_decrypt3'
libcrypto.a(dx86-elf.o)(.text+0x1f00): first defined here
libcrypto.a(fips-dx86-elf.o)(.text+0x2020): In function `DES_ncbc_encrypt':
: multiple definition of `DES_ncbc_encrypt'
libcrypto.a(dx86-elf.o)(.text+0x2030): first defined here
libcrypto.a(fips-dx86-elf.o)(.text+0x21e0): In function `DES_ede3_cbc_encrypt':
: multiple definition of `DES_ede3_cbc_encrypt'
libcrypto.a(dx86-elf.o)(.text+0x21f0): first defined here
gmake[3]: *** [do_gnu-shared] Error 1
gmake[3]: Leaving directory `/junk/openssl-0.9.7e'
gmake[2]: *** [libcrypto.so.0.9.7] Error 2
gmake[2]: Leaving directory `/junk/openssl-0.9.7e'
gmake[1]: *** [shared] Error 2
gmake[1]: Leaving directory `/junk/openssl-0.9.7e/fips'
gmake: *** [sub_all] Error 1


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to