L.S.

About a week ago, I mentioned in a post to this newsgroup a problem building shared libraries for openssl0.9.7f on Linux.

I wondered whether others are able to build shared libs, or perhaps are able to reproduce the problem.

Below you find specifics about my system and the build process.

Thanks in advance,

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


System specification: -------------------- cpu: i586 Linux version: 2.4.21-202-athlon gcc version: 3.3.1 (SuSE Linux) openssl-0.9.7f

Build sequence and make output:
------------------------------
    ./config shared
    make

The last lines from the output from make (those that I considered
relevant) are:

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 [email protected] Automated List Manager [EMAIL PROTECTED]

Reply via email to