Ruby 1.8.4 doesn’t want to build on my HP machine.
I get the following error:
cc -s -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c eval.c
(Bundled) cc: “eval.c”, line 1657: error 1000: Unexpected symbol:
“VALUE”.
(Bundled) cc: “eval.c”, line 1657: error 1705: Function prototypes are
an ANSI feature.
(Bundled) cc: “eval.c”, line 1657: error 1573: Type of “VALUE” is
undefined due to an illegal declaration.
(Bundled) cc: “eval.c”, line 2567: error 1000: Unexpected symbol:
“event”.
(Bundled) cc: “eval.c”, line 2569: error 1588: “event” undefined.
(Bundled) cc: “eval.c”, line 4681: error 1000: Unexpected symbol:
“VALUE”.
(Bundled) cc: “eval.c”, line 4681: error 1705: Function prototypes are
an ANSI feature.
(Bundled) cc: “eval.c”, line 4681: error 1573: Type of “VALUE” is
undefined due to an illegal declaration.
(Bundled) cc: “eval.c”, line 9809: warning 546: Conflicting
enumeration types used in expression.
(Bundled) cc: “eval.c”, line 9814: warning 546: Conflicting
enumeration types used in expression.
gmake: *** [eval.o] Error 1
Ruby 1.8.4 doesn’t want to build on my HP machine.
HP’s c89 would (probably) do if you feel like shelling out for it. HP’s
bundled cc is severely crippled – don’t bother trying to compile
anything serious with it.
As Matz suggests, I’ve had best luck with gcc, though there are a number
of caveats. See ruby-talk #177036: