From owner-freebsd-current@freebsd.org Mon Nov 9 17:56:19 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2FCEA2AACB for ; Mon, 9 Nov 2015 17:56:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1FED1288 for ; Mon, 9 Nov 2015 17:56:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Mon, 9 Nov 2015 17:56:09 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id tA9HuBFK001347; Mon, 9 Nov 2015 10:56:11 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1447091772.91534.483.camel@freebsd.org> Subject: Re: buildworld broken From: Ian Lepore To: Chris H , freebsd-current@freebsd.org Date: Mon, 09 Nov 2015 10:56:12 -0700 In-Reply-To: References: <20151101164707.GA5847@troutmask.apl.washington.edu> , <20151108182817.GA49944@troutmask.apl.washington.edu> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2015 17:56:20 -0000 On Mon, 2015-11-09 at 06:09 -0800, Chris H wrote: > On Sun, 8 Nov 2015 10:28:17 -0800 Steve Kargl > wrote > > > On Sun, Nov 01, 2015 at 11:19:09PM -0800, NGie Cooper wrote: > > > > > > > /usr/obj/usr/src/tmp/usr/lib/libcrypto.so: undefined reference > > > > to > > > > 'PKCS7_dataInit' /usr/obj/usr/src/tmp/usr/lib/libcrypto.so: > > > > undefined > > > > reference to 'PKCS7_dataDecode' > > > > /usr/obj/usr/src/tmp/usr/lib/libcrypto.so: undefined reference > > > > to > > > > 'PKCS7_signatureVerify' > > > > Hi Steve, > > > What are your custom build options? Have you patched your > > > copy of > > > FreeBSD? > Thanks! > > > > Back to trying to build freebsd. I have discovered that > > 'make buildworld' is simply broken if one attempts to use > > a symlink for /usr/obj. At least doing doing > > > > % rm -rf /usr/obj > > I must perform a > chflags -R noschg > on /usr/obj prior to blowing it away. Is it different for you, > or did you just omit that step? > In 19 years of using freebsd, I have never once needed to chflags on an obj directory. Nothing in the build process sets any non-standard flags in the obj dirs, and a simple rm -rf will remove everything just fine (you would need to sudo the rm -rf if you built as root). -- Ian > > % ln -s /mnt/obj /usr/obj > > % cd /usr/src > > % nice make -j2 buildworld > > > > with /mnt a UFS2 file system on a USB2 disk yields errors of the > > above form. > > > > If one does > > > > % rm -rf /usr/obj > > % setenv OBJDIR /mnt/obj > > % cd /usr/src > > % nice make -j2 buildworld > > > > works. So, it appears soemthing inside the make infrastructure > > cannot > > follow symlinks. This used to work. > >