Re: Building Ruby 1.8.2 on HP-UX 10.20



Thanks Kero

2005/11/20, Kero <kero@xxxxxxxxxxxxxxxxxxxx>:
> > 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


.



Relevant Pages

  • RE: Fill empty cells in a range using the used cell
    ... Try clearing them and them runing the macro ... with Missing! ... last cell used. ... Sub FillEmptyCells() ...
    (microsoft.public.excel.programming)
  • Re: CD/DVD drive tricks needed for HP Visulize C3600?
    ... It requires a macro to work on all FP types. ... But printfis in libc and is required to work without linking against libm. ... HP-UX 10.20 seems to do no tests at all in printfand prints: ... It IS the posix shell. ...
    (comp.sys.hp.hpux)
  • Re: Macro question
    ... > My problem was the missing after the function name. ... > in the macro proved to be the only problem. ... from the RunCode Action topic in Access Help: ... >>> screen I coded ScrRes as the function name. ...
    (microsoft.public.access.formscoding)
  • RE: automatic data sorting?
    ... I did that and must be missing something. ... I used the macro recorder and set a hot key. ... Notice, you are going to sort based on the values in Colun B, and the sort ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Help, my macro always opens up spreadsheet it was created in
    ... Private Sub Cancel_Click ... "Missing Information" ... Dim AllCells As Range, Cell As Range ... My problem is that everytime I want to use this macro in a new ...
    (microsoft.public.excel.worksheet.functions)