Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403733 - =app-arch-libarchive-3.0.3 fails to build with USE="-zlib"
Summary: =app-arch-libarchive-3.0.3 fails to build with USE="-zlib"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL: http://code.google.com/p/libarchive/i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 00:17 UTC by Ben Kohler
Modified: 2012-03-05 08:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,68.45 KB, text/plain)
2012-02-15 00:17 UTC, Ben Kohler
Details
libarchive-3.0.3-nozlib.patch (libarchive-3.0.3-nozlib.patch,1.25 KB, patch)
2012-02-28 19:45 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2012-02-15 00:17:21 UTC
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
Comment 1 Ben Kohler gentoo-dev 2012-02-15 00:17:40 UTC
Created attachment 301977 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-02-15 01:32:19 UTC
Reported to upstream here:

http://code.google.com/p/libarchive/issues/detail?id=242
Comment 3 Ben Kohler gentoo-dev 2012-02-28 19:45:26 UTC
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.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-05 08:59:26 UTC
patch in portage, closing