Subject: misc/13297: Malformed conditional in share/mk/bsd.sys.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: None <igy@arhc.org>
List: netbsd-bugs
Date: 06/24/2001 08:22:25
>Number:         13297
>Category:       misc
>Synopsis:       Malformed conditional in share/mk/bsd.sys.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 24 08:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Naoto Shimazaki
>Release:        1.5W
>Organization:
PRUG
>Environment:
NetBSD finlaggan.arhc.org 1.5W NetBSD 1.5W (FINLAGGAN) #0: Sun Jun 10 21:24:00 JST 2001     root@finlaggan.arhc.org:/usr/src/sys/arch/i386/compile/FINLAGGAN i386

>Description:
"share/mk/bsd.sys.mk" rev. 1.47 line 38 contains malformed conditional.
here is the line

.if (${MKSOFTFLOAT} != "no")

make says this line malformed.
>How-To-Repeat:
bash-2.04# cd /usr/src/distrib/i386/floppies/ramdisk-big/
bash-2.04# make
make -f ramdiskbin.mk all
make: "/usr/share/mk/bsd.sys.mk" line 38: Malformed conditional ((${MKSOFTFLOAT} != "no"))
make: "/usr/share/mk/bsd.sys.mk" line 38: Missing dependency operator
make: "/usr/share/mk/bsd.sys.mk" line 41: if-less endif
make: "/usr/share/mk/bsd.sys.mk" line 41: Need an operator
make: Fatal errors encountered -- cannot continue

make: stopped in /usr/src/distrib/i386/floppies/ramdisk-big/obj
*** Error code 1

Stop.
make: stopped in /usr/src/distrib/i386/floppies/ramdisk-big
bash-2.04# 

>Fix:
bash-2.04# cvs diff -u
cvs server: Diffing .
Index: bsd.sys.mk
===================================================================
RCS file: /cvsroot/sharesrc/share/mk/bsd.sys.mk,v
retrieving revision 1.47
diff -u -r1.47 bsd.sys.mk
--- bsd.sys.mk  2001/06/18 17:04:45     1.47
+++ bsd.sys.mk  2001/06/24 15:18:23
@@ -35,7 +35,7 @@
 CPPFLAGS+= -D__AUDIT__
 .endif
 
-.if (${MKSOFTFLOAT} != "no")
+.if defined(MKSOFTFLOAT) && (${MKSOFTFLOAT} != "no")
 COPTS+=                -msoft-float
 FOPTS+=                -msoft-float
 .endif
bash-2.04# 

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