From pst@jnx.com  Wed Mar  5 17:02:15 1997
Received: from red.jnx.com (red.jnx.com [208.197.169.254])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27314
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Mar 1997 17:02:14 -0800 (PST)
Received: from visitor.jnx.com (visitor.jnx.com [208.197.169.146]) by red.jnx.com (8.8.5/8.8.3) with ESMTP id RAA14285 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Mar 1997 17:01:43 -0800 (PST)
Received: (from pst@localhost) by visitor.jnx.com (8.8.5/8.7.3) id RAA11327; Wed, 5 Mar 1997 17:01:43 -0800 (PST)
Message-Id: <199703060101.RAA11327@visitor.jnx.com>
Date: Wed, 5 Mar 1997 17:01:43 -0800 (PST)
From: Paul Traina <pst@jnx.com>
Reply-To: pst@jnx.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: make release fails
X-Send-Pr-Version: 3.2

>Number:         2889
>Category:       bin
>Synopsis:       make release fails to build due to libscrypt not being built
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar  5 17:10:01 PST 1997
>Closed-Date:    Thu Mar 6 20:50:09 MET 1997
>Last-Modified:  Thu Mar  6 12:00:02 PST 1997
>Originator:     Paul Traina
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
Juniper Networks, Inc.
>Environment:

Building a 2.2 release.

>Description:

...
touch release.4
# Handle some grief caused by the munition braindeadness.
for i in sbin/init bin/ed ; do  ( cd /usr/src/release/../$i;  make -DNOCRYPT clean all distribute DISTDIR=/R/stage/trees ) ;  done
rm -f a.out Errs errs mklog init init.o init.8.gz
cc -O2 -pipe -DDEBUGSHELL -DSECURE   -c /usr/src/sbin/init/init.c
cc -O2 -pipe -DDEBUGSHELL -DSECURE    -static -o init init.o  -lutil -L/usr/src/sbin/init/../../lib/libcrypt -lscrypt
ld: -lscrypt: no match
*** Error code 1

First, /sbin/init's makefile is trying to find the library in the
source directory.  It should be looking in the obj directory.

Secondly, the obj directory doesn't exist (which may be causing the
first problem, but I doubt it).  It seems we never make libcrypt if
the secure distribution is present.

>How-To-Repeat:

make release

>Fix:
	
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@freebsd.org, pst@jnx.com
Cc:  Subject: Re: bin/2889: make release fails
Date: Thu, 6 Mar 1997 15:17:12 +1100

 >First, /sbin/init's makefile is trying to find the library in the
 >source directory.  It should be looking in the obj directory.
 >
 >Secondly, the obj directory doesn't exist (which may be causing the
 >first problem, but I doubt it).  It seems we never make libcrypt if
 >the secure distribution is present.
 
 Fixed in -current, at least  if there is no secure distribution.  I
 still think it is wrong to fetch the library from an obj directory.
 When the paths are wrong it fetches it from /usr/lib anyway, and
 it's hard to to whether you got the one you wanted (`make checkdpadd'
 tells you indirectly if you got the paths wrong).
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Thu Mar 6 20:50:09 MET 1997 
State-Changed-Why:  
I've already fixed <subjext>.  The obj dir stuff might need fixing, but 
it's for sure is minor enough to not happen before 2.2. 


From: j@uriah.heep.sax.de (J Wunsch)
To: pst@jnx.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/2889: make release fails
Date: Thu, 6 Mar 1997 20:24:49 +0100

 As Paul Traina wrote:
 
 > First, /sbin/init's makefile is trying to find the library in the
 > source directory.  It should be looking in the obj directory.
 
 Already fixed.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
>Unformatted:
