Subject: bin/10624: make build dies at usr.bin/rcp.bootparamd/bootparam_prot_svc.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gr@eclipsed.net>
List: netbsd-bugs
Date: 07/17/2000 22:53:13
>Number:         10624
>Category:       bin
>Synopsis:       make build dies at usr.bin/rcp.bootparamd/bootparam_prot_svc.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 17 22:54:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     gabriel rosenkoetter
>Release:        20000718 (-release, not -current)
>Organization:
	Just me.
>Environment:
	

NetBSD cygnus 1.4ZA NetBSD 1.4ZA (GENERIC) #6: Wed Jun  7 17:58:48 PDT 2000 matt@yosemite.local:/other/anoncvs/kobj/macppc/GENERIC macppc

>Description:
My make build (DESTDIR=/build) on a macppc machine dies with:

depend ===> usr.sbin/rpc.bootparamd
rm -f bootparam_prot.x
ln -s /build/usr/include/rpcsvc/bootparam_prot.x .
rm -f bootparam_prot.h
ln -s /build/usr/include/rpcsvc/bootparam_prot.h .
rpcgen -C -L -m -o bootparam_prot_svc.c bootparam_prot.x
mkdep -a  -DYP -nostdinc -idirafter /build/usr/include bootparamd.c bootparam_prot_svc.c
bootparam_prot_svc.c:21: netconfig.h: No such file or directory
mkdep: compile failed.
*** Error code 1

Stop.
[etcetera]

bootparam_prot_svc.c is a generated file. usr.sbin/rpc.bootparamd/Makefile
says:

bootparam_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
	rm -f bootparam_prot.x
	ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x .
	rm -f bootparam_prot.h
	ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h .
	rpcgen -C -L -m -o ${.TARGET} bootparam_prot.x

The -current version is:

bootparam_prot.x: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
	rm -f ${.TARGET}
	ln -s ${.ALLSRC} ${.TARGET}

bootparam_prot.h: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h
	rm -f ${.TARGET}
	ln -s ${.ALLSRC} ${.TARGET}

bootparam_prot_svc.c: bootparam_prot.x bootparam_prot.h
	rpcgen -C -L -m -o ${.TARGET} bootparam_prot.x

Replacing the -release version with the -current version allows a make
depend in this directory to complete with no trouble (not sure about
the make build, it'll take a little while to get back to here, but I
don't anticipate trouble).

This wouldn't be that huge a deal if the problem weren't in -release...

As a side question, then, is *why* this fixes matters. What's being
done differently?

>How-To-Repeat:

Go grab ftp.netbsd.org/pub/NetBSD/NetBSD-release/tar-files/src/*.tar.gz,
untar, and try it for yourself (be prepared to wait).

>Fix:

Swap the contents of the -current Makefile in (detailed above).
>Release-Note:
>Audit-Trail:
>Unformatted: