From owner-freebsd-current Sun Mar 12 23:12:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id 2261037B5BA; Sun, 12 Mar 2000 23:12:26 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id SAA65091; Mon, 13 Mar 2000 18:12:23 +1100 (EST) (envelope-from jb) Date: Mon, 13 Mar 2000 18:12:22 +1100 From: John Birrell To: "David O'Brien" Cc: John Birrell , current@FreeBSD.ORG Subject: Re: Weak symbols in libc_r broken? Message-ID: <20000313181222.L34294@freebsd1.cimlogic.com.au> References: <20000313145201.H34294@freebsd1.cimlogic.com.au> <20000312230740.A8720@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <20000312230740.A8720@dragon.nuxi.com>; from David O'Brien on Sun, Mar 12, 2000 at 11:07:40PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 12, 2000 at 11:07:40PM -0800, David O'Brien wrote: > On Mon, Mar 13, 2000 at 02:52:02PM +1100, John Birrell wrote: > > Is it just me, or are the weak symbols in libc_r confusing the linker? > > Not just you. Jason and Mike Smith brought this to my attention on > Friday. I found that if one takes a fresh -CURRENT and then: > > cd /usr/src/lib/libc_r > cvs -q up -D 1/27/2000 > make all install > > the susp.c code from the A&W Ptheads Programming book > (http://www.aw.com/cseng/titles/0-201-63392-2/code/) would then work with > compiled with "-static -pthread". I don't think it is the linker's fault. To me it makes no sense to have a weak symbol and a strong symbol of the same name in the same library. I deleted the weak definitions in the _THREAD_SAFE PRSYSCALL in lib/libc/i386/SYS.h and the problem goes away. I don't understand why Jason needed to add them in the first place. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ john.birrell@ca.com john.birrell@opendirectory.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message