[2763] in Kerberos-V5-bugs
krb5-build/450: can't build using separate build directories
daemon@ATHENA.MIT.EDU (matt@lindy.mit.edu)
Fri Jul 25 22:41:46 1997
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, matt@lindy.mit.edu
Date: Fri, 25 Jul 1997 22:23:29 -0400
From: matt@lindy.mit.edu
Reply-To: matt@lindy.mit.edu
To: krb5-bugs@MIT.EDU
>Number: 450
>Category: krb5-build
>Synopsis: can't build using separate build directories
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: tlyu
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Jul 25 22:37:01 EDT 1997
>Last-Modified:
>Originator: Matt Borthwick
>Organization:
Department of Physics
MIT
>Release: 1.0pl1
>Environment:
System: Solaris 2.5
Machine: Sun Ultra1
System: SunOS 4.1.3
Machine: Sun SPARCstation 330
System: Linux 1.2.3
Architecture: i486
>Description:
Makefiles involving suffix targets do not work properly.
The following error is produced with multiple build directories:
cat ../../../src/util/profile/profile.hin prof_err.h > profile.h
cat: cannot open prof_err.h
*** Error code 2
make: Warning: Command failed for target `profile.h' (on host lindy)
Current working directory /home2/matt/krb/krb5-1.0pl1/solaris2.5/util/profile
If this is fixed by creating prof_err.h by hand (i.e. running
awk with the explicit filenames), then 'make' fails to create any of the
.o files for the util/profile directory. Presumably if the .o files are
all compiled by hand, other errors will show up in other directories.
>How-To-Repeat:
Follow the instructions in section 3.3.2 of the Installation Guide.
>Fix:
Changes of the following sorts should be made to the appropriate
Makefiles:
(1) remove '.SUFFIXES:' lines
(2) targets like .et.h: should be rewritten as %.h:
$< should be rewritten as $*.et
(3) targets like .c.o: should be rewritten as %.o:
>Audit-Trail:
>Unformatted: