From owner-freebsd-current@FreeBSD.ORG Fri May 29 16:57:51 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7434F106566B; Fri, 29 May 2009 16:57:51 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id DD4508FC1A; Fri, 29 May 2009 16:57:50 +0000 (UTC) (envelope-from mel.flynn+fbsd.current@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 2433B7E837; Fri, 29 May 2009 08:57:48 -0800 (AKDT) From: Mel Flynn To: freebsd-current@freebsd.org Date: Fri, 29 May 2009 18:57:34 +0200 User-Agent: KMail/1.11.3 (FreeBSD/8.0-CURRENT; KDE/4.2.3; i386; ; ) References: <57200BF94E69E54880C9BB1AF714BBCB5DE72E@w2003s01.double-l.local> <200904172107.15616.mel.flynn+fbsd.current@mailing.thruhere.net> <49E96E4E.3070206@freebsd.org> In-Reply-To: <49E96E4E.3070206@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905291857.34848.mel.flynn+fbsd.current@mailing.thruhere.net> Cc: Tim Kientzle Subject: Linking with libarchive fails (Was: Re: buildworld fails.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 16:57:51 -0000 On Saturday 18 April 2009 08:08:14 Tim Kientzle wrote: > Mel Flynn wrote: > > On Friday 17 April 2009 19:52:36 Tim Kientzle wrote: > >> This should be fixed in SVN r191196 by my update to > >> lib/libarchive/config_freebsd.h, which disabled the > >> crypto references here until I can sort out some > >> other issues. > > > > It's fixed. What should we be looking for (if anything) that's now broken > > with crypto references disabled? > > I just re-enabled this code in libarchive, > after waiting all day to ensure that buildworld > succeeds both WITHOUT_OPENSSL and WITH_OPENSSL. Revisiting, side effect: % ident /usr/lib/libarchive.so|awk '{print $3,$2}'|sort -r|head -1 192031 head/lib/libarchive/archive_read_disk_entry_from_file.c Linking with libarchive now results in: /usr/local/libexec/ccache/world-cc -O2 -pipe -std=iso9899:1999 -fstack- protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused- parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno- uninitialized -Wno-pointer-sign -o tardiff tardiff.o -larchive /usr/lib/libarchive.so: undefined reference to `SHA1_Init' /usr/lib/libarchive.so: undefined reference to `SHA256_Update' /usr/lib/libarchive.so: undefined reference to `SHA512_Final' /usr/lib/libarchive.so: undefined reference to `RIPEMD160_Final' /usr/lib/libarchive.so: undefined reference to `SHA256_Final' /usr/lib/libarchive.so: undefined reference to `SHA384_Final' /usr/lib/libarchive.so: undefined reference to `SHA1_Update' /usr/lib/libarchive.so: undefined reference to `SHA1_Final' /usr/lib/libarchive.so: undefined reference to `MD5Final' /usr/lib/libarchive.so: undefined reference to `SHA384_Init' /usr/lib/libarchive.so: undefined reference to `SHA384_Update' /usr/lib/libarchive.so: undefined reference to `SHA512_Init' /usr/lib/libarchive.so: undefined reference to `RIPEMD160_Update' /usr/lib/libarchive.so: undefined reference to `RIPEMD160_Init' /usr/lib/libarchive.so: undefined reference to `SHA512_Update' /usr/lib/libarchive.so: undefined reference to `MD5Init' /usr/lib/libarchive.so: undefined reference to `MD5Update' /usr/lib/libarchive.so: undefined reference to `SHA256_Init' *** Error code 1 Stop in /home/mel/cvs/utils/tardiff. % cat BSDmakefile PROG=tardiff LDADD=-larchive WARNS=3 NO_MAN=yes .include After adding -lmd to LDADD it's trimmed down to: /usr/lib/libarchive.so: undefined reference to `SHA512_Final' /usr/lib/libarchive.so: undefined reference to `SHA384_Final' /usr/lib/libarchive.so: undefined reference to `SHA384_Init' /usr/lib/libarchive.so: undefined reference to `SHA384_Update' /usr/lib/libarchive.so: undefined reference to `SHA512_Init' /usr/lib/libarchive.so: undefined reference to `SHA512_Update' If this is fixed in a more recent current, then I'll have to provide some stubs for these as I'm waiting for the NFS storm to blow over before upgrading. (In case you curious types are wondering what tardiff is, it's something I'm writing at the moment, to figure out why 2 tars are different even though their TOC is the same and are created from in theory the same source tree). -- Mel