From owner-freebsd-questions Wed Mar 15 1:13:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sunrise.pku.edu.cn (sunrise.pku.edu.cn [202.112.7.11]) by hub.freebsd.org (Postfix) with ESMTP id AAA8A37B912 for ; Wed, 15 Mar 2000 01:13:36 -0800 (PST) (envelope-from lingu@fudan.edu) Received: from shawshank ([162.105.183.25]) by sunrise.pku.edu.cn (8.9.3/8.9.3) with SMTP id RAA10081 for ; Wed, 15 Mar 2000 17:14:57 +0800 (CST) Message-ID: <08da01bf8e5e$5f770990$19b769a2@shawshank> Reply-To: "Lin Gu" From: "Lin Gu" To: References: <20000313145201.H34294@freebsd1.cimlogic.com.au> <20000312230740.A8720@dragon.nuxi.com> <20000313181222.L34294@freebsd1.cimlogic.com.au> Subject: cannot hard link point to directory? Date: Wed, 15 Mar 2000 17:10:25 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.5600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm confused why hard link cannot point to directory. It can just point to the inode of the directory file, i suppose. thanks for any hints in advance, lin ----- Original Message ----- From: "John Birrell" To: "David O'Brien" Cc: "John Birrell" ; Sent: Monday, March 13, 2000 3:12 PM Subject: Re: Weak symbols in libc_r broken? 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 ________________ Email Forwarding Service Brought To You By: http://www.bn3.com. We can let you become anybody@anyplace.com. FREE, In 5 minutes! ----------------------------------------------- 搭乘主页大巴,十分钟立"页" 安家! 还有机会赢取大奖现房一套或无尽上等白米, 更有Swatch与Nike任你拿!马上动手吧! 邀请十个朋友参加此活动就有机会获得西藏神秘之旅 凡参与者均获ChinaRen特酷T恤衫一件! http://www.chinaren.com/marketing/bus/index.htm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message