I've had reasonable success with compiling 1.9.1 on HP-UX. But 1.9.2 has been problematic since preview3 came out. It seems the main issue is with threads. A very simple example (as follows) works fine on 1.9.1 but t...graza (Graham Agnew)
That code looks better although I'm still getting test/ruby/test_thread.rb blocking indefinitely. I will see if I can attach to the process with a debugger and figure out what it's blocked on.
=begin Today I downloaded, patched, and compiled the latest snapshot.
On HP-UX, that patch stopped the rb_bug_errno happening, although test/ruby/test_thread.rb scripts blocked indefinitely. On being interrupted it was the following...graza (Graham Agnew)
=begin Under 1.8.x, the version.h file used to be installed into <prefix>/lib/ruby/1.8/<platform>/version.h This is useful for gems that have version specific code.
However this file is not installed when compiling 1.9.1p0.
=begin OK, so the problem with Segmentation faults was related to the previous changes I had made to use getcontext/setcontext instead of setjmp/lonjmp; it was causing Fibers to fail for one thing, and who knows what else. Once I rever...graza (Graham Agnew)
In the HP-UX documentation it says that on Itanium, PTHREAD_STACK_MIN is 256KB. But when I tracked the actual value doen in (limits.h), I found that it was only 4KB. Increasing this has solved the pr...graza (Graham Agnew)
I have modified my 1.9.1-p0 such that getcontext/setcontext would be used, but it hasn't helped. Basically this was done by running configure as normal and then changing the generated .ext/include/ia64-hpux11...graza (Graham Agnew)
I should also say that this problem is worse on HP-UX 11i v3 (version 11.31). When running "make test" it doesn't even get past the sample/test.rb:signal tests; ruby core dumps with the same problem of establ...graza (Graham Agnew)
The only other environment I've tried so far is AIX and I haven't seen this issue there at all. (But you probably knew that since you responded to my other issue on the Ruby forum. :) ) This problem only hap...graza (Graham Agnew)
Granted this won't be available everywhere, however it remains that, setjmp and longjmp are not necessarily appropriate in HP-UX. The man page for setjmp/longjmp on HP-UX has the following: