From owner-freebsd-current@FreeBSD.ORG Thu Aug 7 10:46:32 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E7BF37B401; Thu, 7 Aug 2003 10:46:32 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E57943FBF; Thu, 7 Aug 2003 10:46:30 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h77HkOj25988; Thu, 7 Aug 2003 14:46:24 -0300 Message-ID: <3F32906F.7010402@tcoip.com.br> Date: Thu, 07 Aug 2003 14:46:23 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Nate Lawson References: <20030807074557.S75796@root.org> In-Reply-To: <20030807074557.S75796@root.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: Warning with loader Makefile? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 07 Aug 2003 17:46:32 -0000 Nate Lawson wrote: > I get this: > ===> i386/cdboot > ===> i386/kgzldr > ===> i386/libi386 > ===> i386/loader > "/usr/share/mk/bsd.prog.mk", line 38: warning: duplicate script for target "loader" ignored > cc -nostdlib -static -Ttext 0x0 -o loader.sym > /home/obj/home/src/sys/boot/i386/loader/../btx/lib/crt0.o main.o conf.o > bcache.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o > interp_parse.o ls.o misc.o module.o panic.o load_elf32.o load_elf64.o > isapnp.o pnp.o interp_forth.o vers.o > > Why is there a duplicate script? This might be a new gcc 3.3 warning. The ${PROG} target is defined in loader's Makefile: # $FreeBSD: src/sys/boot/i386/loader/Makefile,v 1.66 2003/06/26 03:51:57 peter Exp $ ... PROG= loader ... ${PROG}: ${PROG}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \ -b ${BTXKERN} ${PROG}.bin Now, bsd.prog.mk also defines a PROG target. It is included later on this file: .include ${PROG}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ ${LIBFICL} ${LIBI386} ${LIBSTAND} This was added by Mike Smith in version 1.13. It brings in ${OBJS} definition and maybe linker stuff (from Mike's commit message). I'm bringing Ruslan in this. He might be able to help with this. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net If you are in the C shell and have just installed a new program, you won't be able to run it unless you first type "rehash". -- Dru