From owner-freebsd-current@FreeBSD.ORG Sat Mar 24 17:00:59 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F6B1106566B; Sat, 24 Mar 2012 17:00:59 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id C2AEE8FC0C; Sat, 24 Mar 2012 17:00:58 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q2OH0pv3037278; Sat, 24 Mar 2012 17:00:51 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id et6xdhia53tkj36yaneeipm7aa; Sat, 24 Mar 2012 17:00:51 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: Tim Kientzle In-Reply-To: <4F6D52DF.7080105@passap.ru> Date: Sat, 24 Mar 2012 10:00:51 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <4F34E618-DB66-464D-B5B2-900960D6C16B@kientzle.com> References: <4F6CD93D.70109@passap.ru> <4F6CEB1F.4040300@FreeBSD.org> <4F6D52DF.7080105@passap.ru> To: Boris Samorodov X-Mailer: Apple Mail (2.1257) Cc: freebsd-current@freebsd.org, Dimitry Andric Subject: Re: /usr/bin/tar creates invalid lib file (was: Re: /usr/bin/strip: File format not recognized) 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 17:00:59 -0000 On 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. >>>=20 >>> While updating devel/nspr I get this: >> ... >>> /usr/bin/strip: /usr/local/lib/libnspr4.so.1: File format not = recognized >>=20 >> It builds and installs fine here, both on i386 and amd64, using both = gcc >> and clang. >>=20 >> What is the output of: "file /usr/local/lib/libnspr4.so.1" on your >> system? >=20 > 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/../../p= r/src/./libnspr4.so.1 > = /usr/ports/devel/nspr/work/nspr-4.9/mozilla/nsprpub/build/dist/lib/../../p= r/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 > ----- >=20 > 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 - > ----- Can you send me the output of: tar -cvf /tmp/test.tar = /usr/ports/devel/nspr/work/nspr-4.9/mozilla/nsprpub/build/dist/lib/../../p= r/src/./libnspr4.so.1 (A tar archive containing only that one source file.) This looks similar to a bug that we found in libarchive recently I didn't think that bug impacted FreeBSD, but I may have been wrong=85. if it did, it will be obvious from the structure of the created archive. Tim