Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Installation compiling error in builtin.c, builtin.epro
Peter, thanks for the reply.
The file builtin.epro looks fine:
===========
/* Generated automatically */
#ifndef have_Src_builtin_globals
#define have_Src_builtin_globals
extern mod_import_variable HashTable builtintab;
extern void createbuiltintable _((void));
extern int execbuiltin _((LinkList args,Builtin bn));
extern int bin_enable _((char*name,char**argv,Options ops,int func));
extern int bin_set _((char*nam,char**args,UNUSED(Options
ops),UNUSED(int func)));
extern int doprintdir;
extern int bin_pwd _((UNUSED(char*name@>,UNUSED(char**argv),Options
ops,UNUSED(int func)));
extern mod_import_variable LinkList dirstack;
extern int bin_dirs _((UNUSED(char*name),char**argv,Options
ops,UNUSED(int func)));
extern void set_pwd_env _((void));
.
.
extern int bin_umask _((char*nam,char**args,Options ops,UNUSED(int
func)));
extern mod_import_function int bin_notavail
_((char*nam,UNUSED(char**argv),UNUSED(Options ops),UNUSED(int func))
);
#endif /* !have_Src_builtin_globals */
==========
I tried to google 'unterminated argument list invoking macro "_" ' and
many forums suggest it due to compiler outdated. So I checked gcc --
version and it was 4.0.1. I also happened to have 4.2.1 so I reset the
symlinks and made it active. Then performed "make distclean";
configure; make, and got similar but not the same error:
========
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 "_"
In file included from zsh.mdh:34,
from builtin.c:33:
builtin.epro:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_’
In file included from zsh.mdh:61,
from builtin.c:33:
utils.epro:22: error: stray ‘@’ in program
utils.epro:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘{’ token
make[2]: *** [builtin.o] Error 1
make[1]: *** [modobjs] Error 2
make: *** [all] Error 1
=========
All this while I had already initiated svn co svn://gcc.gnu.org/svn/
gcc/tags/gcc_4_5_1_release gcc-4.5.1 to get the latest gcc. It just
finished, but man that's a whole 1.1GB for gcc??? I am seriously
deterred to compile that beast to get zsh updated while everything
else seems to be fine! If this error is fixable by any other means I
would like to try that first.
Thanks
On Aug 15, 2010, at 11:46 PM, Peter Stephenson wrote:
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