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

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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  
`archive_compressor_xz_open':
libarchive/archive_write_add_filter_xz.c:(.text+0x3b9): undefined  
reference to `lzma_lzma_preset'
libarchive/archive_write_add_filter_xz.c:(.text+0x44c): undefined  
reference to `lzma_alone_encoder'
libarchive/archive_write_add_filter_xz.c:(.text+0x467): undefined  
reference to `lzma_stream_encoder'
libarchive/archive_write_add_filter_xz.c:(.text+0x565): undefined  
reference to `lzma_raw_encoder'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`archive_compressor_xz_close':
libarchive/archive_write_add_filter_xz.c:(.text+0x6ed): undefined  
reference to `lzma_end'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`drive_compressor':
libarchive/archive_write_add_filter_xz.c:(.text+0x841): undefined  
reference to `lzma_code'
libarchive/archive_write_add_filter_xz.c:(.text+0x871): undefined  
reference to `lzma_memusage'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`archive_compressor_xz_write':
libarchive/archive_write_add_filter_xz.c:(.text+0x913): undefined  
reference to `lzma_crc32'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`archive_read_format_7zip_cleanup':
libarchive/archive_read_support_format_7zip.c:(.text+0x2555):  
undefined reference to `lzma_end'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`extract_pack_stream':
libarchive/archive_read_support_format_7zip.c:(.text+0x2dee):  
undefined reference to `lzma_code'
libarchive/archive_read_support_format_7zip.c:(.text+0x2e09):  
undefined reference to `lzma_end'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`init_decompression':
libarchive/archive_read_support_format_7zip.c:(.text+0x431c):  
undefined reference to `lzma_end'
libarchive/archive_read_support_format_7zip.c:(.text+0x47d3):  
undefined reference to `lzma_properties_decode'
--- bsdtar ---
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`archive_compressor_xz_open':
libarchive/archive_write_add_filter_xz.c:(.text+0x3b9): undefined  
reference to `lzma_lzma_preset'
--- bsdcpio ---
libarchive/archive_read_support_format_7zip.c:(.text+0x480e):  
undefined reference to `lzma_raw_decoder'
--- bsdtar ---
libarchive/archive_write_add_filter_xz.c:(.text+0x44c): undefined  
reference to `lzma_alone_encoder'
libarchive/archive_write_add_filter_xz.c:(.text+0x467): undefined  
reference to `lzma_stream_encoder'
libarchive/archive_write_add_filter_xz.c:(.text+0x565): undefined  
reference to `lzma_raw_encoder'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`archive_compressor_xz_close':
libarchive/archive_write_add_filter_xz.c:(.text+0x6ed): undefined  
reference to `lzma_end'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`drive_compressor':
libarchive/archive_write_add_filter_xz.c:(.text+0x841): undefined  
reference to `lzma_code'
--- bsdcpio ---
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_init_encoder_lzma':
libarchive/archive_write_set_format_7zip.c:(.text+0x2cd8): undefined  
reference to `lzma_lzma_preset'
--- bsdtar ---
libarchive/archive_write_add_filter_xz.c:(.text+0x871): undefined  
reference to `lzma_memusage'
./.libs/libarchive.a(archive_write_add_filter_xz.o): In function  
`archive_compressor_xz_write':
--- bsdcpio ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2d38): undefined  
reference to `lzma_properties_size'
--- bsdtar ---
libarchive/archive_write_add_filter_xz.c:(.text+0x913): undefined  
reference to `lzma_crc32'
--- bsdcpio ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2d9a): undefined  
reference to `lzma_properties_encode'
libarchive/archive_write_set_format_7zip.c:(.text+0x2dfb): undefined  
reference to `lzma_raw_encoder'
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_code_lzma':
--- bsdtar ---
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_init_encoder_lzma':
--- bsdcpio ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2ee1): undefined  
reference to `lzma_code'
--- bsdtar ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2cd8): undefined  
reference to `lzma_lzma_preset'
--- bsdcpio ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2f23): undefined  
reference to `lzma_memusage'
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_end_lzma':
--- bsdtar ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2d38): undefined  
reference to `lzma_properties_size'
--- bsdcpio ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2f82): undefined  
reference to `lzma_end'
--- bsdtar ---
libarchive/archive_write_set_format_7zip.c:(.text+0x2d9a): undefined  
reference to `lzma_properties_encode'
libarchive/archive_write_set_format_7zip.c:(.text+0x2dfb): undefined  
reference to `lzma_raw_encoder'
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_code_lzma':
libarchive/archive_write_set_format_7zip.c:(.text+0x2ee1): undefined  
reference to `lzma_code'
libarchive/archive_write_set_format_7zip.c:(.text+0x2f23): undefined  
reference to `lzma_memusage'
./.libs/libarchive.a(archive_write_set_format_7zip.o): In function  
`compression_end_lzma':
libarchive/archive_write_set_format_7zip.c:(.text+0x2f82): undefined  
reference to `lzma_end'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`archive_read_format_7zip_cleanup':
libarchive/archive_read_support_format_7zip.c:(.text+0x2555):  
undefined reference to `lzma_end'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`extract_pack_stream':
libarchive/archive_read_support_format_7zip.c:(.text+0x2dee):  
undefined reference to `lzma_code'
libarchive/archive_read_support_format_7zip.c:(.text+0x2e09):  
undefined reference to `lzma_end'
./.libs/libarchive.a(archive_read_support_format_7zip.o): In function  
`init_decompression':
libarchive/archive_read_support_format_7zip.c:(.text+0x431c):  
undefined reference to `lzma_end'
libarchive/archive_read_support_format_7zip.c:(.text+0x47d3):  
undefined reference to `lzma_properties_decode'
libarchive/archive_read_support_format_7zip.c:(.text+0x480e):  
undefined reference to `lzma_raw_decoder'
--- bsdcpio ---
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [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 invocation)
*** [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
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure 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  
r286787: Fri Aug 14 14:58:35 PDT 2015      
root@vegan.parts-unknown.org:/usr/obj/usr/src/sys/GENERIC  amd64

The problem has been present for several months and is inhibiting port  
upgrades.

Thanks!
-- 
David Benfell <benfell@parts-unknown.org>

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJV7VpaAAoJEOoml8Ul4D7WsTwQAJOMzRle2d6cximgEGu6DIxe
7VS9kiBOxm3B1OIx9yh6whVmF5hoC98C4XBYEZ91e/4C5ynbwJiQI5XrIP3M5nMu
Ry8Dprg+O+gYjXucF+3YUoTSmLKj5dhexDqJuofiPcb0HpgpNk2CVkJ87J6/i6GI
+qUBVP9DDnkJpCn8w9JBb3z63k5mjdyBILXk8uek5fMp06SxOB5JUsFZbKwXOpg2
lL4Sy9tTJp29dXA6uRiYknbYNtx9YKyDwgEbkwJ+JVrddhhzKwY+KKRcgmWTtcyc
2sXER+ZTvCkjgAun6b8T0znqIl7f76cIf/INxCMTMZlQbkw/JKNo+974xZTw9HYH
naN1tZzcwqr88o2t4G948WA0gVL66zKtZCDFElKwik1pls9HoziOoToHFVd7Xi1b
X1n2bNeE0Xb6ZV3w4OMHIJmQ3mwx0H/CJo5rcuv7bT4vaQ+FH4nrfolkXJvL41PB
j7rz3VwNlRdUlT2oMhHgsdDTJNy18IqMpQXrIuyeRmaGJ6LolsJWNznHy2XBbfAg
Ni+zwbSAbeJV9ZVne8pM75zYAg2y0DtpgtFPPdCZbTmC9MqxWQqx2M1/QT8k9oVC
mFiMJYjo77hmm16f0UA208JUn/wYw5nfcsDEPfA3f8qN8hQWBxki2k8/NK9jNrpl
MdoVFCPxI0r+bEimoOTv
=2ItN
-----END PGP SIGNATURE-----

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