# Compile problems with 1.8.4 on HP

**URL:** <https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395>\
**Category:** Ruby\
**Created:** [February 3, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395 "2006-02-03T20:39:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauy7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Post date:** [February 3, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395/1 "2006-02-03T20:39:04Z")

</div>

Hi

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

Any ideas appreciated.

---

<div class="post-metadata">

**Author:** ![sauy7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Post date:** [February 4, 2006, 3:58am UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395/2 "2006-02-04T03:58:22Z")

</div>

Hi,

On 2/4/06, Jim F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi
> 
> Ruby 1.8.4 doesn’t want to build on my HP machine.  
> I get the following error:

Try using gcc.

---

<div class="post-metadata">

**Author:** ![sauy7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Post date:** [February 5, 2006, 4:18am UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395/3 "2006-02-05T04:18:48Z")

</div>

On Sat, 2006-02-04 at 04:36 +0900, Jim F. wrote:

> Hi
> 
> 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:

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/177036](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/177036)

-mental

---

<div class="post-metadata">

**Author:** ![sauy7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Post date:** [February 5, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395/4 "2006-02-05T15:04:42Z")

</div>

On Feb 4, 2006, at 9:14 PM, MenTaLguY wrote:

> As Matz suggests, I’ve had best luck with gcc, though there are a  
> number  
> of caveats. See ruby-talk #177036:

What’s the best way to get gcc on an HP? At the HP porting archive  
they have 4.0.2 binaries.

```
 http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.0.2/

```

and make-3.8.0.  
ï¿¼

Jim F.

---

<div class="post-metadata">

**Author:** ![sauy7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Post date:** [February 6, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395/5 "2006-02-06T17:59:19Z")

</div>

Quoting Jim F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> What’s the best way to get gcc on an HP? At the HP porting  
> archive they have 4.0.2 binaries.
> 
> ```
> http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.0.2/
> 
> ```
> 
> and make-3.8.0.

Yeah, the HP porting archive is good (but see my caveat regarding  
readline).

-mental
