From owner-freebsd-bugs Sat Nov 23 7:50: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41A6E37B401 for ; Sat, 23 Nov 2002 07:50:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E28243EA3 for ; Sat, 23 Nov 2002 07:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gANFo1x3032304 for ; Sat, 23 Nov 2002 07:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gANFo1Ge032303; Sat, 23 Nov 2002 07:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A42337B401 for ; Sat, 23 Nov 2002 07:48:08 -0800 (PST) Received: from ally.privat.de (core117-d126.dialo.tiscali.de [62.246.117.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07CDC43E9C for ; Sat, 23 Nov 2002 07:48:03 -0800 (PST) (envelope-from sblank@tiscali.de) Received: by ally.privat.de (Postfix, from userid 1000) id 9048A257; Sat, 23 Nov 2002 16:47:22 +0100 (CET) Message-Id: <20021123154722.9048A257@ally.privat.de> Date: Sat, 23 Nov 2002 16:47:22 +0100 (CET) From: Sascha Blank Reply-To: Sascha Blank To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/45644: crt*.o files are installed multiple times during "make install" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45644 >Category: i386 >Synopsis: crt*.o files are installed multiple times during "make install" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 23 07:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Sascha Blank >Release: FreeBSD 4.7-STABLE i386 >Organization: none >Environment: System: FreeBSD ally.privat.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 22 09:46:33 CET 2002 sblank@ally.privat.de:/disc2/obj/disc2/src/sys/ALLY i386 $ ident /usr/src/lib/csu/i386-elf/Makefile $FreeBSD: src/lib/csu/i386-elf/Makefile,v 1.6.2.4 2002/08/07 16:31:48 ru Exp $ >Description: a "make install" in the above directory installs the *.o file four times in a row, though once would suffice. Look at this: # make install install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib >How-To-Repeat: See above. >Fix: The "problem" is caused by a .for loop in the Makefile that looks like it has been overseen at some point in the past. The following diff solves this problem: *** /usr/src/lib/csu/i386-elf/Makefile.orig Wed Aug 7 18:31:48 2002 --- /usr/src/lib/csu/i386-elf/Makefile Sat Nov 23 16:42:05 2002 *************** *** 19,27 **** ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c realinstall: - .for file in ${OBJS} ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${OBJS} ${DESTDIR}${LIBDIR} - .endfor .include --- 19,25 ---- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message