From owner-freebsd-current@FreeBSD.ORG Sat Oct 26 12:42:59 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3F7D6D57 for ; Sat, 26 Oct 2013 12:42:59 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 03C202B8D for ; Sat, 26 Oct 2013 12:42:58 +0000 (UTC) Received: from p5dc3e9e5.dip0.t-ipconnect.de ([93.195.233.229] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1Va3Cg-0005Xn-Rk; Sat, 26 Oct 2013 14:42:55 +0200 Message-ID: <526BB8C9.4@gwdg.de> Date: Sat, 26 Oct 2013 14:42:49 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Matthias Andree , freebsd-current@freebsd.org Subject: Re: latest sbin/pkg updates seem to break HEAD References: <526B9FC7.2040005@gwdg.de> <526BA1AB.4060806@gmx.de> In-Reply-To: <526BA1AB.4060806@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 26 Oct 2013 12:42:59 -0000 Am 26.10.2013 13:04, schrieb Matthias Andree: > Am 26.10.2013 12:56, schrieb Rainer Hurling: >> After svn update my 11.0-CURRENT box to r257152, the build breaks. >> Obviously there is something wrong with the newest patches for sbin/pkg >> (or libcrypt). Am I the only one observing this? >> >> Any help is appreciated, >> Rainer Hurling >> >> >> [..snip..] >> ===> usr.sbin/pkg (all) > ... >> cc -O2 -pipe -I/usr/src/usr.sbin/pkg/../../contrib/libyaml/include >> -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror >> -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual >> -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align >> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >> -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign >> -Wno-empty-body -Wno-string-plus-int >> -L/usr/obj/usr/src/tmp/usr/lib/private -rpath /usr/lib/private -o pkg >> pkg.o dns_utils.o config.o -larchive -lelf -lfetch -lyaml -lsbuf -lssl >> >> /usr/obj/usr/src/tmp/usr/bin/ld: D: invalid DSO for symbol >> `EVP_PKEY_free' definition >> /usr/obj/usr/src/tmp/lib/libcrypto.so.7: could not read symbols: Bad value >> cc: error: linker command failed with exit code 1 (use -v to see invocation) >> *** Error code 1 >> Stop. >> make[4]: stopped in /usr/src/usr.sbin/pkg > > These can happen if a library is missing, for instance, -lcrypto is > apparently not mentioned on the linker's command line, but AFAIR the > clang linker accepts no unresolved symbols from .so when linking > executables, and -lssl likely needs -lcrypto. This avoids run-time > surprises due to missing dependencies (on libcrypto, in this case). > > Try pasting that command line with -lcrypto added after -lssl, and if > that helps, try to debug where the -lcrypto has been or gets lost, or > should get added. > > HTH Yep, adding -lcrypto seems to help. I patched usr.sbin/pkg/Makefile for it. But I am wondering if nobody else has this problem? I did not change my systems sources before. Many thanks for your fast reply and help, Rainer --- Makefile.orig 2013-10-26 08:33:50.000000000 +0200 +++ Makefile 2013-10-26 14:26:06.000000000 +0200 @@ -7,7 +7,7 @@ CFLAGS+=-I${.CURDIR}/../../contrib/libyaml/include .PATH: ${.CURDIR}/../../contrib/libyaml/include DPADD= ${LIBARCHIVE} ${LIBELF} ${LIBFETCH} ${LIBYAML} ${LIBSBUF} -LDADD= -larchive -lelf -lfetch -lyaml -lsbuf -lssl +LDADD= -larchive -lelf -lfetch -lyaml -lsbuf -lssl -lcrypto USEPRIVATELIB= yaml .include