From martti@research.zopps.fi Mon Mar  8 00:50:46 1999
Return-Path: <martti@research.zopps.fi>
Received: from server.research.zopps.fi (ws66.research.zopps.fi [195.165.196.66])
	by hub.freebsd.org (Postfix) with ESMTP id 640B514BE9
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Mar 1999 00:50:44 -0800 (PST)
	(envelope-from martti@research.zopps.fi)
Received: from ws70.research.zopps.fi (ws70.research.zopps.fi [195.165.196.70])
	by server.research.zopps.fi (8.9.2/8.8.8) with ESMTP id KAA81695
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 8 Mar 1999 10:48:58 +0200 (EET)
	(envelope-from martti.kuparinen)
Received: (from martti@localhost)
	by ws70.research.zopps.fi (8.9.2/8.8.8) id KAA45454;
	Mon, 8 Mar 1999 10:48:27 +0200 (EET)
	(envelope-from martti@smtp.research.zopps.fi)
Message-Id: <199903080848.KAA45454@ws70.research.zopps.fi>
Date: Mon, 8 Mar 1999 10:48:27 +0200 (EET)
From: martti.kuparinen@ericsson.com
Sender: martti@research.zopps.fi
Reply-To: martti.kuparinen@ericsson.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: SOLUTION for ports/security/stunnel problems
X-Send-Pr-Version: 3.2

>Number:         10484
>Category:       ports
>Synopsis:       stunnel won't compile when "USA_RESIDENT=NO"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  8 01:00:00 PST 1999
>Closed-Date:    Sun Mar 14 19:25:06 PST 1999
>Last-Modified:  Sun Mar 14 19:25:25 PST 1999
>Originator:     Martti Kuparinen
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Oy L M Ericsson Ab
>Environment:

FreeBSD ws70 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Tue Mar  2 10:19:29 EET 1999     root@ws70:/usr/src/sys/compile/WS70  i386

>Description:

ports/security/stunnel won't compile on machines with "USA_RESIDENT=NO" as
security/rsaref may not be installed (because the world != USA :-).
The following patch makes sure rsaref is installed even if it was not
installed by the SSLeay-0.9.0b port.

>How-To-Repeat:

# setenv USA_RESIDENT NO
# cd /usr/ports/security/stunnel
# make install
[...]
===>  Installing for SSLeay-0.9.0b
[...]
===>  Building for stunnel-2.1
cc -c -O -pipe -Wall -I/usr/local/include stunnel.c
cc  -s -o stunnel stunnel.o -L/usr/local/lib -lssl -lcrypto -lRSAglue -lrsaref
/usr/libexec/elf/ld: cannot open -lrsaref: No such file or directory
*** Error code 1

>Fix:
	
Apply the following patch:

*** security/stunnel/Makefile.orig	Thu Feb  4 07:32:35 1999
--- security/stunnel/Makefile	Mon Mar  8 10:39:36 EET 1999
***************
*** 15,21 ****
  
  MAINTAINER=	martti.kuparinen@ericsson.com
  
! BUILD_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay \
  		${PREFIX}/lib/libssl.a:${PORTSDIR}/security/SSLeay \
  		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/SSLeay
  RUN_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay
--- 15,22 ----
  
  MAINTAINER=	martti.kuparinen@ericsson.com
  
! BUILD_DEPENDS=	${PREFIX}/lib/librsaref.a:${PORTSDIR}/security/rsaref \
! 		ssleay:${PORTSDIR}/security/SSLeay \
  		${PREFIX}/lib/libssl.a:${PORTSDIR}/security/SSLeay \
  		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/SSLeay
  RUN_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay

>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Martti Kuparinen <martti.kuparinen@ericsson.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/10484: stunnel won't compile when "USA_RESIDENT=NO"
Date: Thu, 11 Mar 1999 10:24:31 +0200

 Hi Martti,
 
 Thanks for the report. However, I'm not sure why you want to use SSLeay
 instead of its successor, OpenSSL (ports/security/openssl).
 
 Could you test a variation of your proposed fix using OpenSSL and get
 back to us?
 
 Thanks,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Mar 14 19:25:06 PST 1999 
State-Changed-Why:  
Superceded by ports/10541. 
>Unformatted:
