# Ruby-1.8.1 build failed on HP-UX 10

**URL:** <https://rubytalk.org/t/ruby-1-8-1-build-failed-on-hp-ux-10/9807>\
**Category:** ruby-talk\
**Created:** [23 January 2004 04:01 UTC](https://rubytalk.org/t/ruby-1-8-1-build-failed-on-hp-ux-10/9807 "2004-01-23T04:01:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BIl\_Kleb1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BIl\_Kleb1](https://rubytalk.org/u/BIl_Kleb1)\
**Post date:** [23 January 2004 04:01 UTC](https://rubytalk.org/t/ruby-1-8-1-build-failed-on-hp-ux-10/9807/1 "2004-01-23T04:01:47Z")

</div>

I found a Japanese note about this in the developer list,

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

but even with the help of Excite’s english translation, I wasn’t able to tell  
if patch shown at the bottom was supposed to fix the problem for HP-UX 11.

It does not seem to for HP-UX 10,

% uname -srm  
HP-UX B.10.20 9000/782

make[1]: Entering directory `/home/kleb/local/src/ruby-1.8.1/ext/curses’  
gcc -fPIC -g -O2 -I. -I~/local/src/ruby-1.8.1 -I~/local/src/ruby-1.8.1 -I~/local/src/ruby-1.8.1/ext/curses -DHAVE\_CURSES\_COLR\_CURSES\_H -DHAVE\_BEEP -DHAVE\_BKGD -DHAVE\_BKGDSET -DHAVE\_CURS\_SET -DHAVE\_DELETELN -DHAVE\_DOUPDATE -DHAVE\_FLASH -DHAVE\_GETBKGD  
-DHAVE\_GETNSTR -DHAVE\_INIT -DHAVE\_ISENDWIN -DHAVE\_KEYNAME -DHAVE\_KEYPAD -DHAVE\_RESIZETERM -DHAVE\_SCRL -DHAVE\_SET -DHAVE\_SETSCRREG -DHAVE\_UNGETCH -DHAVE\_WATTROFF -DHAVE\_WATTRON -DHAVE\_WATTRSET -DHAVE\_WBKGD -DHAVE\_WBKGDSET -DHAVE\_WDELETELN -DHAVE\_WGETNSTR  
-DHAVE\_WRESIZE -DHAVE\_WSCRL -DHAVE\_WSETSCRREG -DHAVE\_DEF\_PROG\_MODE -DHAVE\_RESET\_PROG\_MODE -DHAVE\_TIMEOUT -DHAVE\_WTIMEOUT -DHAVE\_NODELAY -DHAVE\_INIT\_COLOR -c curses.c  
cc1: warning: -g is only supported when using GAS on this processor,  
cc1: warning: -g option disabled.  
ld -b -E -L"~/local/src/ruby-1.8.1" -L"~/local/lib" -o [curses.sl](http://curses.sl) curses.o -lcur\_colr -ltinfo -ldld -lcrypt -lm -lc  
ld: Can’t find library for -ltinfo  
make[1]: \*\*\* [[curses.sl](http://curses.sl)] Error 1

~/local/src/ruby-1.8.1/ext/curses/mkmf.log has

have\_library: checking for tgetent() in -ltinfo… -------------------- yes

“gcc -o conftest -I/home/kleb/local/src/ruby-1.8.1 -I/home/kleb/local/src/ruby-1.8.1 -g -O2 co  
nftest.c -L”/home/kleb/local/src/ruby-1.8.1" -L"/home/kleb/local/lib" -E -lruby-static -  
ltinfo -ldld -lcrypt -lm -lc"  
gcc: -lruby-static: linker input file unused because linking not done  
gcc: -ltinfo: linker input file unused because linking not done  
gcc: -ldld: linker input file unused because linking not done  
gcc: -lcrypt: linker input file unused because linking not done  
gcc: -lm: linker input file unused because linking not done  
gcc: -lc: linker input file unused because linking not done  
checked program was:  
/\* begin \*/

/_top_/  
int main() { return 0; }  
int t() { tgetent(); return 0; }  
/\* end \*/

Thanks in advance,

> **···**
>
> –  
> Bil, NASA, Hampton, Virginia, USA

---

<div class="post-metadata">

**Author:** ![BIl\_Kleb1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BIl\_Kleb1](https://rubytalk.org/u/BIl_Kleb1)\
**Post date:** [28 January 2004 21:02 UTC](https://rubytalk.org/t/ruby-1-8-1-build-failed-on-hp-ux-10/9807/2 "2004-01-28T21:02:59Z")

</div>

Bil Kleb wrote:

> % uname -srm  
> HP-UX B.10.20 9000/782
> 
> make[1]: Entering directory `/home/kleb/local/src/ruby-1.8.1/ext/curses’  
> gcc -fPIC -g -O2 -I. -I~/local/src/ruby-1.8.1 -I~/local/src/ruby-1.8.1  
> -I~/local/src/ruby-1.8.1/ext/curses -DHAVE\_CURSES\_COLR\_CURSES\_H  
> -DHAVE\_BEEP -DHAVE\_BKGD -DHAVE\_BKGDSET -DHAVE\_CURS\_SET -DHAVE\_DELETELN  
> -DHAVE\_DOUPDATE -DHAVE\_FLASH -DHAVE\_GETBKGD -DHAVE\_GETNSTR -DHAVE\_INIT  
> -DHAVE\_ISENDWIN -DHAVE\_KEYNAME -DHAVE\_KEYPAD -DHAVE\_RESIZETERM  
> -DHAVE\_SCRL -DHAVE\_SET -DHAVE\_SETSCRREG -DHAVE\_UNGETCH -DHAVE\_WATTROFF  
> -DHAVE\_WATTRON -DHAVE\_WATTRSET -DHAVE\_WBKGD -DHAVE\_WBKGDSET  
> -DHAVE\_WDELETELN -DHAVE\_WGETNSTR -DHAVE\_WRESIZE -DHAVE\_WSCRL  
> -DHAVE\_WSETSCRREG -DHAVE\_DEF\_PROG\_MODE -DHAVE\_RESET\_PROG\_MODE  
> -DHAVE\_TIMEOUT -DHAVE\_WTIMEOUT -DHAVE\_NODELAY -DHAVE\_INIT\_COLOR -c  
> curses.c  
> cc1: warning: -g is only supported when using GAS on this processor,  
> cc1: warning: -g option disabled.  
> ld -b -E -L"~/local/src/ruby-1.8.1" -L"~/local/lib" -o curses.sl  
> curses.o -lcur\_colr -ltinfo -ldld -lcrypt -lm -lc  
> ld: Can’t find library for -ltinfo  
> make[1]: \*\*\* [curses.sl] Error 1

FWIW, I just took the -ltinfo out of the ext/curses Makefile and went  
on my way…

> **···**
>
> –  
> Bil, NASA, Hampton, Virginia, USA

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nobuyoshi\_Nakada](https://rubytalk.org/u/Nobuyoshi_Nakada)\
**Post date:** [29 January 2004 05:03 UTC](https://rubytalk.org/t/ruby-1-8-1-build-failed-on-hp-ux-10/9807/3 "2004-01-29T05:03:21Z")

</div>

Hi,

> I found a Japanese note about this in the developer list,
> 
> [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/22418](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/22418)
> 
> but even with the help of Excite’s english translation, I wasn’t able to tell  
> if patch shown at the bottom was supposed to fix the problem for HP-UX 11.

Try the patch in [ruby-dev:22420].

> have\_library: checking for tgetent() in -ltinfo… -------------------- yes
> 
> “gcc -o conftest -I/home/kleb/local/src/ruby-1.8.1 -I/home/kleb/local/src/ruby-1.8.1 -g -O2 co  
> nftest.c -L”/home/kleb/local/src/ruby-1.8.1" -L"/home/kleb/local/lib" -E -lruby-static -  
> ltinfo -ldld -lcrypt -lm -lc"  
> gcc: -lruby-static: linker input file unused because linking not done

Due to -E, gcc does only preprocess and never fail.

> **···**
>
> At Fri, 23 Jan 2004 13:01:47 +0900, Bil Kleb wrote:
> 
> –  
> Nobu Nakada
