Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 12:35:51 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Anatoly Vorobey <mellon@pobox.com>
Cc:        Martin Cracauer <cracauer@cons.org>, bugs@freebsd.org
Subject:   Re: bin/18104: missing include file in sh(1)
Message-ID:  <20000420123550.B14798@cons.org>
In-Reply-To: <20000420131840.A1964@happy.checkpoint.com>; from mellon@pobox.com on Thu, Apr 20, 2000 at 01:18:40PM %2B0000
References:  <200004200400.VAA88954@freefall.freebsd.org> <20000420120542.B14071@cons.org> <20000420131840.A1964@happy.checkpoint.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000420123550.B14798>