Subject: Re: Removal of "wmmail" package
To: None <tech-pkg@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: tech-pkg
Date: 09/13/2005 22:56:20
On Tue, Sep 13, 2005 at 04:26:37PM -0500, David Stipp wrote:
> > > -I/usr/pkg/include -I/usr/pkg/include  -I/usr/pkg/include -c `test -f
> > > 'wmbiff.c' || echo './'`wmbiff.c
> > > "./Client.h", line 140: syntax error in macro parameters
> > > "./Client.h", line 150: syntax error in macro parameters
> > > "wmbiff.c", line 97: syntax error before or at: void
> > > "wmbiff.c", line 1188: cannot recover from previous errors
> > > cc: acomp failed for wmbiff.c
> > > gmake[2]: *** [wmbiff.o] Error 2
> > > gmake[2]: Leaving directory
> > > `/usr/pkgsrc/mail/wmbiff/work/wmbiff-0.4.25/wmbiff'
> > > gmake[1]: *** [all-recursive] Error 1
> > > gmake[1]: Leaving directory `/usr/pkgsrc/mail/wmbiff/work/wmbiff-0.4.25'
> > > gmake: *** [all] Error 2
> > > *** Error code 2
> > 
> > What compiler is "cc"? SUNWSpro?
> 
> Yes. In this case:
> cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-14 2004/02/20

Looks like non-portable GCC code:

#define DM(mbox, msglevel, X...) \
do { \
  if (mbox == NULL || (mbox)->debug >= msglevel) { \
     printf("wmbiff/%s ", (mbox != NULL) ? (mbox)->label : "NULL"); \
     printf(X); \
     (void)fflush(NULL); \
  } \
} while(0)

Or is "X..." a C99 feature?

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/