I know I know, who disables zlib on this anyway? Some guys who didn't know how to use per-pkg USE for pciutils[-zlib] I guess. But anyway, with zlib disabled, libarchive fails to build. Reproducible: Always Steps to Reproduce: 1. USE="-zlib" emerge -1 =app-arch/libarchive-3.0.3 Actual Results: libtool: link: x86_64-pc-linux-gnu-gcc -Wall -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -o .libs/bsdcpio cpio/bsdcpio-cmdline.o cpio/bsdcpio-cpio.o ./.libs/libarchive_fe.a ./.libs/libarchive.so -lacl -llzma -lbz2 -lxml2 -lz -lm -lcrypto ./.libs/libarchive.so: undefined reference to `compression_unsupported_encoder' collect2: ld returned 1 exit status make[1]: *** [bsdcpio] Error 1 make[1]: *** Waiting for unfinished jobs.... ./.libs/libarchive.so: undefined reference to `compression_unsupported_encoder' collect2: ld returned 1 exit status make[1]: *** [bsdtar] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-arch/libarchive-3.0.3/work/libarchive-3.0.3' make: *** [all] Error 2
Created attachment 301977 [details] build.log
Reported to upstream here: http://code.google.com/p/libarchive/issues/detail?id=242
Created attachment 303627 [details, diff] libarchive-3.0.3-nozlib.patch Upstream bug report has a fix for this, I combined their 2 patches into 1 (attached here) and it fixes the issue here.
patch in portage, closing