Date: Fri, 31 Mar 2000 12:24:24 +0200 From: Dirk Roehrdanz <Dirk.Roehrdanz@munich.netsurf.de> To: current@FreeBSD.ORG Subject: Re: RSA library problems Message-ID: <20000331122424.A19141@diroxfbsd.dx> In-Reply-To: <Pine.BSF.4.21.0003240014440.7812-100000@freefall.freebsd.org>; from kris@FreeBSD.ORG on Fri, Mar 24, 2000 at 12:15:16AM -0800 References: <38DA4E03.CB2E84A8@originative.co.uk> <Pine.BSF.4.21.0003240014440.7812-100000@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Hello, On 0, Kris Kennaway <kris@FreeBSD.ORG> 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 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff 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 --rwEMma7ioTxnRzrJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000331122424.A19141>