From owner-freebsd-current Fri Sep 18 21:17:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA13877 for freebsd-current-outgoing; Fri, 18 Sep 1998 21:17:06 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA13872 for ; Fri, 18 Sep 1998 21:17:03 -0700 (PDT) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.9.1/8.9.1) with SMTP id AAA08543 for ; Sat, 19 Sep 1998 00:16:38 -0400 (EDT) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA09745; Sat, 19 Sep 1998 00:16:37 -0400 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.8.8/8.8.8) id AAA09660 for freebsd-current@freebsd.org; Sat, 19 Sep 1998 00:16:37 -0400 (EDT) (envelope-from jwd) From: John DeBoskey Message-Id: <199809190416.AAA09660@bb01f39.unx.sas.com> Subject: make release on aout system is busted To: freebsd-current@FreeBSD.ORG Date: Sat, 19 Sep 1998 00:16:37 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL38 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, make release fails on an aout based system. A few background items. 1. I am still running an aout -current system. 2. cd /usr/src && make world still works correctly. The problem: cd /usr/src/release && make release CHROOTDIR=/snap/release \ BUILDNAME=$TITLE fails with the following from /usr/src/Makefile.inc1: -------------------------------------------------------------- >>> Re-scanning the shared libraries.. -------------------------------------------------------------- cd /usr/src; /sbin/ldconfig -R ldconfig: /var/run/ld.so.hints: No such file or directory *** Error code 255 from this entry in the reinstall target: .if ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "aout" @echo @echo "--------------------------------------------------------------" @echo ">>> Re-scanning the shared libraries.." @echo "--------------------------------------------------------------" cd ${.CURDIR}; /sbin/ldconfig -R .endif This works correctly for 'make world' because /var/run/ld.so.hints exists from when the system was booted up, and /etc/objformat specifies aout as the OBJFORMAT. This fails during a 'make release' because it is run in a chroot'd environment where /var/run/ld.so.hints does not exist. ie: chroot /snap/release /mk which is done in /usr/src/Makefile. I see two options: 1. Do not execute the ldconfig command when in the chroot'd environment, at which point /var/run/ld.so.hints will be created the 1st time an installed system is booted. 2. ldconfig needs to be given the same default set of paths which are specified in /usr/src/etc/rc.conf at boot time. Would an appropriate person with commit ability please take 5 minutes to look into this problem? Comments? Critiques? Thanks! John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message