Subject: lib/10317: -current build failure with crypto-intl
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@MCS.VUW.AC.NZ>
List: netbsd-bugs
Date: 06/07/2000 19:54:15
>Number:         10317
>Category:       lib
>Synopsis:       -current build failure with crypto-intl
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 07 19:55:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        8/6/2000
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
System: NetBSD city-art.mcs.vuw.ac.nz 1.4X NetBSD 1.4X (MCS_WORKSTATION) #0: Sun Apr 9 10:29:55 NZST 2000 mark@turakirae.mcs.vuw.ac.nz:/src/build/src/sys/arch/i386/compile/MCS_WORKSTATION i386


>Description:
	The libkafm Makefile in cryptosrc-intl references installed header
	files which causes the make to fail (as below) when building to a
	different DESTDIR on a system that doesn't currently have crypto
	built in:

dependall ===> ../crypto-intl/lib/libkafs
mkdep -a  -I.                                    -I/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs           -I/usr/include/krb5
         -I/usr/include/openssl                  -I/src/crypto/src/crypto-intl/lib/libkafs/../../include                 -I/src/crypto/src/crypto-intl/lib/libkafs/../libroken           -I/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/roken          -DHAVE_CONFIG_H -nostdinc -idirafter /mnt/SAVE/crypto.base/usr/include /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afssys.c /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afskrb.c /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afskrb5.c /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/common.c
In file included from /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afssys.c:34:
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:92: krb5.h: No such file or directory
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:95: krb.h: No such file or directory
In file included from /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afskrb.c:34:
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:92: krb5.h: No such file or directory
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:95: krb.h: No such file or directory
In file included from /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/afskrb5.c:34:
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:92: krb5.h: No such file or directory
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:95: krb.h: No such file or directory
In file included from /src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/common.c:34:
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:92: krb5.h: No such file or directory
/src/crypto/src/crypto-intl/lib/libkafs/../../dist/heimdal/lib/kafs/kafs_locl.h:95: krb.h: No such file or directory
mkdep: compile failed.
*** Error code 1

>How-To-Repeat:
	do a "make DESTDIR=/foo release" with crypto-intl in the source tree
	on a system that doesn't have a populated /usr/include/krb5.

>Fix:

Index: Makefile
===================================================================
RCS file: /src/cvs/netbsd//cryptosrc-intl/crypto-intl/lib/libkafs/Makefile,v
retrieving revision 1.1
diff -r1.1 Makefile
19,20c19,20
< 	-I/usr/include/krb5			\
< 	-I/usr/include/openssl			\
---
> 	-I${DESTDIR}/usr/include/krb5		\
> 	-I${DESTDIR}/usr/include/openssl	\


cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: