From owner-freebsd-current Fri Mar 31 2:23:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from laurin.munich.netsurf.de (laurin.munich.netsurf.de [194.64.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 3015C37B999 for ; Fri, 31 Mar 2000 02:23:21 -0800 (PST) (envelope-from Dirk.Roehrdanz@munich.netsurf.de) Received: from ns1129.munich.netsurf.de (ns1129.munich.netsurf.de [195.180.235.129]) by laurin.munich.netsurf.de (8.9.3/8.9.3) with ESMTP id MAA06666 for ; Fri, 31 Mar 2000 12:23:18 +0200 (MET DST) Received: (qmail 19156 invoked by uid 1001); 31 Mar 2000 10:24:24 -0000 Date: Fri, 31 Mar 2000 12:24:24 +0200 From: Dirk Roehrdanz To: current@FreeBSD.ORG Subject: Re: RSA library problems Message-ID: <20000331122424.A19141@diroxfbsd.dx> References: <38DA4E03.CB2E84A8@originative.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="rwEMma7ioTxnRzrJ" X-Mailer: Mutt 1.0i In-Reply-To: ; from kris@FreeBSD.ORG on Fri, Mar 24, 2000 at 12:15:16AM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Hello, On 0, Kris Kennaway 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