Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 11:49:42 -0700
From:      Devin Teske <devin.teske@fisglobal.com>
To:        "'Oliver Lehmann'" <oliver@FreeBSD.org>, <stable@freebsd.org>
Cc:        kientzle@freebsd.org
Subject:   RE: libarchive and WITHOUT_CRYPT
Message-ID:  <03c301cd02dc$6576fd50$3064f7f0$@fisglobal.com>
In-Reply-To: <03be01cd02db$5b5da6d0$1218f470$@fisglobal.com>
References:  <20120315191835.Horde.U3yYVKQd9PdPYjJ7hzJKXVA@avocado.salatschuessel.net> <03be01cd02db$5b5da6d0$1218f470$@fisglobal.com>

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


> -----Original Message-----
> From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-
> stable@freebsd.org] On Behalf Of Devin Teske
> Sent: Thursday, March 15, 2012 11:42 AM
> To: 'Oliver Lehmann'; stable@freebsd.org
> Cc: kientzle@freebsd.org
> Subject: RE: libarchive and WITHOUT_CRYPT
> 
> 
> 
> > -----Original Message-----
> > From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-
> > stable@freebsd.org] On Behalf Of Oliver Lehmann
> > Sent: Thursday, March 15, 2012 11:19 AM
> > To: stable@freebsd.org
> > Cc: kientzle@freebsd.org
> > Subject: libarchive and WITHOUT_CRYPT
> >
> > Hi,
> >
> > has someone ever tested to compile world with WITHOUT_CRYPT set
> > in /etc/src.conf? It stops at:
> >
> > In file included from
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support
> _f
> > ormat_xar.c:57:
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:2
> 0:
> > error: sha1.h: No such file or
> > directory
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:2
> 0:
> > error: sha2.h: No such file or
> > directory
> > In file included from
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_fo
> rm
> > at_mtree.c:42:
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:2
> 0:
> > error: sha1.h: No such file or
> > directory
> >
>
/usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:2
> 0:
> > error: sha2.h: No such file or
> > directory
> > mkdep: compile failed
> >
> > So it obviously does not work correctly :(
> >
> 
> I've already filed a PR against this:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/164206
> 
> There's a patch in the PR that fixes this.
> 
> BTW, the PR is still open after 59 days (can someone have a look?)!
> --
> Devin
> 

There appears to be a duplicate (and much older) PR that is related:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/160922

NOTE: I haven't tested that patch. It may not work. I know that misc/164206
works to fix RELENG_9 however.

But let me warn you...

If you're compiling RELENG_9, after you fix the error in libarchive, you'll then
hit 3 more errors (of which I have filed PRs for also):

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164208
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164209
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164210

If you apply the patches in misc/164206, kern/164208, kern/164209, and
kern/164210...

You should be able to compile RELENG_9 cleanly all-the-way through with
-DWITHOUT_OPENSSL (comparable to -DWITHOUT_CRYPT).
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03c301cd02dc$6576fd50$3064f7f0$>