Hello,
On 0, Kris Kennaway <[EMAIL PROTECTED]> wrote:
> On Thu, 23 Mar 2000, Paul Richards wrote:
>
> > I stuck a dlerror() in there and the problem is
> >
> > usr/lib/librsaINTL.so: Undefined symbol "BN_mod_exp_mont"
>
> This symbol is defined in bn_ext.c and should be compiled into libcrypto -
> can you verify yours has it?
>
> Kris
>
I had the same problem. "BN_mod_exp_mont" is in libcrypto,but isn't
visible from librsaINTL.so because libcrypto is loaded in conjunction
with the load of /usr/local/libexec/apache/libssl.so via dlopen() .
The man page to dlopen states " The symbols exported by objects added
to the address space by dlopen() can be accessed only through calls
to dlsym()".
I have solved the problem with the attached patch. It adds libcrypto
to the list of linked libs.
Maybe there is a better solution,who knows ?
Regards
Dirk
Index: Makefile
===================================================================
RCS file: /usr/current/src/secure/lib/librsaintl/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 2000/03/13 21:50:37 1.2
+++ Makefile 2000/03/31 09:37:12
@@ -9,6 +9,7 @@
SHLIB_MAJOR= 1
CFLAGS+= -I${.OBJDIR}
+LDADD+= -lcrypto
# rsaref
SRCS+= rsa_err.c rsa_eay.c rsa_intlstubs.c