From owner-freebsd-stable@FreeBSD.ORG Sat Jul 2 05:48:01 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 A3899106566C for ; Sat, 2 Jul 2011 05:48:01 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 68C9A8FC0C for ; Sat, 2 Jul 2011 05:48:01 +0000 (UTC) Received: by gwb15 with SMTP id 15so1963344gwb.13 for ; Fri, 01 Jul 2011 22:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=4sh77j9gCoRgH3T+ifJAQrTxQifI61ifIyMrwgaqKDo=; b=oOB9aRMFw+/7sD2LdngOYiBWPPD7yXuIvGp0zNhu3jKfZxfBIO2kbJeuKjs7rC3/u0 UK+4qj+xvH5/82MCfc/p8FVew/OZu2lkcTcjg7/8yzt65qlEZ7zl34/iSIvTca7c1TOF nIcFQvhlnO767Lhei+s+MVZIKPFKO6Xw3vSPc= MIME-Version: 1.0 Received: by 10.150.62.1 with SMTP id k1mr3842732yba.196.1309583994035; Fri, 01 Jul 2011 22:19:54 -0700 (PDT) Received: by 10.150.220.20 with HTTP; Fri, 1 Jul 2011 22:19:53 -0700 (PDT) Date: Fri, 1 Jul 2011 19:19:53 -1000 Message-ID: From: Kevin Oberman To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 05:48:01 -0000 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 DF .text 0000000000000084 XZ_5.0 lzma_stream_encoder Any clues to what i happening would be greatly appreciated! -- R. Kevin Oberman, Network Engineer - Retired E-mail: kob6558@gmail.com