# Pthreads on HPUX

**URL:** <https://www.ruby-forum.com/t/pthreads-on-hpux/75231>\
**Category:** Ruby\
**Created:** [March 1, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231 "2006-03-01T15:46:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 1, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231/1 "2006-03-01T15:46:20Z")

</div>

There are some historical references to a problem with compiling Ruby  
with pthread support for HPUX:

[http://www.codecomments.com/archive327-2005-4-470857.html](http://www.codecomments.com/archive327-2005-4-470857.html)

Although there is also a report here that it works:

[http://www.rubyweeklynews.org/20050424](http://www.rubyweeklynews.org/20050424)

It looks like the “fixed” report comes directly after the “broken” one,  
and some of the same people are involved. I would expect that the  
current sitaution is “fixed”, but I’ve not been able to find a blazing,  
40 point: “it works - go install it” that I can convince people here  
with. Could anyone in the know, please confirm the current situation?

Thanks you very much,  
Benjohn

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2006, 10:04pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231/2 "2006-03-06T22:04:49Z")

</div>

Sorry for the late reply.

This isn’t any 40 point process, but maybe it’ll do:

[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 is the guy that wrote it, and he (apparently) uses ruby on hpux  
quite a bit.

Dan Amelang

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231/3 "2006-03-06T23:06:19Z")

</div>

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

> Sorry for the late reply.
> 
> This isn’t any 40 point process, but maybe it’ll do:
> 
> [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 is the guy that wrote it, and he (apparently) uses ruby on  
> hpux quite a bit.

I don’t recall having any problems with pthreads, but then I haven’t  
been trying to use extensions which actively require them either.

In general HP-UX is a bad platform for building any software which  
wasn’t written specifically for it. Use something else if you  
possibly can.

-mental

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231/4 "2006-03-06T23:27:50Z")

</div>

On Tue, Mar 07, 2006 at 07:03:50AM +0900, removed\_email\_address@domain.invalid wrote:

> I don’t recall having any problems with pthreads, but then I haven’t  
> been trying to use extensions which actively require them either.
> 
> In general HP-UX is a bad platform for building any software which  
> wasn’t written specifically for it. Use something else if you  
> possibly can.
> 
> -mental

ugly is right, but I had even more issues than those with HPUX 11v2 on  
itanium2, with ucontext\_t not containing the members it used to on  
the HP9000. Finally gave up and wrote project stuff in Perl 😛

Ralph “PJPizza” Siegler

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231/5 "2006-03-06T23:55:13Z")

</div>

Quoting “Ralph "PJPizza" Siegler” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> ugly is right, but I had even more issues than those with HPUX  
> 11v2 on itanium2, with ucontext\_t not containing the members it  
> used to on the HP9000.

Well, that part’s not anyone’s fault really. ucontext\_t is very  
architecture-dependent. Any code that’s got to poke around in it  
is almost inevitably going to have to be adjusted to accomodate new  
platforms.

-mental
