* Installation compiling error in builtin.c, builtin.epro @ 2010-08-15 16:25 Kanny 2010-08-15 18:16 ` Peter Stephenson 0 siblings, 1 reply; 4+ messages in thread From: Kanny @ 2010-08-15 16:25 UTC (permalink / raw) To: zsh-users Hi 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 "_" In file included from zsh.mdh:34, from builtin.c:33: builtin.epro:11: error: syntax error before ‘_’ In file included from zsh.mdh:35, from builtin.c:33: compat.epro:5: error: syntax error before ‘extern’ In file included from zsh.mdh:61, from builtin.c:33: utils.epro:22: error: stray ‘@’ in program utils.epro:22: error: syntax error before ‘{’ token builtin.c:45: error: ‘bin_test’ undeclared here (not in a function) . . make[2]: *** [builtin.o] Error 1 make[1]: *** [modobjs] Error 2 make: *** [all] Error 1 ========= The zsh configuration is automatically set to: zsh configuration ----------------- zsh version : 4.3.10 host operating system : powerpc-apple-darwin9.8.0 source code location : . compiler : gcc preprocessor flags : executable compiler flags : -Wall -Wmissing-prototypes -O2 module compiler flags : -Wall -Wmissing-prototypes -O2 -fno-common executable linker flags : -Wl,-x -rdynamic module linker flags : -Wl,-x -bundle -flat_namespace -undefined suppress library flags : -lgdbm -liconv -ldl -ltermcap -lm -lc installation basename : zsh binary install path : //bin man page install path : ${prefix}/share/man info install path : ${prefix}/share/info functions install path : ${prefix}/share/zsh/4.3.10/functions --------------- It appears there is some syntax error in builtin.epro leading to unrecognized bin_*** functions. The same error occurs when trying to compile zsh 4.3.9. Currently I have zsh 4.3.4 running well on my Mac with of course those completion bugs. Any help on how to fix this error would be appreciated. Thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Installation compiling error in builtin.c, builtin.epro 2010-08-15 16:25 Installation compiling error in builtin.c, builtin.epro Kanny @ 2010-08-15 18:16 ` Peter Stephenson 2010-08-15 19:18 ` Kanny 0 siblings, 1 reply; 4+ messages in thread From: Peter Stephenson @ 2010-08-15 18:16 UTC (permalink / raw) To: zsh-users 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Installation compiling error in builtin.c, builtin.epro 2010-08-15 18:16 ` Peter Stephenson @ 2010-08-15 19:18 ` Kanny 2010-08-17 21:01 ` Kanny 0 siblings, 1 reply; 4+ messages in thread From: Kanny @ 2010-08-15 19:18 UTC (permalink / raw) To: Peter Stephenson; +Cc: zsh-users 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Installation compiling error in builtin.c, builtin.epro 2010-08-15 19:18 ` Kanny @ 2010-08-17 21:01 ` Kanny 0 siblings, 0 replies; 4+ messages in thread From: Kanny @ 2010-08-17 21:01 UTC (permalink / raw) To: zsh-users; +Cc: Peter Stephenson The problem was probably not with gcc version. I installed mac port and then gave the command "sudo port install zsh-devel" to install zsh 3.4.10 without any problem. It installed a few dependencies first that I guess were missing. On Aug 16, 2010, at 12:48 AM, Kanny wrote: > 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 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/ > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-17 21:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-08-15 16:25 Installation compiling error in builtin.c, builtin.epro Kanny 2010-08-15 18:16 ` Peter Stephenson 2010-08-15 19:18 ` Kanny 2010-08-17 21:01 ` Kanny
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).