libs='-L. '; for i in crypto; do \
( 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 -lc ) || exit 1; \
libs="$libs -l$i"; \
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. -lc
/usr/bin/ld: warning: sparc:v9 architecture of input file `libcrypto.a(cryptlib.o)' is incompatible with sparc output
/usr/bin/ld: warning: sparc:v9 architecture of input file `libcrypto.a(mem.o)' is incompatible with sparc output
...
...
libcrypto.a(dso_dlfcn.o)(.text+0x5a4): In function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [do_gnu-shared] Error 1
make[3]: Leaving directory `/usr/local/src/openssl-0.9.7-stable-SNAP-20021202'
make[2]: *** [libcrypto.so.0.9.7] Error 2
make[2]: Leaving directory `/usr/local/src/openssl-0.9.7-stable-SNAP-20021202'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/usr/local/src/openssl-0.9.7-stable-SNAP-20021202/crypto'
make: *** [sub_all] Error 1
Ricardo.-
Andy Polyakov wrote:
Next step is to add shared lib bits. Therefore change to:"linux64-sparcv9","gcc:-m64 -mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3all test passed (./Configure linux64-sparcv9 no-asm & without no-asm).
-fomit-frame-pointer -Wall::-D_REENTRANT:ULTRASPARC::SIXTY_FOUR_BIT_LONG
RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
"linux64-sparcv9","gcc:-m64 -mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3
-fomit-frame-pointer -Wall::-D_REENTRANT:ULTRASPARC::SIXTY_FOUR_BIT_LONG
RC4_CHAR RC4_CHUNK DES_UNROLL
BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
and then './Configure linux64-sparcv9 shared' and finally 'make'. Does
it build? What does 'ldd apps/openssl' return? Does 'make test' pass?
A.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]