Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 2015 02:57:01 -0700
From:      David Benfell <benfell@parts-unknown.org>
To:        freebsd-questions@freebsd.org
Subject:   SOLVED: Re: libarchive won't build - lzma symbols missing
Message-ID:  <20150907025701.Horde.orgCgVQruPughp0idZ7Y4lX@mail.parts-unknown.org>
In-Reply-To: <20150907023522.Horde.Opxn2Rcbgz-dKXWCR8s5Xsk@mail.parts-unknown.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_03mgfwFeONppppJkjW8PZkT
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quoting David Benfell <benfell@parts-unknown.org>:

> Hi all,
>
> I'm not seeing my way through this in the libarchive port build:
>
> --- bsdcpio ---
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_open':
> libarchive/archive_write_add_filter_xz.c:(.text+0x3b9): undefined=20=20
>=20reference to `lzma_lzma_preset'
> libarchive/archive_write_add_filter_xz.c:(.text+0x44c): undefined=20=20
>=20reference to `lzma_alone_encoder'
> libarchive/archive_write_add_filter_xz.c:(.text+0x467): undefined=20=20
>=20reference to `lzma_stream_encoder'
> libarchive/archive_write_add_filter_xz.c:(.text+0x565): undefined=20=20
>=20reference to `lzma_raw_encoder'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_close':
> libarchive/archive_write_add_filter_xz.c:(.text+0x6ed): undefined=20=20
>=20reference to `lzma_end'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`drive_compressor':
> libarchive/archive_write_add_filter_xz.c:(.text+0x841): undefined=20=20
>=20reference to `lzma_code'
> libarchive/archive_write_add_filter_xz.c:(.text+0x871): undefined=20=20
>=20reference to `lzma_memusage'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_write':
> libarchive/archive_write_add_filter_xz.c:(.text+0x913): undefined=20=20
>=20reference to `lzma_crc32'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `archive_read_format_7zip_cleanup':
> libarchive/archive_read_support_format_7zip.c:(.text+0x2555):=20=20
>=20undefined reference to `lzma_end'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `extract_pack_stream':
> libarchive/archive_read_support_format_7zip.c:(.text+0x2dee):=20=20
>=20undefined reference to `lzma_code'
> libarchive/archive_read_support_format_7zip.c:(.text+0x2e09):=20=20
>=20undefined reference to `lzma_end'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `init_decompression':
> libarchive/archive_read_support_format_7zip.c:(.text+0x431c):=20=20
>=20undefined reference to `lzma_end'
> libarchive/archive_read_support_format_7zip.c:(.text+0x47d3):=20=20
>=20undefined reference to `lzma_properties_decode'
> --- bsdtar ---
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_open':
> libarchive/archive_write_add_filter_xz.c:(.text+0x3b9): undefined=20=20
>=20reference to `lzma_lzma_preset'
> --- bsdcpio ---
> libarchive/archive_read_support_format_7zip.c:(.text+0x480e):=20=20
>=20undefined reference to `lzma_raw_decoder'
> --- bsdtar ---
> libarchive/archive_write_add_filter_xz.c:(.text+0x44c): undefined=20=20
>=20reference to `lzma_alone_encoder'
> libarchive/archive_write_add_filter_xz.c:(.text+0x467): undefined=20=20
>=20reference to `lzma_stream_encoder'
> libarchive/archive_write_add_filter_xz.c:(.text+0x565): undefined=20=20
>=20reference to `lzma_raw_encoder'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_close':
> libarchive/archive_write_add_filter_xz.c:(.text+0x6ed): undefined=20=20
>=20reference to `lzma_end'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`drive_compressor':
> libarchive/archive_write_add_filter_xz.c:(.text+0x841): undefined=20=20
>=20reference to `lzma_code'
> --- bsdcpio ---
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_init_encoder_lzma':
> libarchive/archive_write_set_format_7zip.c:(.text+0x2cd8): undefined=20=
=20
>=20reference to `lzma_lzma_preset'
> --- bsdtar ---
> libarchive/archive_write_add_filter_xz.c:(.text+0x871): undefined=20=20
>=20reference to `lzma_memusage'
> ./.libs/libarchive.a(archive_write_add_filter_xz.o): In function=20=20
>=20`archive_compressor_xz_write':
> --- bsdcpio ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2d38): undefined=20=
=20
>=20reference to `lzma_properties_size'
> --- bsdtar ---
> libarchive/archive_write_add_filter_xz.c:(.text+0x913): undefined=20=20
>=20reference to `lzma_crc32'
> --- bsdcpio ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2d9a): undefined=20=
=20
>=20reference to `lzma_properties_encode'
> libarchive/archive_write_set_format_7zip.c:(.text+0x2dfb): undefined=20=
=20
>=20reference to `lzma_raw_encoder'
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_code_lzma':
> --- bsdtar ---
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_init_encoder_lzma':
> --- bsdcpio ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2ee1): undefined=20=
=20
>=20reference to `lzma_code'
> --- bsdtar ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2cd8): undefined=20=
=20
>=20reference to `lzma_lzma_preset'
> --- bsdcpio ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2f23): undefined=20=
=20
>=20reference to `lzma_memusage'
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_end_lzma':
> --- bsdtar ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2d38): undefined=20=
=20
>=20reference to `lzma_properties_size'
> --- bsdcpio ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2f82): undefined=20=
=20
>=20reference to `lzma_end'
> --- bsdtar ---
> libarchive/archive_write_set_format_7zip.c:(.text+0x2d9a): undefined=20=
=20
>=20reference to `lzma_properties_encode'
> libarchive/archive_write_set_format_7zip.c:(.text+0x2dfb): undefined=20=
=20
>=20reference to `lzma_raw_encoder'
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_code_lzma':
> libarchive/archive_write_set_format_7zip.c:(.text+0x2ee1): undefined=20=
=20
>=20reference to `lzma_code'
> libarchive/archive_write_set_format_7zip.c:(.text+0x2f23): undefined=20=
=20
>=20reference to `lzma_memusage'
> ./.libs/libarchive.a(archive_write_set_format_7zip.o): In function=20=20
>=20`compression_end_lzma':
> libarchive/archive_write_set_format_7zip.c:(.text+0x2f82): undefined=20=
=20
>=20reference to `lzma_end'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `archive_read_format_7zip_cleanup':
> libarchive/archive_read_support_format_7zip.c:(.text+0x2555):=20=20
>=20undefined reference to `lzma_end'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `extract_pack_stream':
> libarchive/archive_read_support_format_7zip.c:(.text+0x2dee):=20=20
>=20undefined reference to `lzma_code'
> libarchive/archive_read_support_format_7zip.c:(.text+0x2e09):=20=20
>=20undefined reference to `lzma_end'
> ./.libs/libarchive.a(archive_read_support_format_7zip.o): In=20=20
>=20function `init_decompression':
> libarchive/archive_read_support_format_7zip.c:(.text+0x431c):=20=20
>=20undefined reference to `lzma_end'
> libarchive/archive_read_support_format_7zip.c:(.text+0x47d3):=20=20
>=20undefined reference to `lzma_properties_decode'
> libarchive/archive_read_support_format_7zip.c:(.text+0x480e):=20=20
>=20undefined reference to `lzma_raw_decoder'
> --- bsdcpio ---
> cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)
> *** [bsdcpio] Error code 1
>
> make[3]: stopped in /usr/ports/archivers/libarchive/work/libarchive-3.1.2
> --- bsdtar ---
> cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)
> *** [bsdtar] Error code 1
>
> make[3]: stopped in /usr/ports/archivers/libarchive/work/libarchive-3.1.2
> 2 errors
>
> make[3]: stopped in /usr/ports/archivers/libarchive/work/libarchive-3.1.2
> *** [all] Error code 2
>
> make[2]: stopped in /usr/ports/archivers/libarchive/work/libarchive-3.1.2
> 1 error
>
> make[2]: stopped in /usr/ports/archivers/libarchive/work/libarchive-3.1.2
> =3D=3D=3D> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur=
e to
> the maintainer.
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/ports/archivers/libarchive
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/archivers/libarchive
>
> This is:
>
> 10.2-STABLE
> FreeBSD vegan.parts-unknown.org 10.2-STABLE FreeBSD 10.2-STABLE #0=20=20
>=20r286787: Fri Aug 14 14:58:35 PDT 2015=20=20=20=20=20=20
>=20root@vegan.parts-unknown.org:/usr/obj/usr/src/sys/GENERIC  amd64
>
> The problem has been present for several months and is inhibiting=20=20
>=20port upgrades.

It finally occurred to me to try removing lzmalib. libarchive builds=20=20
fine=20with it removed.

Apologies for the noise. Hope this helps someone else....


--=20
David=20Benfell <benfell@parts-unknown.org>

--=_03mgfwFeONppppJkjW8PZkT
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJV7V9tAAoJEOoml8Ul4D7WgUYP/00BxCK63qw7UDP5o0MRCsHr
ZIqHjjOcM34uLBMoJvxa+aha8oPz3IrOJ1NTND1cciYN6fEdFBQu/sRPDpKKvU2I
+xlvIH0B/0t5sabQggz9eUBPToZxLeZCi7RwHrow47ZWsbyDHHgQ4uDMvCIUFhnt
vmzgNDjyluGFGMzxuthxeqY3sYuUvcWmiTYSz1RdDvygL6VIUk0YC4IpO6fcxEcP
nPKVJFtL1IX1sdFk47OWeTEtEDAzJhs2+iM4gU2pM67lNTIJl2+x2bDs2D8KmQIU
2matrp4nTMPBOYz1jmyROJBxz18MR7S/JDe1CyM5pLQzCKs2SG7VrjJdreLz853X
X/RAPJlWRlll/K5D9XrcBA2jq1aeXObQAWVubra8NhgBHYlMMoE9dx+yXdeQzhS0
ySLE2EZ4YrX6KXyVcTK9dg4CoSwBead6QtBOXQMMVHVmP95qF5+RNtg7wslk+zIH
S1+SfBAdH45xg9oh3m1dAjfEuP8zOcLuFmqKYV/nU6Kyg6WVlbeQLcigGYjaWam6
SxwjiYD88yQPB5zxvLf0V5/c+aV2iMpzBPzH8jkQBq/v0UrzftSjCVDlR9oggX8Q
eZAFhor1XP7b3u/Vzqj0PYk3GGhoS2nA6e0M87WM46ZW9WNHuP5sWuuZwICCrcbG
lDQTIMRuCJSUbgRSuIt9
=zDY5
-----END PGP SIGNATURE-----

--=_03mgfwFeONppppJkjW8PZkT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150907025701.Horde.orgCgVQruPughp0idZ7Y4lX>