Subject: Re: Malformed conditional (!empty(MANINSTALL:Mcatinstall))
To: Simon J. Gerraty <sjg@crufty.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 08/21/2003 11:14:56
On Thu, 21 Aug 2003, Simon J. Gerraty wrote:

> >(It works fine with make from NetBSD 1.6.1_STABLE under NetBSD.)
>
> Sure?  I just tried:
>
> /NetBSD/tools/1.6.X/NetBSD-1.6.1_STABLE-i386/bin/nbmake

I mean /usr/bin/make as installed with NetBSD 1.6.1_STABLE. It is:

/usr/bin/make:
     $NetBSD: crt0.c,v 1.12 2001/12/30 23:23:38 thorpej Exp $
     $NetBSD: arch.c,v 1.34 2001/11/30 01:29:48 thorpej Exp $
     $NetBSD: buf.c,v 1.12 1999/09/15 04:16:31 mycroft Exp $
     $NetBSD: compat.c,v 1.43 2002/04/27 15:14:30 bjh21 Exp $
     $NetBSD: cond.c,v 1.12 2001/01/14 20:44:26 christos Exp $
     $NetBSD: dir.c,v 1.33 2002/02/03 20:08:30 pk Exp $
     $NetBSD: for.c,v 1.12 2002/03/12 20:15:15 christos Exp $
     $NetBSD: hash.c,v 1.9 2000/06/11 07:54:32 mycroft Exp $
     $NetBSD: job.c,v 1.71 2002/04/15 12:45:33 christos Exp $
     $NetBSD: main.c,v 1.84 2002/04/27 15:14:30 bjh21 Exp $
     $NetBSD: make.c,v 1.49 2002/03/21 11:42:21 pk Exp $
     $NetBSD: parse.c,v 1.83 2002/03/20 18:10:31 pk Exp $
     $NetBSD: str.c,v 1.17 1998/11/06 23:31:09 christos Exp $
     $NetBSD: suff.c,v 1.38 2002/02/04 17:24:57 christos Exp $
     $NetBSD: targ.c,v 1.27 2002/03/20 18:10:31 pk Exp $
     $NetBSD: trace.c,v 1.4 2002/01/27 01:50:55 reinoud Exp $
     $NetBSD: var.c,v 1.69 2002/03/21 01:24:44 christos Exp $
     $NetBSD: util.c,v 1.31 2002/03/12 20:15:15 christos Exp $
     $NetBSD: lstAppend.c,v 1.7 1997/09/28 03:31:16 lukem Exp $
     $NetBSD: lstAtEnd.c,v 1.7 1997/09/28 03:31:16 lukem Exp $
     $NetBSD: lstAtFront.c,v 1.7 1997/09/28 03:31:17 lukem Exp $
     $NetBSD: lstClose.c,v 1.7 1997/09/28 03:31:18 lukem Exp $
     $NetBSD: lstConcat.c,v 1.9 2000/03/13 23:22:52 soren Exp $
     $NetBSD: lstDatum.c,v 1.7 1997/09/28 03:31:19 lukem Exp $
     $NetBSD: lstDeQueue.c,v 1.7 1997/09/28 03:31:20 lukem Exp $
     $NetBSD: lstDestroy.c,v 1.8 1997/09/28 03:31:21 lukem Exp $
     $NetBSD: lstDupl.c,v 1.8 1997/09/28 03:31:21 lukem Exp $
     $NetBSD: lstEnQueue.c,v 1.7 1997/09/28 03:31:22 lukem Exp $
     $NetBSD: lstFind.c,v 1.8 1997/09/28 03:31:23 lukem Exp $
     $NetBSD: lstFindFrom.c,v 1.8 1997/09/28 03:31:24 lukem Exp $
     $NetBSD: lstFirst.c,v 1.7 1997/09/28 03:31:24 lukem Exp $
     $NetBSD: lstForEach.c,v 1.8 1997/09/28 03:31:25 lukem Exp $
     $NetBSD: lstForEachFrom.c,v 1.8 2002/02/17 23:49:01 pk Exp $
     $NetBSD: lstInit.c,v 1.7 1997/09/28 03:31:27 lukem Exp $
     $NetBSD: lstInsert.c,v 1.7 1997/09/28 03:31:28 lukem Exp $
     $NetBSD: lstIsAtEnd.c,v 1.7 1997/09/28 03:31:29 lukem Exp $
     $NetBSD: lstIsEmpty.c,v 1.7 1997/09/28 03:31:30 lukem Exp $
     $NetBSD: lstLast.c,v 1.7 1997/09/28 03:31:30 lukem Exp $
     $NetBSD: lstMember.c,v 1.7 1997/09/28 03:31:31 lukem Exp $
     $NetBSD: lstNext.c,v 1.7 1997/09/28 03:31:32 lukem Exp $
     $NetBSD: lstOpen.c,v 1.7 1997/09/28 03:31:32 lukem Exp $
     $NetBSD: lstRemove.c,v 1.7 1997/09/28 03:31:33 lukem Exp $
     $NetBSD: lstReplace.c,v 1.7 1997/09/28 03:31:34 lukem Exp $
     $NetBSD: lstSucc.c,v 1.7 1997/09/28 03:31:35 lukem Exp $

The revision numbers are the same for my /usr/src/tools/bin/nbmake too.

> build from sources as of Aug 9, and got the same result:
>
> nbmake: "/homes/sjg/make-tests/empty" line 2: Malformed conditional (!empty(MANINSTALL:Mcatinstall))
> nbmake: "/homes/sjg/make-tests/empty" line 4: if-less endif
> nbmake: "/homes/sjg/make-tests/empty" line 4: Need an operator
> nbmake: Fatal errors encountered -- cannot continue
>
> Note that if MANINSTALL is defined, its ok (same with -current make etc).
> That said, empty() shouldn't vomit if a variable is undefined - it should
> count as "empty".



   Jeremy C. Reed
   http://www.reedmedia.net/