From: "Gerardo Santana Gómez Garrido" Date: 2005-11-21T01:32:34+09:00 Subject: Re: Building Ruby 1.8.2 on HP-UX 10.20 Thanks Kero 2005/11/20, Kero : > > I get the following error: > > > > -----------8<------------- > > cc -Ae -g -DYYMAXDEPTH=300 -I. -I. -c ./missing/vsnprintf.c > > cpp: "stdio.h", line 316: warning 2001: Redefinition of macro clearerr. > > cpp: "stdio.h", line 317: warning 2001: Redefinition of macro feof. > > cpp: "stdio.h", line 318: warning 2001: Redefinition of macro ferror. > > cc: "/usr/include/stdio.h", line 173: error 1000: Unexpected symbol: "void"= > > Is the stdio.h in error itself, or did Ruby override something it shouldn't > have? missing/vsnprintf.c defines some macros like clearerr and ferror, which are already declared as functions in stdio.h. Although vsnprintf.c is not including stdio.h, it seems like cpp includes it after preprocessing vsnprintf.c and then I get those errors ("Redefinition of macro clearerr" because stdio.h is declaring it as a function, after being defined as a macro in vsnprintf.c, etc) I'm new at HP-UX, I'm missing something important for sure. Changing the flag -Ae for -Aa "solves" the problem for vsnprintf.c. But then I get other errors when running miniruby. > > Does it go away with 1.8.3 or 1.8.4-preview1 ? I'll try with 1.8.4-preview1 and see > > And probably most important, is vsnprintf missing on hpux 10? if not, why > does ./configure seem to think so? Yes, it is missing. > > I have not seen this problem with 1.8.1 or 1.8.4-preview1 on HP-UX 11 > (though comforting, that may be of very little help to you) HP-UX 11 already has vsnprintf AFAIK. I have just found this: http://www.ruby-lang.org/ja/install.cgi?cmd=view;name=HP-UX It explains how to solve some problems I ran into. It says something about vsnprintf and a patch for HP-UX, but I can't read Japanese :( Does any caritative soul want to help me? (from the line starting with "missing/vsnprintf.c", almost at the end of the file) Thanks in advance > > Bye, > Kero. > > -- Gerardo Santana "Between individuals, as between nations, respect for the rights of others is peace" - Don Benito Ju�rez