From sketchy@weirdo.netcraft.com  Fri Sep 15 02:26:31 2000
Return-Path: <sketchy@weirdo.netcraft.com>
Received: from weirdo.netcraft.com (weirdo.netcraft.com [195.188.192.47])
	by hub.freebsd.org (Postfix) with ESMTP id 48C5C37B423
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 15 Sep 2000 02:26:30 -0700 (PDT)
Received: (from sketchy@localhost)
	by weirdo.netcraft.com (8.11.0/8.11.0) id e8F9QRl91816;
	Fri, 15 Sep 2000 10:26:27 +0100 (BST)
	(envelope-from sketchy)
Message-Id: <200009150926.e8F9QRl91816@weirdo.netcraft.com>
Date: Fri, 15 Sep 2000 10:26:27 +0100 (BST)
From: Jonathan Perkin <sketchy@netcraft.com>
Sender: sketchy@weirdo.netcraft.com
Reply-To: sketchy@weirdo.netcraft.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: "make all" for a jail build fails at lib/libpam/modules/pam_ssh
X-Send-Pr-Version: 3.2

>Number:         21287
>Category:       misc
>Synopsis:       "make all" for a jail build fails at lib/libpam/modules/pam_ssh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 15 02:30:01 PDT 2000
>Closed-Date:    Thu May 31 20:02:03 PDT 2001
>Last-Modified:  Thu May 31 20:02:12 PDT 2001
>Originator:     Jonathan Perkin
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Netcraft Ltd.
>Environment:

	RELENG_4

>Description:

	Following jail(8) instructions, the compile fails on the "make all"
	target with the following error:

	cc -fpic -DPIC -O -pipe -Wall -I/usr/src/lib/libpam/modules/pam_ssh/../../../../crypto/openssh -c /usr/src/lib/libpam/modules/pam_ssh/../../../../crypto/openssh/pam_ssh/pam_ssh.c -o pam_ssh.So
	building shared library pam_ssh.so
	/usr/libexec/elf/ld: cannot find -lssh
	*** Error code 1

	Stop in /usr/src/lib/libpam/modules/pam_ssh.
	*** Error code 1

	[snip]

>How-To-Repeat:

	D=/here/is/the/jail
	cd /usr/src
	make hierarchy DESTDIR=$D
	make obj
	make depend
	make all

>Fix:

	To temporarily fix the problem, cd /usr/src/secure/lib/libssh && make,
	then return to /usr/src and restart the "make all".  A proper fix
	would naturally be more desirable :)

>Release-Note:
>Audit-Trail:

From: "Chris D. Faulhaber" <jedgar@fxp.org>
To: sketchy@weirdo.netcraft.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: misc/21287: "make all" for a jail build fails at lib/libpam/modules/pam_ssh
Date: Fri, 15 Sep 2000 09:42:58 -0400 (EDT)

 On Fri, 15 Sep 2000, Jonathan Perkin wrote:
 
 > 	D=/here/is/the/jail
 > 	cd /usr/src
 > 	make hierarchy DESTDIR=$D
 > 	make obj
 > 	make depend
 > 	make all
 > 
 
 My question is why would the build sequence be different for a jail.  For
 my jails, I use a standard build/installworld combination (with proper
 options set, such as NO_MAKEDEV).
 
 Perhaps something like the following patch should be applied:
 
 Index: jail.8
 ===================================================================
 RCS file: /home/ncvs/src/usr.sbin/jail/jail.8,v
 retrieving revision 1.15
 diff -u -r1.15 jail.8
 --- jail.8	2000/07/08 14:12:34	1.15
 +++ jail.8	2000/09/15 13:41:42
 @@ -61,10 +61,8 @@
  D=/here/is/the/jail
  cd /usr/src
  make hierarchy DESTDIR=$D
 -make obj
 -make depend
 -make all
 -make install DESTDIR=$D
 +make buildworld
 +make installworld DESTDIR=$D
  cd etc
  make distribution DESTDIR=$D NO_MAKEDEV=yes
  cd $D/dev
 
 -----
 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
 --------------------------------------------------------
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
 
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Thu May 31 20:02:03 PDT 2001 
State-Changed-Why:  
Man page appears to be fixed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21287 
>Unformatted:
