From owner-freebsd-ports@FreeBSD.ORG Fri Apr 10 01:48:14 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02511ADF for ; Fri, 10 Apr 2015 01:48:14 +0000 (UTC) Received: from mail16.tpgi.com.au (mail16.tpgi.com.au [203.12.160.231]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.tpg.com.au", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E3FED40 for ; Fri, 10 Apr 2015 01:48:12 +0000 (UTC) X-TPG-Junk-Status: Message not scanned X-TPG-Antivirus: Passed X-TPG-Abuse: host=[202.161.115.54]; ip=202.161.115.54; date=Fri, 10 Apr 2015 11:48:03 +1000 Received: from fish.ish.com.au (202-161-115-54.static.tpgi.com.au [202.161.115.54] (may be forged)) by mail16.tpgi.com.au (envelope-from ari@ish.com.au) (8.14.3/8.14.3) with ESMTP id t3A1m0xE006029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 10 Apr 2015 11:48:03 +1000 Received: from ip-211.ish.com.au ([203.29.62.211]:16906 helo=ish.com.au) by fish.ish.com.au with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1YgO2v-00041c-2B for freebsd-ports@freebsd.org; Fri, 10 Apr 2015 11:47:50 +1000 Received: from [203.29.62.136] (HELO ip-136.ish.com.au) by ish.com.au (CommuniGate Pro SMTP 6.1.2) with ESMTPS id 18042291 for freebsd-ports@freebsd.org; Fri, 10 Apr 2015 11:47:49 +1000 Subject: Re: openssl and bash libcrypto references: <552657AC.1020802@ish.com.au> <55271AB5.8020907@ish.com.au> From: Aristedes Maniatis x-enigmail-draft-status: N1110 To: freebsd-ports message-id: <55272BC5.8090805@ish.com.au> Date: Fri, 10 Apr 2015 11:47:49 +1000 user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0 mime-version: 1.0 in-reply-to: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 01:48:14 -0000 Dewayne Geraghty wrote: > Most likely there was a port build that required openssl port, and also required > something like libarchive or libfetch (for example), both require openssl base > (I've found net-mgmt/net-snmp does this). Your bt reveals that the symbol table > is confused, as expected. Ah, that's a good help. So I can easily core dump /usr/bin/vi by trying to edit any file. Forgive my ignorance of C debugging, but I'll stumble through this: 1. I attach gdb to the application and load the core dump. 2. It tries to read symbols from a bunch of system libraries. 3. In amongst all those libraries are some located in /usr/local: /usr/local/lib/nss_ldap.so.1 /usr/local/lib/libldap-2.4.so.2 /usr/local/lib/liblber-2.4.so.2 /usr/local/lib/libssl.so.8 /usr/local/lib/libcrypto.so.8 So the whole chain of problems originates from nss_ldap. But I'm confused about what I'm looking at here.. Did vi try to load some access control library when it tried to write a file out to disk, and then that loaded nsswitch which in turn I've tied into the nss_ldap port, and then from there it was a slippery slope to disaster of conflicting libraries? I'll try building nss_ldap against base openssl and see if that helps, but can someone help explain the naming here. Why do we have /usr/local/lib/libcrypto.so.8 but lib/libcrypto.so.7. Was this done when the openssl port moved from 1.0.1 to 1.0.2? Isn't there usually a warning in UPDATING when we need to rebuild all ports for that reason? If all ports move to only use openssl from ports, then how does my example above get fixed? Doesn't it make it all worse? So many questions! Thanks for all the help in understanding this. Ari -- --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A