Hi, On Mon, 8 Jul 2002, Jan Tschirschwitz wrote:
> I'm working with an i386 platform with an RedHat installed and here is > the script I use to build the dynamic engine library. > > ______________________________________________________________________ > > #! /bin/sh > > cd crypto/engine > > gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN >-DHAVE_DLFCN_H > -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer > -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DENGINE_DYNAMIC_SUPPORT > -c -o hw_cluster_labs_dyn.o hw_cluster_labs.c > > mv hw_cluster_labs_dyn.o ../../ > > cd ../.. > > gcc -shared -o dyn_cluster_labs.so hw_cluster_labs_dyn.o -L. -lcrypto > #gcc -o dyn_cluster_labs.so hw_cluster_labs_dyn.o libcrypto.a > > cp dyn_cluster_labs.so /usr/lib/ > ______________________________________________________________________ So when you run "openssl engine dynamic -pre.....", you're running the RPM-installed openssl binary that comes with Redhat? If so, I wouldn't expect wonderful things - the installed version is likedly to be 0.9.[56]-something and you mentioned you were building against a 0.9.7-beta2 tree? Does this work if you run the "openssl" binary from the same source tree? Ie. ... mv hw_cluster_labs_dyn.o ../../ cd ../.. ./apps/openssl engine dynamic -pre ...[etc]... Even if that does work, I'm still curious *how* your previous attempts were failing ... they could fail because of a version check perhaps, but should not fail because of an inability to set memory callbacks... FWIW: Richard and I are currently looking at ways in which openssl may automatically support external ENGINEs as though they were builtin, therein bypassing the need for direct use of "dynamic". So I'd like to get to the bottom of the problem you're seeing so we can have more food for thought when doing this. > I have done this for the atalla too, but with the same result. > I have tried to link with the crypto.a but the same. It would help if you could first verify everything with the local build tree (ie. ignoring any installed openssl programs or libs). Cheers, Geoff ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
