From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 20 20:49:21 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D6D1106571A for ; Tue, 20 Jan 2009 20:49:21 +0000 (UTC) (envelope-from chris@young-alumni.com) Received: from mail.oldschoolpunx.net (cpe-72-177-10-243.austin.res.rr.com [72.177.10.243]) by mx1.freebsd.org (Postfix) with ESMTP id DAF4F8FC1E for ; Tue, 20 Jan 2009 20:49:20 +0000 (UTC) (envelope-from chris@young-alumni.com) Received: by mail.oldschoolpunx.net (Postfix, from userid 58) id 745227D27B; Tue, 20 Jan 2009 14:32:53 -0600 (CST) Received: from [192.168.8.200] (unknown [192.168.8.200]) by mail.oldschoolpunx.net (Postfix) with ESMTPSA id E49E67D223 for ; Tue, 20 Jan 2009 14:29:04 -0600 (CST) Message-Id: From: Chris Ruiz To: freebsd-hackers@freebsd.org In-Reply-To: <3f95d3db0901192354s502644cdh3ecf44a4ecf3fe6f@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 20 Jan 2009 14:29:04 -0600 References: <3f95d3db0901192354s502644cdh3ecf44a4ecf3fe6f@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: tar fails on FreeBSD 7 and passes on FreeBSD 6 for the same input X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 20:49:21 -0000 On Jan 20, 2009, at 1:54 AM, chandra reddy wrote: > Hi, > > I am getting the following error when i run tar on a directory. > > [chandra@home]$ tar zcf config-xsl.tar config-xsl/9.6 > > tar: Cannot open directory > config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/ > bfd-liveness-detection/detection-time: > No such file or directory > tar: Cannot open directory > config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/ > bfd-liveness-detection/failure-action: > No such file or directory > [chandra@home]$ ldd tar > tar: > libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x28097000) I am a little confused by the above. It shows your tar binary being linked to a library from freebsd 6 NOT 7. Did you update your "world" when you updated your kernel to 7? This is the appropriate output on a recent CURRENT: # ldd /usr/bin/tar /usr/bin/tar: libarchive.so.4 => /usr/lib/libarchive.so.4 (0x800649000) libbz2.so.3 => /usr/lib/libbz2.so.3 (0x800774000) libz.so.4 => /lib/libz.so.4 (0x800884000) libc.so.7 => /lib/libc.so.7 (0x800998000) IIRC, 7 should have very similar output and should be linked to libc.so.7. > chandra@home]$ uname -a > FreeBSD chandra 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec 7 05:57:33 UTC > 2008 > root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > I have debugged libc and found that system call "fstafs" is failing > and > returning -1. > > Can any one help me what is the real problem here and how to fix it? > > > > Thanks > Chandra_ My best guess is that you have an incompletely upgraded system. Chris Ruiz