Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Aug 2002 08:06:08 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Robert Kedoin <robert@kedoin.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Help needed to build RELENG_4_6
Message-ID:  <20020806070608.GA27962@happy-idiot-talk.infracaninophi>
In-Reply-To: <A5D0E69E-A8C1-11D6-B85D-000393820C8C@kedoin.com>
References:  <A5D0E69E-A8C1-11D6-B85D-000393820C8C@kedoin.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020806070608.GA27962>