From: Kanny <kanny96@aol.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-users@zsh.org
Subject: Re: Installation compiling error in builtin.c, builtin.epro
Date: Mon, 16 Aug 2010 00:48:19 +0530 [thread overview]
Message-ID: <25463FD3-8BF0-48BB-924C-7640F8BCA4B6@aol.com> (raw)
In-Reply-To: <20100815191656.795168fa@pws-pc>
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@aol.com> 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@ntlworld.com>
> Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2010-08-15 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-15 16:25 Kanny
2010-08-15 18:16 ` Peter Stephenson
2010-08-15 19:18 ` Kanny [this message]
2010-08-17 21:01 ` Kanny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25463FD3-8BF0-48BB-924C-7640F8BCA4B6@aol.com \
--to=kanny96@aol.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).