Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2011 20:01:07 -1000
From:      Kevin Oberman <kob6558@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: libarchive, lzma, and xz interaction
Message-ID:  <CAN6yY1uSLArO8NX4RxBUtPMHEz1MZRRnaGPV_9BDjrHq=B6_KA@mail.gmail.com>
In-Reply-To: <CAN6yY1sZn%2BmQxLYj7HUss7ZAznF3OuWBVJuTY0aWc6MEVkA5Hw@mail.gmail.com>
References:  <CAN6yY1sZn%2BmQxLYj7HUss7ZAznF3OuWBVJuTY0aWc6MEVkA5Hw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 1, 2011 at 7:19 PM, Kevin Oberman <kob6558@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uSLArO8NX4RxBUtPMHEz1MZRRnaGPV_9BDjrHq=B6_KA>