L.S.

Building openssl with the "shared" option to config, fails on my Linux system.
(The observed problem did not occur when building openssl0.9.7e).


I did:

    ./config shared
    make

The last lines from the output from make (those that I considered relevant) are appended to this posting.

I did read the remark in the INSTALL file, saying:

    "Shared library is currently an experimental feature."


Can anybody clarify whether a build should be possible? If that should be possible, what's gone wrong in my case?


Thanks in advance,

Erik Leunissen
==============


make output follows ===================

make[2]: Leaving directory `/usr/local/src/openssl-0.9.7f/crypto/krb5'
make[2]: Entering directory `/usr/local/src/openssl-0.9.7f'
make[3]: Entering directory `/usr/local/src/openssl-0.9.7f'
+ 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 -ldl -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. -ldl -lc
libcrypto.a(c_enc.o)(.text+0x0): In function `CAST_encrypt':
: multiple definition of `CAST_encrypt'
libcrypto.a(cx86-elf.o)(.text+0x0): first defined here
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: Warning: size of symbol `CAST_encrypt' changed from 1186 in libcrypto.a(cx86-elf.o) to 1374 in libcrypto.a(cx86-elf.o)
libcrypto.a(c_enc.o)(.text+0x560): In function `CAST_decrypt':
: multiple definition of `CAST_decrypt'
libcrypto.a(cx86-elf.o)(.text+0x4b0): first defined here
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: Warning: size of symbol `CAST_decrypt' changed from 1184 in libcrypto.a(cx86-elf.o) to 1339 in libcrypto.a(cx86-elf.o)
libcrypto.a(c_enc.o)(.text+0xaa0): In function `CAST_cbc_encrypt':
: multiple definition of `CAST_cbc_encrypt'
libcrypto.a(cx86-elf.o)(.text+0x950): first defined here
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: Warning: size of symbol `CAST_cbc_encrypt' changed from 496 in libcrypto.a(cx86-elf.o) to 1411 in libcrypto.a(cx86-elf.o)
collect2: ld returned 1 exit status
make[3]: *** [do_gnu-shared] Error 1
make[3]: Leaving directory `/usr/local/src/openssl-0.9.7f'
make[2]: *** [libcrypto.so.0.9.7] Error 2
make[2]: Leaving directory `/usr/local/src/openssl-0.9.7f'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/usr/local/src/openssl-0.9.7f/crypto'
make: *** [sub_all] Error 1


== end of message ==

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

Reply via email to