Bug 21287

Summary: "make all" for a jail build fails at lib/libpam/modules/pam_ssh
Product: Base System Reporter: sketchy <sketchy>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description sketchy 2000-09-15 10:30:01 UTC
	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]

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 :)
How-To-Repeat: 
	D=/here/is/the/jail
	cd /usr/src
	make hierarchy DESTDIR=$D
	make obj
	make depend
	make all
Comment 1 jedgar 2000-09-15 14:42:58 UTC
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
Comment 2 dd freebsd_committer freebsd_triage 2001-06-01 04:02:03 UTC
State Changed
From-To: open->closed

Man page appears to be fixed.