Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2012 19:14:02 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Cc:        Devin Teske <devin.teske@fisglobal.com>, Dave Robison <Dave.Robison@fisglobal.com>
Subject:   Re: buildworld -DWITHOUT_OPENSSL fails at lib/libarchive
Message-ID:  <3489DCF5-0E1F-4F6B-A924-772F6F7B2E18@fisglobal.com>
In-Reply-To: <2F8A82E5-70D7-4A1F-A785-704F41E7DFDA@fisglobal.com>
References:  <2F8A82E5-70D7-4A1F-A785-704F41E7DFDA@fisglobal.com>

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


On Jan 13, 2012, at 5:20 PM, Devin Teske wrote:

> Not sure when this happened, but RELENG_8 circa FreeBSD-8.1 didn't have this problem.
> 
> Can anyone confirm that this appears to be a regression in RELENG_9?
> 
> Output below.
> -- 
> Devin
> 
> $ make buildworld -DWITHOUT_OPENSSL
> [snip]
> ===> lib/libarchive (depend)
> rm -f .depend
> mkdep -f .depend -a    -DDRUID -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DPLATFORM_CONFIG_H=\"/usr/src/lib/libarchive/config_freebsd.h\" -I/usr/obj/usr/src/lib/libarchive
> [snip]
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_xar.c
> [snip]
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_mtree.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_pax.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_shar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_ustar.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_zip.c /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/filter_fork.c
> In file included from /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_read_support_format_xar.c:57:
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:20: error: sha1.h: No such file or directory
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:20: error: sha2.h: No such file or directory
> In file included from /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_write_set_format_mtree.c:42:
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:129:20: error: sha1.h: No such file or directory
> /usr/src/lib/libarchive/../../contrib/libarchive/libarchive/archive_hash.h:166:20: error: sha2.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
> 
> Stop in /usr/src/lib/libarchive.
> *** Error code 1

[snip]

Solved this with the following patch (RELENG_9; config_freebsd.h revision 1.28.2.2):

--- lib/libarchive/config_freebsd.h.orig	2012-01-05 03:44:55.000000000 -0800
+++ lib/libarchive/config_freebsd.h	2012-01-13 18:43:46.000000000 -0800
@@ -176,9 +176,4 @@
 #define	ARCHIVE_HASH_SHA256_OPENSSL 1
 #define	ARCHIVE_HASH_SHA384_OPENSSL 1
 #define	ARCHIVE_HASH_SHA512_OPENSSL 1
-#else
-#define	ARCHIVE_HASH_MD5_LIBC 1
-#define	ARCHIVE_HASH_SHA1_LIBC 1
-#define	ARCHIVE_HASH_SHA256_LIBC 1
-#define	ARCHIVE_HASH_SHA512_LIBC 1
 #endif

The above patch allowed the mkdep to succeed and later-compilation in the same directory succeeded (yay).
-- 
Devin

NOTE: I'll file a PR once we get a successful buildworld (... yeah, next place we stopped with -DWITHOUT_OPENSSL is making (all) in lib/libbsnmp/libbsnmp -- but I'll start a new thread for that).

_____________
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.


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3489DCF5-0E1F-4F6B-A924-772F6F7B2E18>