From owner-freebsd-questions Tue Aug 6 0: 6:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA20637B406 for ; Tue, 6 Aug 2002 00:06:17 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC55F43E77 for ; Tue, 6 Aug 2002 00:06:15 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7676Dxg028185; Tue, 6 Aug 2002 08:06:13 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g76768E2028184; Tue, 6 Aug 2002 08:06:08 +0100 (BST) Date: Tue, 6 Aug 2002 08:06:08 +0100 From: Matthew Seaman To: Robert Kedoin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help needed to build RELENG_4_6 Message-ID: <20020806070608.GA27962@happy-idiot-talk.infracaninophi> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Aug 05, 2002 at 06:21:11PM -0400, Robert Kedoin wrote: > After some searching, I found this thread: > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&threadm=ah3hv6%24cm4%241%40FreeBSD. > csie.NCTU.edu.tw&rnum=8&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26safe%3Doff%26q%3Dfreebsd%2B4. > 6%2Blibcrypto%2Bbuildworld > > Where someone had the exact same problem with building from a 4.6 CD > back in July. In that discussion thread, Ruslan Ermilov mentioned that > it fixed the problem on 7/17/2002. The fix Ruslan mentioned was applied to 5-CURRENT (HEAD) and 4-STABLE (RELENG_4), but not to the 4.6 (RELENG_4_6) branch. > I have been trying to find out what that exact change was that would fix > the problem, without success. http://www.freebsd.org/cgi/cvsweb.cgi/src/gnu/usr.bin/binutils/ld/Makefile.diff?r1=1.8.2.5&r2=1.8.2.6 =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/binutils/ld/Makefile,v retrieving revision 1.8.2.5 retrieving revision 1.8.2.6 diff -u -p -r1.8.2.5 -r1.8.2.6 --- src/gnu/usr.bin/binutils/ld/Makefile 2001/09/24 15:44:23 1.8.2.5 +++ src/gnu/usr.bin/binutils/ld/Makefile 2002/07/17 10:40:40 1.8.2.6 @@ -1,4 +1,4 @@ -# $FreeBSD: /home/ncvs/src/gnu/usr.bin/binutils/ld/Makefile,v 1.8.2.5 2001/09/24 15:44:23 ru Exp $ +# $FreeBSD: /home/ncvs/src/gnu/usr.bin/binutils/ld/Makefile,v 1.8.2.6 2002/07/17 10:40:40 ru Exp $ .include "../Makefile.inc0" @@ -17,7 +17,7 @@ elf-hints.h: ln -sf ${.CURDIR}/../../../../include/${.TARGET} . .endif -CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\" +CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\" CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\" NOSHARED?= yes I'm not sure that this patch would meet the criteria for inclusion in one of the security branches --- you'ld have to check with Ruslan directly I think. The problem is that `ld' isn't looking in the right place for shared libraries that have just been built. Instead it's trying to link against the shared libraries already installed in the system. Usually you would get away with that, but not when you're doing a sufficiently large jump in versions that there are some completely new shared libraries. To get 4.6-RELEASE-pN compiled, you can either apply that patch manually and do a {build,install}world cycle, or you can update to 4-STABLE first, then go to 4.6-RELEASE-pN: as that takes two {build,install}world cycles it is probably overkill. Once you've got a /usr/lib/libcrypto.so.2 on your system, buildworld should work OK, even if subsequent cvsup runs undo that patch to the Makefile. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message