From hsu@clinet.fi  Thu Jul 18 13:02:43 1996
Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA13094
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Jul 1996 13:02:25 -0700 (PDT)
Received: from cantina.clinet.fi (root@cantina.clinet.fi [194.100.0.15]) by hauki.clinet.fi (8.7.5/8.6.4) with ESMTP id XAA17281 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Jul 1996 23:01:59 +0300 (EET DST)
Received: (hsu@localhost) by cantina.clinet.fi (8.7.5/8.6.4) id XAA12685; Thu, 18 Jul 1996 23:01:58 +0300 (EET DST)
Message-Id: <199607182001.XAA12685@cantina.clinet.fi>
Date: Thu, 18 Jul 1996 23:01:58 +0300 (EET DST)
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: .OBJDIR modifications to tree broke make reinstall?
X-Send-Pr-Version: 3.2

>Number:         1398
>Category:       bin
>Synopsis:       .OBJDIR modifications to tree broke make reinstall?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 18 13:10:02 PDT 1996
>Closed-Date:    Sun Oct 27 16:48:45 PST 1996
>Last-Modified:  Sun Oct 27 16:50:06 PST 1996
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Clinet, Espoo, Finland
>Environment:

	-current, this problem is in both my last sups, within two weeks.

>Description:

make reinstall no more works.  It seems that make tries to install the
files from wrong place, and cannot find them correctly.

symlinks ufs
rm -rf /usr/include/machine
ln -s /sys/i386/include /usr/include/machine
installing a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h err.h f2c.h fnmatch.h fstab.h fts.h glob.h grp.h strhash.h histedit.h kvm.h limits.h link.h locale.h malloc.h memory.h mpool.h ndbm.h netdb.h nl_types.h nlist.h paths.h pthread.h pwd.h ranlib.h regex.h regexp.h resolv.h rune.h runetype.h setjmp.h sgtty.h signal.h stab.h stddef.h stdio.h stdlib.h string.h strings.h struct.h sysexits.h tar.h time.h timers.h ttyent.h unistd.h utime.h utmp.h vis.h
creating osreldate.h from newvers.sh
. /m/katiska/usr/current/src/include/../sys/conf/newvers.sh ;                   echo \#'define __FreeBSD_version' $RELDATE >> /usr/include/osreldate.h.new
installing arpa protocols rpc
installing errno.h fcntl.h syslog.h termios.h
installing float.h floatingpoint.h stdarg.h varargs.h
===> include/rpcsvc
Installing RPC service header and definition files
===> lib
===> lib/csu/i386
cmp -s /m/katiska/usr/current/src/lib/csu/i386/dlfcn.h /usr/include/dlfcn.h ||  install -c -o bin -g bin -m 444  /m/katiska/usr/current/src/lib/csu/i386/dlfcn.h /usr/include
cmp -s sgcrt0.o /usr/lib/sgcrt0.o ||  install -c -o bin -g bin -m 444  sgcrt0.o /usr/lib
install: sgcrt0.o: No such file or directory
*** Error code 71

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Assuming this has something to do with OBJDIR modifications a while
back I tried adding them, but getting past 3-4 similar problems I gave
up, it seems that there are lots of broken places like this (and
OBJDIR points to source directories sometimes, so this would not
help).  What could be causing this?

>How-To-Repeat:

On machine A

make world

On machine B

mount A:/usr /mnt
cd /usr
mv obj obj-orig
mv src src-orig
ln -s /mnt/obj obj
ln -s /mnt/src src
cd /usr/src
make reinstall

>Fix:
	

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.org, hsu@clinet.fi
Cc:  Subject: Re: bin/1398: .OBJDIR modifications to tree broke make reinstall?
Date: Fri, 19 Jul 1996 12:40:27 +1000

 >Assuming this has something to do with OBJDIR modifications a while
 >back I tried adding them, but getting past 3-4 similar problems I gave
 >up, it seems that there are lots of broken places like this (and
 >OBJDIR points to source directories sometimes, so this would not
 >help).  What could be causing this?
 
 Canonicalization of directory names.
 
 >>How-To-Repeat:
 
 >On machine A
 
 >make world
 
 >On machine B
 
 >mount A:/usr /mnt
 >cd /usr
 >mv obj obj-orig
 >mv src src-orig
 >ln -s /mnt/obj obj
 >ln -s /mnt/src src
 >cd /usr/src
 >make reinstall
 
 The sources are in /usr/src-orig, so the objects should be in
 /usr/obj/usr/src-orig, but you built them in /usr/obj/usr/src.
 
 >>Fix:
 
 Maybe another symlink or three:
 
 /mnt/obj/usr/src -> /mnt/obj/usr/src-orig
 ...?
 
 Bruce
Responsible-Changed-From-To: freebsd-bugs->steve 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Sep 25 17:05:25 PDT 1996 
Responsible-Changed-Why:  
This PR is for Steve, Bruce owns enough PRs. 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Oct 27 16:48:45 PST 1996 
State-Changed-Why:  
The author, Heikki Suonsivu <hsu@clinet.fi>, confirmed 
that this has been fixed. 
>Unformatted:
