From owner-freebsd-current@FreeBSD.ORG Sat Mar 24 18:07:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B5941065672; Sat, 24 Mar 2012 18:07:42 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [IPv6:2a02:6b8:0:801::3]) by mx1.freebsd.org (Postfix) with ESMTP id 076988FC17; Sat, 24 Mar 2012 18:07:42 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward13.mail.yandex.net (Yandex) with ESMTP id 9727114227E; Sat, 24 Mar 2012 22:07:40 +0400 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 67AA47E04BB; Sat, 24 Mar 2012 22:07:40 +0400 (MSK) Received: from 46.38.39.187.tel.ru (46.38.39.187.tel.ru [46.38.39.187]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7dwS1pJH-7ew4mg2b; Sat, 24 Mar 2012 22:07:40 +0400 Message-ID: <4F6E0D6B.9080408@passap.ru> Date: Sat, 24 Mar 2012 22:07:39 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111114 Thunderbird/8.0 MIME-Version: 1.0 To: Garrett Cooper References: <4F6CD93D.70109@passap.ru> <4F6CEB1F.4040300@FreeBSD.org> <4F6D52DF.7080105@passap.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, Dimitry Andric Subject: Re: /usr/bin/tar creates invalid lib file X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Mar 2012 18:07:42 -0000 24.03.2012 19:04, Garrett Cooper пишет: > On Fri, Mar 23, 2012 at 9:51 PM, Boris Samorodov wrote: >> On 24.03.2012 01:29, Dimitry Andric wrote: >>> >>> On 2012-03-23 21:12, Boris Samorodov wrote: >>>> >>>> I'm not sure but it seems to me that the question is more about >>>> -current that -ports. >>>> >>>> While updating devel/nspr I get this: >>> >>> ... >>>> >>>> /usr/bin/strip: /usr/local/lib/libnspr4.so.1: File format not recognized >>> >>> >>> It builds and installs fine here, both on i386 and amd64, using both gcc >>> and clang. >>> >>> What is the output of: "file /usr/local/lib/libnspr4.so.1" on your >>> system? >> >> >> I've done some steps to diagnose the case. Seems that /usr/bin/tar >> does not create correct library: >> ----- >> % file >> /usr/ports/devel/nspr/work/nspr-4.9/mozilla/nsprpub/build/dist/lib/../../pr/src/./libnspr4.so.1 >> /usr/ports/devel/nspr/work/nspr-4.9/mozilla/nsprpub/build/dist/lib/../../pr/src/./libnspr4.so.1: >> ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically >> linked, not stripped >> % file /usr/local/lib/libnspr4.so.1 >> /usr/local/lib/libnspr4.so.1: data >> % hd -C /usr/local/lib/libnspr4.so.1 >> 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> |................| >> 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> |................| >> * >> % tar --version >> bsdtar 3.0.3 - libarchive 3.0.3 >> ----- >> >> The library (/usr/local/lib/libnspr4.so.1) is created by the command: >> ----- >> /usr/bin/tar -C >> /usr/ports/devel/nspr/work/nspr-4.9/mozilla/nsprpub/build/dist/lib >> --dereference -cf - . | /usr/bin/tar -C /usr/local/lib -xof - > > All that does is shuffle around files; it doesn't make any libraries. > The question I'd have is are there multiple instances running in > parallel, or not? Since I tried the command by hand and got the same result as while using the port, I assume that the answer is "no, there are not". -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve