From owner-freebsd-questions Wed Apr 12 15:47:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 6ADB537B9E1; Wed, 12 Apr 2000 15:47:21 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from slave (doug@slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id PAA02932; Wed, 12 Apr 2000 15:47:20 -0700 (PDT) (envelope-from Doug@gorean.org) Date: Wed, 12 Apr 2000 15:47:20 -0700 (PDT) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: Kris Kennaway Cc: freebsd-questions@FreeBSD.org Subject: Re: OpenSSH problem in 3.4 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 12 Apr 2000, Kris Kennaway wrote: > On Wed, 12 Apr 2000, Doug Barton wrote: > > > I'm building a proprietary application on a 3.4-Stable system > > (vintage 2/28) that uses OpenSSL. I installed the rsaref port and the > > openssl port on the system (compiled fresh today from up to date > > ports) and I get this error: > > > > /usr/local/lib/libcrypto.so: undefined reference to > > `ERR_load_RSAREF_strings' > > /usr/local/lib/libcrypto.so: undefined reference to `RSA_PKCS1_RSAref' > > Are you linking explicitly against libRSAglue? You need to do this with > the stock OpenSSL - our version does dlopen() magic to get around it. Linking against libRSAglue in the app gets me: /usr/local/lib/libRSAglue.a(rsaref.o): In function `RSA_ref_private_decrypt': rsaref.o(.text+0x23c): undefined reference to `RSAPrivateDecrypt' /usr/local/lib/libRSAglue.a(rsaref.o): In function `RSA_ref_private_encrypt': rsaref.o(.text+0x2e8): undefined reference to `RSAPrivateEncrypt' /usr/local/lib/libRSAglue.a(rsaref.o): In function `RSA_ref_public_decrypt': rsaref.o(.text+0x374): undefined reference to `RSAPublicDecrypt' /usr/local/lib/libRSAglue.a(rsaref.o): In function `RSA_ref_public_encrypt': rsaref.o(.text+0x404): undefined reference to `R_RandomInit' rsaref.o(.text+0x411): undefined reference to `R_GetRandomBytesNeeded' rsaref.o(.text+0x451): undefined reference to `R_RandomUpdate' rsaref.o(.text+0x49a): undefined reference to `RSAPublicEncrypt' rsaref.o(.text+0x4e7): undefined reference to `R_RandomFinal' Did you mean that I should build openssl by linking it to libRSAglue? Thanks, Doug -- Excess on occasion is exhilarating. It prevents moderation from acquiring the deadening effect of a habit. -- W. Somerset Maugham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message