Subject: bin/932: passwd #include problem
To: None <gnats-admin@NetBSD.ORG>
From: Gary D. Duzan <gary@wheel.tiac.net>
List: netbsd-bugs
Date: 03/31/1995 08:35:03
>Number:         932
>Category:       bin
>Synopsis:       passwd #include problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 31 08:35:02 1995
>Originator:     Gary D. Duzan
>Organization:
	Northeastern University
>Release:        March 29, 1995
>Environment:
	
System: NetBSD wheel.tiac.net 1.0A NetBSD 1.0A (WHEEL) #2: Sun Mar 26 08:51:19 1995 gary@wheel.tiac.net:/usr/src/sys/arch/i386/compile/WHEEL i386


>Description:
	passwd uses a file from chpass, which in turn includes a
	file from vipw, which it finds using the -I parameter.
	passwd needs to search the vipw directory for the include
	file.

cc -O -I/usr/src/usr.bin/passwd -DYP   -c /usr/src/usr.bin/passwd/../../usr.bin/chpass/pw_copy.c
/usr/src/usr.bin/passwd/../../usr.bin/chpass/pw_copy.c:54: pw_util.h: No such file or directory
*** Error code 1

Stop.

>How-To-Repeat:
	cd src/usr.bin/passwd ; make
>Fix:
	A quick patch:

*** Makefile.orig	Thu Mar 30 21:57:45 1995
--- Makefile	Thu Mar 30 22:10:29 1995
***************
*** 7,13 ****
  	${.CURDIR}/../rlogin ${.CURDIR}/../../lib/libc/gen
  DPADD+= ${LIBRPCSVC} ${LIBCRYPT}
  LDADD+= -lrpcsvc -lcrypt
! CFLAGS+=-I${.CURDIR} -DYP
  
  .if defined(KERBEROS5)
  SRCS+= krb5_passwd.c
--- 7,13 ----
  	${.CURDIR}/../rlogin ${.CURDIR}/../../lib/libc/gen
  DPADD+= ${LIBRPCSVC} ${LIBCRYPT}
  LDADD+= -lrpcsvc -lcrypt
! CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw -DYP
  
  .if defined(KERBEROS5)
  SRCS+= krb5_passwd.c
>Audit-Trail:
>Unformatted: