From owner-freebsd-ports@freebsd.org Fri Apr 14 19:28:09 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 180C6D3EEE5; Fri, 14 Apr 2017 19:28:09 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from smtp02.qsp.nl (smtp02.qsp.nl [193.254.214.163]) by mx1.freebsd.org (Postfix) with ESMTP id B89152E8; Fri, 14 Apr 2017 19:28:08 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from smtp02.qsp.nl (localhost [127.0.0.1]) by smtp02.qsp.nl (Postfix) with ESMTP id 45A18FD12A; Fri, 14 Apr 2017 21:28:01 +0200 (CEST) Received: from mail.brnrd.eu (unknown [193.164.217.85]) by smtp02.qsp.nl (Postfix) with ESMTP; Fri, 14 Apr 2017 21:28:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=brnrd.eu; h=date:from:to:subject:message-id; s=default; bh=LdycYKe3AwhdA/7ubO0yBAeLm0IpbhkJ/QDLWN53UGk=; b=vN1E31sZB5GsH9H/Qt/mxwMiKxGOoxlG4ZAGN3YeTKv8k7GB/riQulYgeaSOFa/UuiptbdHO/y/a6mDHufmfEswCW50hToAa21fzmVU6KYO7B/kFO3KkDMkBeDHBkNoZ8EuSOJKNx+x4yR+xwxB84MbpijZOPonLZa9/hCE45RVnKu15/c71QCIs8Gl2THzLQ62zkMSnl0CmbKP6X8OK8AeZ3lrcoAtUl13GClgdEnfWGIyJo0M/KBfDnHTYXbtX7OGexamHC8Dkb6yiVV+lWh5lUk9QaQCzYUCllcISyYgWIfBSiP3wodb0CpjdJ2uN4Hp80ILMytdLRfUiYOoduA== Received: from mail.bachfreund.nl (http.brnrd.eu [172.17.2.8]) by bachfreund.nl (OpenSMTPD) with ESMTPSA id a644fc71 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Fri, 14 Apr 2017 21:27:59 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 14 Apr 2017 21:27:59 +0200 From: Bernard Spil To: Rafael Henrique da Silva Faria Cc: hrs@freebsd.org, ports@freebsd.org, freebsd-ports@freebsd.org Subject: Re: LibreSSL + Heimdal Problem In-Reply-To: <481621391.4519306.1492083780084.JavaMail.zimbra@fclar.unesp.br> References: <481621391.4519306.1492083780084.JavaMail.zimbra@fclar.unesp.br> Message-ID: X-Sender: brnrd@FreeBSD.org User-Agent: Roundcube Webmail/1.2.4 X-Virus-Scanned: clamav at smtp02 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 19:28:09 -0000 On 2017-04-13 13:43, Rafael Henrique da Silva Faria wrote: > Hi everyone, I'm trying to compile Heimdal with LibreSSL on a server, > but there is a odd problem. > > Actually, I'm updating a working server, updated the LibreSSL version, > and tried to recompile all dependent ports with "portmaster -fr > libressl", but it stops on Heimdal. > > The make stops on this linking: > /usr/bin/ld: warning: libcrypto.so.38, needed by > /usr/local/lib/heimdal/libhcrypto.so.4, not found (try using -rpath or > -rpath-link) > > But when the make checks the depends, it looks for an other lib: > ===> heimdal-7.1.0_2 depends on file: /usr/local/lib/libcrypto.so.41 > - found > > root@cenpe heimdal # pkg which /usr/local/lib/libcrypto.so.41 > /usr/local/lib/libcrypto.so.41 was installed by package libressl-2.5.3 > root@cenpe heimdal # pkg which /usr/local/lib/libcrypto.so.38 > /usr/local/lib/libcrypto.so.38 was not found in the database > root@cenpe heimdal # pkg info | grep heimdal > heimdal-7.1.0_2 Popular BSD-licensed implementation of > Kerberos 5 > root@cenpe heimdal # /usr/local/bin/openssl version > LibreSSL 2.5.3 > > There is anything that I need to do to change the lib that Heimdal is > looking for? I already have tried to recompile all ports (portmaster > -fa), but it always stops on Heimdal. > > I don't know if the problem is with Heimdal or LibreSSL, because I > can't recompile OpenSSH-Portable on this machine too. > It stops on configure: > > checking OpenSSL header version... not found > configure: error: OpenSSL version header not found. > > All started after updating LibreSSL to the latest version. > > root@cenpe openssh-portable # freebsd-version -ku > 11.0-RELEASE-p8 > 11.0-RELEASE-p8 > root@cenpe openssh-portable # uname -a > FreeBSD cenpe.fclar.unesp.br 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 > #0: Mon Oct 24 06:55:27 UTC 2016 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > Please, let me know if I need to give some more information. > > Thanks in advance. > > -- > Rafael Henrique da Silva Faria Hi Rafael, Sounds to me like portmaster isn't processing dependencies correctly here. The installed heimdal still depends on the old libcrypto whilst you have the new one on your system. Does it fail during build of a spcific port? You may want to first rebuild heimdal before other ports. pkg delete -f heimdal first, then build/install it again. If you still have the old package you could extract the old libs from libressl 2.4 and put them in /usr/local/lib temporarily. Sometimes you can also circumvent the issue by symlinking libcrypto.so.38 to libcrypto.so.41 but that is real hackish. Cheers, Bernard.