Subject: lib/19044: netbsd-1-6 branch build broken in libposix
To: None <gnats-bugs@gnats.netbsd.org>
From: None <urban@boquist.net>
List: netbsd-bugs
Date: 11/14/2002 10:02:19
>Number:         19044
>Category:       lib
>Synopsis:       netbsd-1-6 branch build broken in libposix
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 14 01:03:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Urban Boquist
>Release:        NetBSD 1.6_STABLE
>Organization:
Carlstedt Research & Technology AB, Sweden
>Environment:
System: NetBSD lan-gw 1.6_STABLE NetBSD 1.6_STABLE (LAN-GW-$Revision: 1.11 $) #0: Sat Nov  2 13:42:17 CET 2002 root@lan-gw:/usr/src/sys/arch/i386/compile/LAN-GW i386
Architecture: i386
Machine: i386
>Description:
	A recent change to lib/libc/sys/makelintstub requires CPP
	to be set in the environent before using it. libc/sys/Makefile.inc
	was changed to set CPP, but makelintstub is also used from
	libposix/sys/Makefile.inc.
>How-To-Repeat:
	Use build.sh on a netbsd-1-6 tree:

dependall ===> libposix
sh /usr/src/lib/libposix/../libc/sys/makelintstub -o LintSysPseudo.c -p  -s /usr/include/sys/syscall.h chown.S fchown.S lchown.S rename.S
usage: /usr/src/lib/libposix/../libc/sys/makelintstub [-n|-p] [-o filename] object ...
       The CPP environment variable must be set
       to the path to the C preprocessor.
*** Error code 1

Stop.

>Fix:
See lib/libc/sys/Makefile.inc for comparison.

Index: Makefile.inc
===================================================================
RCS file: /anoncvs/basesrc/lib/libposix/sys/Makefile.inc,v
retrieving revision 1.13
diff -u -r1.13 Makefile.inc
--- Makefile.inc	2002/01/29 19:03:01	1.13
+++ Makefile.inc	2002/11/14 08:54:57
@@ -21,5 +21,5 @@
 
 LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
     ${DESTDIR}/usr/include/sys/syscall.h
-	sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
+	CPP=${CPP:Q} sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
 	    -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
>Release-Note:
>Audit-Trail:
>Unformatted: