From owner-freebsd-stable@FreeBSD.ORG Sat Jul 2 06:01:08 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 928B5106566C for ; Sat, 2 Jul 2011 06:01:08 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 54B678FC08 for ; Sat, 2 Jul 2011 06:01:08 +0000 (UTC) Received: by ywf7 with SMTP id 7so1988033ywf.13 for ; Fri, 01 Jul 2011 23:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=8ukf+xjVf2doJE31nK2+BkseUG6u6I1JEcIiHhlGZ2Q=; b=qLa1LpjOExJDRMJpHvgEpRHNJbdnacsH7WXo5ZVRCV8RnOabpGU3N83nfzQ/nLdRRd qkCWqaZsPSJ7a7GnjD1ewBU/jYQlhZYq5vugpTGyIaNvG1HIFhqJWx+x3tb3/SUPcn2X 60ScpjfI8x9GfyuBq5IiPaUguPseBoWPRldcc= MIME-Version: 1.0 Received: by 10.150.75.4 with SMTP id x4mr3819167yba.310.1309586467478; Fri, 01 Jul 2011 23:01:07 -0700 (PDT) Received: by 10.150.220.20 with HTTP; Fri, 1 Jul 2011 23:01:07 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Jul 2011 20:01:07 -1000 Message-ID: From: Kevin Oberman To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: libarchive, lzma, and xz interaction X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2011 06:01:08 -0000 On Fri, Jul 1, 2011 at 7:19 PM, Kevin Oberman wrote: > I'm trying to understand the problems I am having on some systems > regarding libarchive, lzma, and xz. > I have an 8-Stable system updated yesterday. As far as I can tell, > libarchive does include the lzma stuff > from libzma. At least I see the references. But several ports seem to > still pull in xz-5.0.1 and link to it. > This has a wonderful potential to cause library symbol conflicts. I get: > /usr/lib/libarchive.so: undefined reference to `lzma_stream_encoder@XZ_5.= 0' > /usr/lib/libarchive.so: undefined reference to `lzma_alone_decoder@XZ_5.0= ' > /usr/lib/libarchive.so: undefined reference to `lzma_memusage@XZ_5.0' > /usr/lib/libarchive.so: undefined reference to `lzma_stream_decoder@XZ_5.= 0' > /usr/lib/libarchive.so: undefined reference to `lzma_code@XZ_5.0' > /usr/lib/libarchive.so: undefined reference to `lzma_end@XZ_5.0' > /usr/lib/libarchive.so: undefined reference to `lzma_lzma_preset@XZ_5.0' > /usr/lib/libarchive.so: undefined reference to `lzma_alone_encoder@XZ_5.0= ' > > ldd shows libarchive linked against liblzma.so.5 and an objdump of the > dynamic symbols from liblzma.so.5 > shows the "undefined symbols" defined with the XZ_5.0 version, so I am > mystified. It looks o me like it is > there. Is confusion with xz-5.0.1 causing this? Should get rid of it? > Even so, I don't understand why the > loader is claiming that these symbols are undefined when they seem to > be defined as far as I can tell. > 0000000000007c60 g =A0 =A0DF .text =A00000000000000084 =A0XZ_5.0 > lzma_stream_encoder > > Any clues to what i happening would be greatly appreciated! Replying to myself, I re-built all programs that depended on xz and then deleted the port. Now everything works fine. I still don't completely understand what I was seeing, but it is working, now. --=20 R. Kevin Oberman, Network Engineer - Retired E-mail: kob6558@gmail.com