Subject: pkg/10501: security/openssh doesn't compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <riz@boogers.sf.ca.us>
List: netbsd-bugs
Date: 07/03/2000 23:13:56
>Number:         10501
>Category:       pkg
>Synopsis:       pkg security/openssh doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 03 23:14:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Rizzo
>Release:        -current pkgsrc 20000703
>Organization:
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz
>Environment:
System: NetBSD hubba.boogers.sf.ca.us 1.5A NetBSD 1.5A (HUBBA) #0: Wed Jun 28 10:20:46 PDT 2000 riz@hubba.boogers.sf.ca.us:/usr/work/netbsd/src/sys/arch/i386/compile/HUBBA i386


>Description:
	${PREFIX}/include is not searched in the default compile,
	which is needed for openssl/rsa.h
>How-To-Repeat:
	Try to compile the package security/openssh
>Fix:
	Replace patch-aa with the following file, and do a 
	'make makepatchsum':

*********

$NetBSD$

--- configure.in.orig	Fri Jun 30 23:52:55 2000
+++ configure.in	Mon Jul  3 23:52:07 2000
@@ -103,6 +103,7 @@
 	;;
 *-*-netbsd*)
 	need_dash_r=1
+	CFLAGS="$CFLAGS -I${PREFIX}/include"
 	;;
 *-next-*)
 	# hardwire lastlog location (can't detect it on some versions)
@@ -645,6 +646,10 @@
 
 # Checks for structure members
 
+OSSH_CHECK_HEADER_FOR_FIELD(ut_name, utmp.h, HAVE_NAME_IN_UTMP)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_name, utmpx.h, HAVE_NAME_IN_UTMPX)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmp.h, HAVE_USER_IN_UTMP)
+OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmpx.h, HAVE_USER_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
>Release-Note:
>Audit-Trail:
>Unformatted: