Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Failure trying to build Ruby 1.8.6 on HP-UX 11

Reply
Thread Tools

Failure trying to build Ruby 1.8.6 on HP-UX 11

 
 
Daniel Berger
Guest
Posts: n/a
 
      08-21-2007
Hi all,

djberge@td191> uname -a
HP-UX td191 B.11.31 U 9000/800 3397116299 unlimited-user license

djberge@td191> what `which cc`
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.53 060807 $
LINT B.11.X.36086-36089-36092.GP CXREF B.11.X.
36086-36089-36092.GP
HP92453-01 B.11.X.36086-36089-36092.GP HP C Compiler
$ PATCH/11.00HCO_27774 Oct 3 2002 09:45:59 $

djberge@td191> echo $CC
cc -Ae -s

When I try to build Ruby 1.8.6 I get this:

cc -Ae -s -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c parse.c
cc: "parse.y", line 4446: warning 527: Integral value implicitly
converted to pointer in assignment.
cc: "parse.y", line 4449: error 1530: Undefined struct or union.
cc: "parse.y", line 4451: error 1530: Undefined struct or union.
cc: "parse.y", line 4451: warning 563: Argument #1 is not the correct
type.
cc: "parse.y", line 4452: error 1530: Undefined struct or union.
cc: "parse.y", line 4454: error 1530: Undefined struct or union.
cc: "parse.y", line 4454: error 1563: Expression in if must be scalar.
cc: "parse.y", line 4464: error 1530: Undefined struct or union.
cc: "parse.y", line 4466: error 1530: Undefined struct or union.
cc: "parse.y", line 4466: error 1530: Undefined struct or union.
cc: "parse.y", line 4466: error 1563: Expression in if must be scalar.
cc: "parse.y", line 4468: error 1530: Undefined struct or union.
*** Error exit code 1

I see from older posts (including one of my own) that others have had
this problem. The old solution of sticking "#define inline" in
config.h did not work, though.

Any ideas?

BTW, you can get access to HP-UX (and OpenVMS, Linux, Windows 2003
Server and FreeBSD 6.2) via the HP testdrive program at http://www.testdrive.hp.com
(which is what I'm using in an attempt to get some platform info for
rubygems).

Regards,

Dan


 
Reply With Quote
 
 
 
 
thomas.macklin@gmail.com
Guest
Posts: n/a
 
      08-21-2007

I am guessing that cc doesn't integrate directoy with yacc/flex/bison/
etc. parse.y isn't C code.

 
Reply With Quote
 
 
 
 
MenTaLguY
Guest
Posts: n/a
 
      08-21-2007
If I rememeber correctly from my own attempts to build Ruby on
HP-UX, one of the issues is that HP's make is broken and
incorrectly thinks parse.y is out of date, trying to regenerate it
with HP's yacc, which is also broken.

Things generally get much better if you use the GNU toolchain (make,
bison, gcc) rather than HP's. But note that you'll still need to
disable IPv6 support or else the socket library won't actually work
(because HP's IPv6 support is broken).

Also, make sure that the linker patches are up-to-date, or you may
run into linker issues down the road.

-mental



 
Reply With Quote
 
Daniel Berger
Guest
Posts: n/a
 
      08-21-2007


On Aug 21, 12:46 pm, Daniel Berger <(E-Mail Removed)> wrote:
> Hi all,
>
> djberge@td191> uname -a
> HP-UX td191 B.11.31 U 9000/800 3397116299 unlimited-user license
>
> djberge@td191> what `which cc`
> /usr/bin/cc:
> $Revision: 92453-07 linker linker crt0.o B.11.53 060807 $
> LINT B.11.X.36086-36089-36092.GP CXREF B.11.X.
> 36086-36089-36092.GP
> HP92453-01 B.11.X.36086-36089-36092.GP HP C Compiler
> $ PATCH/11.00HCO_27774 Oct 3 2002 09:45:59 $
>
> djberge@td191> echo $CC
> cc -Ae -s
>
> When I try to build Ruby 1.8.6 I get this:


<snip>

Ok, the problem went away when I installed gperf. The only other
quirks I noticed is that you have to run make twice - the first one
fails, but then the second works - and that ext/curses may cause the
build to fail. I simply removed ext/curses altogether, but I think
older posts have better soltuions.

Regards,

Dan


 
Reply With Quote
 
Daniel Berger
Guest
Posts: n/a
 
      08-21-2007
MenTaLguY wrote:
> If I rememeber correctly from my own attempts to build Ruby on
> HP-UX, one of the issues is that HP's make is broken and
> incorrectly thinks parse.y is out of date, trying to regenerate it
> with HP's yacc, which is also broken.


There's definitely something odd going on, but I managed to build and
install gperf, which solved it.

> Things generally get much better if you use the GNU toolchain (make,
> bison, gcc) rather than HP's. But note that you'll still need to
> disable IPv6 support or else the socket library won't actually work
> (because HP's IPv6 support is broken).


Yes, I can't say I'm too impressed with the HP-UX libraries or
toolchain. Unfortunately, we do have a couple of HP-UX machines at work,
so I still like to support it when I can.

> Also, make sure that the linker patches are up-to-date, or you may
> run into linker issues down the road.


I hit one already trying to build zlib.

Thanks,

Dan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection failure message trying to run my ruby file Shekar Ls Ruby 0 11-11-2009 07:14 AM
Build failure trying to use rb_define_alias on rb_mKernel Daniel Berger Ruby 0 11-18-2007 03:28 AM
ruby-ldap 0.9.7 build failure Daniel Berger Ruby 0 10-23-2007 08:14 PM
Ruby 1.8.4 build failure on AIX 5.3 Manas Dadarkar Ruby 0 02-04-2007 05:03 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM



Advertisments