The Samba-Bugzilla – Bug 11296
libarchive detection broken
Last modified: 2015-12-17 10:05:32 UTC
the detection of libarchive is broken. --with-libarchive abort the build even with libarchive installed. Patch to follow ...
Which platform are you on? It works for me on openSUSE 13.2 / SLES12 with and without the --with-libarchive configure flag (where libarchive is autodetected).
(In reply to David Disseldorp from comment #1)
...--without-libarchive works fine for me too.
opensuse factory actually. Unfortunately the previous waf functions was complelety quiet about why the previous check function failed. The new patch is on samba-technical. It also removes the pkg-config requirement while keeping the check for archive_read_support_filter_all, which was the initial reason for the introduction of the pkg-config based version check.
David: with --bundled-libraries=ALL you can reproduce the error. The conf.CHECK_BUNDLED_SYSTEM is only suitable for libraries that we actually bundle. I agree, those functions don't always do what one might expect and their names don't help a lot either. Time for a new build system ;-)
this is fixed in master with c118fbc680f84622c12997cf347f3194d532ddbc
(In reply to Björn Jacke from comment #5)
As this seems to be an issues since 4.2, shouldn't we backport the patch?
sure, if you want, you can cherry-pick it. As the reported issue strictly speaking is just poping up with --bundled-libraries=ALL it doesn't look very urgent to me. c118fbc680 also adds support for older versions of libarchive, which might change package dependencies, this *might* also speak against a backport.