From owner-freebsd-bugs Thu Apr 20 3:35:59 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from knight.cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (Postfix) with ESMTP id ACCB837B521 for ; Thu, 20 Apr 2000 03:35:55 -0700 (PDT) (envelope-from cracauer@knight.cons.org) Received: (from cracauer@localhost) by knight.cons.org (8.9.3/8.9.3) id MAA15112; Thu, 20 Apr 2000 12:35:52 +0200 (CEST) Date: Thu, 20 Apr 2000 12:35:51 +0200 From: Martin Cracauer To: Anatoly Vorobey Cc: Martin Cracauer , bugs@freebsd.org Subject: Re: bin/18104: missing include file in sh(1) Message-ID: <20000420123550.B14798@cons.org> References: <200004200400.VAA88954@freefall.freebsd.org> <20000420120542.B14071@cons.org> <20000420131840.A1964@happy.checkpoint.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000420131840.A1964@happy.checkpoint.com>; from mellon@pobox.com on Thu, Apr 20, 2000 at 01:18:40PM +0000 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In <20000420131840.A1964@happy.checkpoint.com>, Anatoly Vorobey wrote: > cc -O -pipe -DSHELL -I. -I/usr/src/bin/sh -g -DDEBUG=2 -Wall -Wformat -static -o sh alias.o arith.o arith_lex.o cd.o echo.o error.o eval.o exec.o expand.o histedit.o input.o jobs.o mail.o main.o memalloc.o miscbltin.o mystring.o options.o output.o parser.o printf.o redir.o show.o trap.o var.o builtins.o init.o nodes.o syntax.o -ll -ledit -ltermcap > /usr/lib/libtermcap.a(lib_trace.o): In function `trace': > lib_trace.o(.text+0x0): multiple definition of `trace' > show.o:/usr/src/bin/sh/show.c:310: first defined here > /usr/libexec/elf/ld: Warning: size of symbol `trace' changed from 75 to 5 in lib_trace.o > *** Error code 1 The difference is that mine does not have -static. If you build from /usr/src to /usr/obj, you get -static, if you build outside, you don't :-( Suboptimal control mechanism, I'd say. It is also questionable why the -static case tries to resolve symbols that are already defined in primary object files in the static libraries as well. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message