From owner-freebsd-current@FreeBSD.ORG Sat Mar 24 15:04:36 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 3E77C106566C; Sat, 24 Mar 2012 15:04:36 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D87438FC15; Sat, 24 Mar 2012 15:04:35 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2732409vbm.13 for ; Sat, 24 Mar 2012 08:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=YNyI0cM35RNzmgNV4XzTHfyCkAoNTRf3KuMTWAtsz+U=; b=qbBjLhaOHShpfg+SvfwbsXhlnA7jEoEd1vH23dBOQkqYhCYXY3tRJP2pW2bRFWNwXy K1PHxHMa+PnjrnKLHTNP9CK7EJgAqvEzi0zIa/NvuTCE/aKBLHM5lqpbryA6YR29Hrif mUIQzWLWb91PUh6Z9oNY/desrQuYhG1fAgC54ZTHaCW0CHl9LtoKeU6YmiS//91wkYsf EMNrZ2VUcxHzg4TuxpCjp5nyjSkkARJQYIsZO6yyhNHE7BEjyrllEqDGjGs7hbNAXm0e YSsDXA9FffaQwDABzFBeuE0kG/zUdYX/Z5ugdtPP6vhE8Cn7fMUZ99COkYNDz7FppXGt E1DQ== MIME-Version: 1.0 Received: by 10.52.178.98 with SMTP id cx2mr4746271vdc.112.1332601469439; Sat, 24 Mar 2012 08:04:29 -0700 (PDT) Received: by 10.220.230.135 with HTTP; Sat, 24 Mar 2012 08:04:29 -0700 (PDT) In-Reply-To: <4F6D52DF.7080105@passap.ru> References: <4F6CD93D.70109@passap.ru> <4F6CEB1F.4040300@FreeBSD.org> <4F6D52DF.7080105@passap.ru> Date: Sat, 24 Mar 2012 08:04:29 -0700 Message-ID: From: Garrett Cooper To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 15:04:36 -0000 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 recognize= d >> >> >> 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), dynamical= ly > 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 =A000 00 00 00 00 00 00 00 =A000 00 00 00 00 00 00 00 > |................| > 00000000 =A000 00 00 00 00 00 00 00 =A000 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 - . | =A0/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? Thanks, -Garrett