From owner-freebsd-current Mon Feb 28 9:11:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id BB17937B89E for ; Mon, 28 Feb 2000 09:11:27 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 2D00E1CE6; Tue, 29 Feb 2000 01:11:24 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Christoph Kukulies Cc: "Jordan K. Hubbard" , freebsd-current@FreeBSD.ORG Subject: Re: RSA/openssl compile problem In-Reply-To: Message from Christoph Kukulies of "Mon, 28 Feb 2000 17:41:04 +0100." <20000228174104.A22443@gil.physik.rwth-aachen.de> Date: Tue, 29 Feb 2000 01:11:24 +0800 From: Peter Wemm Message-Id: <20000228171124.2D00E1CE6@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christoph Kukulies wrote: > On Mon, Feb 28, 2000 at 11:47:22PM +0800, Peter Wemm wrote: > > "Jordan K. Hubbard" wrote: > > > > OK, I browsed through the source tree to locate something looking > > > > like an RSA package and found /usr/src/crypto/openssl > > > > > > /usr/src/crypto is just like /usr/src/contrib - you *never* attempt > > > to build things out of it. That will fail. > > OK, I cvsup'ed from ftp.internat.freebsd.org cvs-crypto > Just for the record, FWIW: > > # make -i > ===> lib > ===> lib/libcipher > ===> lib/libtelnet > ===> lib/libcrypto > ===> lib/librsaglue > ===> lib/libssl > ===> lib/librsausa > Warning: Object directory not changed from original /usr/src/secure/lib/librs ausa > ===> lib/librsaintl > Warning: Object directory not changed from original /usr/src/secure/lib/librs aintl > ===> lib/libssh > ===> libexec > ===> libexec/telnetd > ===> usr.bin > ===> usr.bin/bdes > ===> usr.bin/telnet > ===> usr.bin/openssl > cc -O -pipe -DMONOLITH -DNO_IDEA -I/usr/src/secure/usr.bin/openssl -o open ssl apps.o asn1pars.o ca.o ciphers.o crl.o crl2p7.o dgst.o dh.o dsa.o dsapa ram.o enc.o errstr.o gendh.o gendsa.o genrsa.o nseq.o openssl.o pkcs12.o pk cs7.o pkcs8.o req.o rsa.o s_cb.o s_client.o s_server.o s_socket.o s_time.o sess_id.o speed.o verify.o version.o x509.o -lssl -lcrypto > speed.o: In function `speed_main': > speed.o(.text+0x5f7): undefined reference to `RSA_PKCS1' > *** Error code 1 (ignored) > ===> usr.bin/scp > ===> usr.bin/ssh > ===> usr.bin/ssh-add > ===> usr.bin/ssh-agent > ===> usr.bin/ssh-keygen > ===> usr.sbin > ===> usr.sbin/sshd That's because you are trying to link openssl against the *old* /usr/lib/libcrypto. In all cases, you need to build/install libraries and includes before trying to compile and link against them. The dependency rules of what depends on what can be quite complex. 'buildworld' does this. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message