Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Installation compiling error in builtin.c, builtin.epro



On Sun, 15 Aug 2010 21:55:40 +0530
Kanny <kanny96@xxxxxxx> wrote:
> I am trying to install Zsh 4.3.10 on Mac OS X 10.5.8 PPC and getting  
> the following error when running "make":
> 
> ========
> gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wmissing-prototypes -O2  -o  
> builtin.o builtin.c
> In file included from zsh.mdh:34,
>                   from builtin.c:33:
> builtin.epro:57:1: error: unterminated argument list invoking macro "_"

The problem is occuring when using the macro:

#ifdef PROTOTYPES
# define _(Args) Args
#else
# define _(Args) ()
#endif

(defined in system.h) which should convert things like

extern int bin_umask _((char*nam,char**args,Options ops,UNUSED(int func)));

into

extern int bin_umask (char*nam,char**args,Options ops,UNUSED(int func));

However, the error doesn't give much clue as to why it's going wrong
here.  Are there obvious errors within builtin.epro (that might be
caused by awk or sed going haywire)?  You can mail it as an attachment
if it's not obvious.  If it is wrong builtin.syms might be the
interesting one.  Also check what "AWK = " is set to in the generated
Makemod in the same (Src) directory.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author