From owner-freebsd-ports@FreeBSD.ORG Tue Apr 15 18:19:41 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E482E37B401; Tue, 15 Apr 2003 18:19:41 -0700 (PDT) Received: from vp4.netgate.net (vp4.netgate.net [205.214.170.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3CAD43F75; Tue, 15 Apr 2003 18:19:40 -0700 (PDT) (envelope-from ctodd@chrismiller.com) Received: from localhost (ibrew@localhost) by vp4.netgate.net (8.11.6/8.11.6) with ESMTP id h3G1J2x12686; Tue, 15 Apr 2003 18:19:02 -0700 (PDT) Date: Tue, 15 Apr 2003 18:19:02 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: West Bend Support In-Reply-To: <01cb01c303b4$66920cb0$13fd2fd8@Admin02> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: ports@freebsd.org cc: Kill the Penguin cc: "Jack L. Stone" cc: rse@engelschall.com cc: dinoex@freebsd.org cc: freebsd-questions@freebsd.org cc: Jim Mock Subject: Re: The chicken and the OpenSSL X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 01:19:42 -0000 On Tue, 15 Apr 2003, West Bend Support wrote: > From: "Kill the Penguin" > > Okey Dokey then. How come libcrypto.so.3 is included when you install into > > /usr/local, but not when you overwrite the base install? > > > It is installed, it just that -DOPENSSL_OVERWRITE_BASE tells the port to > install libcrypto as libcrypto.so.2 instead of libcrypto.so.3. I started to figure this out by looking at the Makefile (see bottom) but a diff of the two says they are different even though they are both from the openssl-0.9.7a_2 distribution. devil# diff /usr/local/lib/libcrypto.so.3 /usr/lib/libcrypto.so.2 Binary files /usr/local/lib/libcrypto.so.3 and /usr/lib/libcrypto.so.2 differ devil# ls -l /usr/local/lib/libcrypto.so.3 /usr/lib/libcrypto.so.2 -r--r--r-- 1 root wheel 1136871 Apr 15 17:13 /usr/lib/libcrypto.so.2 -r--r--r-- 1 root wheel 1136935 Apr 15 17:31 /usr/local/lib/libcrypto.so.3 OK, so if this is just a naming thing, then why does modssl require the shared library be version 3? So why does the SHLIBVER become 3 if installed in /usr/local and remain 2 if overwritebase is defined? Is there a reason modssl wants it's own distribution of openssl? Chris .if defined(NOSHARED) PLIST_SUB+= SHARED="@comment " .else PLIST_SUB+= SHARED="" ALL_TARGET= freebsd-shared all .if exists(/usr/lib/libcrypto.so.3) SHLIBVER= 4 .else SHLIBVER= 3 .endif MAKE_ENV+= SHLIBVER=${SHLIBVER} PLIST_SUB+= SHLIBVER=${SHLIBVER} INSTALLS_SHLIB= yes .endif .if defined(OPENSSL_OVERWRITE_BASE) PKGNAMESUFFIX= -overwrite-base PREFIX= /usr .if exists(/usr/lib/libcrypto.so.3) SHLIBVER= 3 .else SHLIBVER= 2 .endif