From owner-freebsd-current Fri Mar 31 18:28:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.128.1.71]) by hub.freebsd.org (Postfix) with ESMTP id D231337BAA8 for ; Fri, 31 Mar 2000 18:28:44 -0800 (PST) (envelope-from bloom@acm.org) Received: from acm.org (reyim.ne.mediaone.net [24.218.251.241]) by chmls06.mediaone.net (8.8.7/8.8.7) with ESMTP id VAA03764; Fri, 31 Mar 2000 21:28:35 -0500 (EST) Message-ID: <38E55ED2.6A41C3DD@acm.org> Date: Fri, 31 Mar 2000 21:28:34 -0500 From: Jim Bloom X-Mailer: Mozilla 4.72 [en]C-MOENE (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dirk Roehrdanz Cc: current@FreeBSD.ORG Subject: Re: RSA library problems References: <38DA4E03.CB2E84A8@originative.co.uk> <20000331122424.A19141@diroxfbsd.dx> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A similar patch was added for the USA version of RSA for the same basic reason. Your patch is almost correct. It should add the line: LDADD+= -L$[.OBJDIR]/../libcrypto -lcrypto Your version would reference the system crypto library and not the one being built as part of buildworld. Jim Bloom bloom@acm.org Dirk Roehrdanz wrote: > > 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 ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message