hello,

has anyone successfully built the shared lib version of openssl 0.9.3a for
solaris 7 on intel?  i've seen some things in the archive that were promising,
but nothing that has worked so far.  i'm not even sure this is a problem with
the libcrypto.so right now, but that is the piece that is not working.


i'm having a problem with shared libraries for openssl 0.9.3a under
solaris 7 on x86.  gcc 2.7.2.3, sun's ld.  NO_ASM for now.

i modified the the linux-shared rule in the Makefile slightly to get
libcrypto.so and libssl.so, although i'm not sure the ld options are
complete/correct.

solaris-shared:
  for i in ${SHLIBDIRS}; do \
  rm -f lib$$i.a lib$$i.so \
    lib$$i.so.${MAJOR} lib$$i.so.${MAJOR}.${MINOR}; \
  ${MAKE} CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='-fPIC ${CFLAG}' SDIRS='${SDIR
S}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_AS
M='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4
_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OB
J='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' DIRS=$$i clean
all || exit 1; \
  ( set -x; ${CC}  -shared -o lib$$i.so.${MAJOR}.${MINOR} \
    -Wl,-zallextract lib$$i.a \
    -Wl,-zdefaultextract -lc ) || exit 1; \
  rm -f lib$$i.a; make -C $$i clean || exit 1 ;\
  done;
  @set -x; \
  for i in ${SHLIBDIRS}; do \
  ln -s lib$$i.so.${MAJOR}.${MINOR} lib$$i.so.${MAJOR}; \
  ln -s lib$$i.so.${MAJOR} lib$$i.so; \
  done;


this builds the shared libs and 'make test' passes all tests.

the problem i am having is when trying to use these shared libs with other
applications.  in particular, Trf 1.7, which is a Tcl extention.


sfodev01[60]# make test
... done
...
../app/tclAppInit.c:15: warning: `cvs_id' defined but not used
gcc -Wall  ./../app/tclAppInit.o -L/opt/local/src/tcl/trf1.7/unix -ltrf 
-L../../tcl8.0.4/unix -ltcl8.0 -ldl  -lsocket -lnsl -lm  -R 
/usr/local/lib/Trf1.7:../../tcl8.0.4/unix -o ./tclsh
... done tclsh
TCL_LIBRARY=/opt/local/src/tcl/tcl8.0.4/library; export TCL_LIBRARY; \
LD_LIBRARY_PATH=".:./unix:../../tcl8.0.4/unix:/usr/local/lib:/usr/local/ssl/lib"; \
export LD_LIBRARY_PATH; SHLIB_PATH="D_LIBRARY_PATH"; export SHLIB_PATH ; \
echo package require Memchan \; cd ./../tests \; source all | ./tclsh
________.test
        performing crc check of incoming digests (digests.crc)
        performing crc-zlib check of incoming digests (digests.crc-zlib)
        performing adler check of incoming digests (digests.adler)
        performing md5 check of incoming digests (digests.md5)
        performing sha check of incoming digests (digests.sha)
        performing haval check of incoming digests (digests.haval)
        performing ripemd128 check of incoming digests (digests.ripemd128)
        performing ripemd160 check of incoming digests (digests.ripemd160)
adler.test
Warning: you're executing as root.  I'll have to
skip some of the tests, since they'll fail as root.
ascii85.test
base64.test
bin.test
binio.test
        Skipping 'binio' tests, as the command is not compiled into the package
common.all.test
common.conv.test
common.md.test
crc.test
crc_zlib.test
haval.test
hex.test
md2.test


==== md2-4.1-8.x md2, immediate
==== Contents of test case:

            hex -m e [md2 $in]
        
==== Test generated error:
cannot open libcrypto.so: ld.so.1: ./tclsh: fatal: relocation error: file 
/usr/local/ssl/lib/libcrypto.so: symbol __umoddi3: referenced symbol not found


==== md2-4.2-8.x md2, immediate
==== Contents of test case:

            hex -m e [md2 $in]
        
==== Test generated error:
cannot open libcrypto.so




-brad
-- 
Brad Burdick - UUcom Inc.
Email: [EMAIL PROTECTED] | Voice: 703.461.1350 | Fax: 703.461.1360
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to