Building Ruby on HP-UX B.11.22

Hi all,

Just trying to build Ruby 1.6.8 on a HP-UX system.

uname -a
HP-UX spe168 B.11.22 U ia64 4154295346 unlimited-user license

gcc -v
Thread model: posix
gcc version 3.0

The configure portion seems ok, but when I do make it dies:

$ make
gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o
miniruby
ld: I/O error, file “miniruby”: Connection timed out
Fatal error.
collect2: ld returned 1 exit status

with gmake (3.79.1) same spot

gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o miniruby
gmake: *** [rbconfig.rb] Illegal Instruction

I’m building on a testdrive system: http://www.testdrive.compaq.com/

I didn’t see anything in the agreement that said building wasn’t ok, so
I don’t think I’m being stumped by external sources.

Any ideas?

Regards,

Dan

···


a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82]
a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114)
puts a.pack(“C*”)

Daniel Berger wrote:

Hi all,

Just trying to build Ruby 1.6.8 on a HP-UX system.

uname -a
HP-UX spe168 B.11.22 U ia64 4154295346 unlimited-user license

Quick note: seemed to build ok on a non-itanium system with gcc 3.2:

uname -a
HP-UX spe169 B.11.11 U 9000/800 1939057856 unlimited-user license

ruby -v
ruby 1.6.8 (2002-12-24) [hppa2.0w-hpux11.11]

Dan

They don’t have 3.2 for IA64 on the testdrive box? It sure seems a lot of more
recent fixes in GCC have been for IA64. I’d try to get as recent as you can
with GCC for IA64.

···

On Apr 4, Daniel Berger wrote:

Hi all,

Just trying to build Ruby 1.6.8 on a HP-UX system.

uname -a
HP-UX spe168 B.11.22 U ia64 4154295346 unlimited-user license

gcc -v
Thread model: posix
gcc version 3.0

The configure portion seems ok, but when I do make it dies:

$ make
gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o
miniruby
ld: I/O error, file “miniruby”: Connection timed out
Fatal error.
collect2: ld returned 1 exit status

with gmake (3.79.1) same spot

gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o miniruby
gmake: *** [rbconfig.rb] Illegal Instruction

I’m building on a testdrive system: http://www.testdrive.compaq.com/

I didn’t see anything in the agreement that said building wasn’t ok, so
I don’t think I’m being stumped by external sources.

Any ideas?

“Brett H. Williams” brett_williams@agilent.com wrote in message news:20030403232221.GB31723@vor-lord.ftc.agilent.com

They don’t have 3.2 for IA64 on the testdrive box? It sure seems a lot of more
recent fixes in GCC have been for IA64. I’d try to get as recent as you can
with GCC for IA64.

The gcc compiler has since been updated to 3.2:

gcc -v
Reading specs from /usr/local/lib/gcc-lib/ia64-hp-hpux11.20/3.2/specs
Configured with: …/gcc/configure --enable-languages=c,c++
–host=ia64-hp-hpux11.20 --target=ia64-hp-hpux11.20
–with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3
–disable-checking
Thread model: single
gcc version 3.2 20020329 (experimental)

However, now it’s failing on the curses lib. Same result with both
make and gmake:

make
…gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o
miniruby
compiling Win32API
compiling curses
gcc -fPIC -g -O2 -I/house/djberg96/ruby-1.6.8
-I/house/djberg96/ruby-1.6.8 -DHAVE_CURSES_H -DHAVE_ISENDWIN
-DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_DOUPDATE -DHAVE_FLASH
-DHAVE_DELETELN -DHAVE_WDELETELN -c curses.c
curses.c: In function window_maxy': curses.c:581: structure has no member named _maxy’
curses.c: In function window_maxx': curses.c:602: structure has no member named _maxx’
curses.c: In function window_begy': curses.c:620: structure has no member named _begy’
curses.c: In function window_begx': curses.c:637: structure has no member named _begx’
*** Error exit code 1

Ruby 1.6.8 btw

Regards,

Dan

This looks much more tractable, as it is a compile error and not a link error.
The curses lib appears to not match what is expected–a little detective work
should pinpoint the problem on that machine. Any luck yet?

···

On Apr 11, Daniel Berger wrote:

“Brett H. Williams” brett_williams@agilent.com wrote in message news:20030403232221.GB31723@vor-lord.ftc.agilent.com

They don’t have 3.2 for IA64 on the testdrive box? It sure seems a lot of more
recent fixes in GCC have been for IA64. I’d try to get as recent as you can
with GCC for IA64.

The gcc compiler has since been updated to 3.2:

However, now it’s failing on the curses lib. Same result with both
make and gmake:

make
…gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o
miniruby
compiling Win32API
compiling curses
gcc -fPIC -g -O2 -I/house/djberg96/ruby-1.6.8
-I/house/djberg96/ruby-1.6.8 -DHAVE_CURSES_H -DHAVE_ISENDWIN
-DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_DOUPDATE -DHAVE_FLASH
-DHAVE_DELETELN -DHAVE_WDELETELN -c curses.c
curses.c: In function window_maxy': curses.c:581: structure has no member named _maxy’
curses.c: In function window_maxx': curses.c:602: structure has no member named _maxx’
curses.c: In function window_begy': curses.c:620: structure has no member named _begy’
curses.c: In function window_begx': curses.c:637: structure has no member named _begx’
*** Error exit code 1

djberg96@hotmail.com (Daniel Berger) writes:

However, now it’s failing on the curses lib. Same result with both
make and gmake:

make
…gcc -g -O2 -Wl,-E main.o dmyext.o libruby.a -ldld -ldl -lm -o
miniruby
compiling Win32API
compiling curses
gcc -fPIC -g -O2 -I/house/djberg96/ruby-1.6.8
-I/house/djberg96/ruby-1.6.8 -DHAVE_CURSES_H -DHAVE_ISENDWIN
-DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_DOUPDATE -DHAVE_FLASH
-DHAVE_DELETELN -DHAVE_WDELETELN -c curses.c
curses.c: In function window_maxy': curses.c:581: structure has no member named _maxy’
curses.c: In function window_maxx': curses.c:602: structure has no member named _maxx’
curses.c: In function window_begy': curses.c:620: structure has no member named _begy’
curses.c: In function window_begx': curses.c:637: structure has no member named _begx’
*** Error exit code 1

I don’t have an HP-UX system here right now, so this is from memory:
You might have tell the compiler and linker to use color curses using
something like

-I/usr/include/curses_colr -lcur_colr

···


Michael Piotrowski, M.A. mxp@dynalabs.de
Public key at http://www.dynalabs.de/mxp/pubkey.txt