- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Has anyone successfully compiled Ruby on HP-UX?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2007 10:05 PM
тАО07-01-2007 10:05 PM
I searched at software.hp.com but got no hit.
The version packaged on HP Porters is a bit dated, and since it relies on many libs (like openssl) which probably are 32Bit gcc compiles it won't link with HP's OpenSSL depot.
So I currently try to make it on B.11.11 with ansic, but as usual, got choked at openssl parts.
As I wish to use Rails or other web modules I hardly can do without OpenSSL for I need to run SSL connections as well.
I had a look at the very terse README from the ruby tarball and ran configure --help, to be very surprised how few fiddle switches were proposed unlike with Perl builds.
So I merely invoked configure like this to point to HP's openssl install target:
LDDFLAGS="-L/opt/openssl" CPPFLAGS="-I/opt/openssl/include/openssl" ./configure
A make aborts at this point when compiling
ossl_config.c:
/opt/ansic/bin/cc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/opt/openssl/include/openssl +Z -g -c ossl_config.c
cc: "ossl_config.c", line 248: error 1521: Incorrect initialization.
cc: "ossl_config.c", line 248: error 1521: Incorrect initialization.
cc: "ossl_config.c", line 300: warning 558: Empty declaration.
cc: "ossl_config.c", line 338: warning 558: Empty declaration.
cc: "ossl_config.c", line 382: warning 558: Empty declaration.
gmake[1]: *** [ossl_config.o] Error 1
gmake[1]: Leaving directory `/usr/local/tmp/ruby-1.8.6/ext/openssl'
gmake: *** [all] Error 1
Solved! Go to Solution.
- Tags:
- Ruby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2007 10:38 PM
тАО07-01-2007 10:38 PM
Re: Has anyone successfully compiled Ruby on HP-UX?
C89 doesn't allow you to initialize locals with non-constants, within {}.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2007 11:40 PM
тАО07-01-2007 11:40 PM
Re: Has anyone successfully compiled Ruby on HP-UX?
you're probably right.
This is the offending block with a maybe past C89 liberal array declaration in line 248?
245 static VALUE
246 ossl_config_set_section(VALUE self, VALUE section, VALUE hash)
247 {
248 VALUE arg[2] = { self, section };
249 rb_iterate(rb_each, hash, set_conf_section_i, (VALUE)arg);
250 return hash;
251 }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2007 11:51 PM
тАО07-01-2007 11:51 PM
SolutionRight. This is legal C99 or C++ but not C89.
Just change it into two assignments to the array elements.
I'm not sure what the array cast to array element is suppose to do on 249:
(VALUE)arg
It would be valid if VALUE was void*.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:04 AM
тАО07-02-2007 12:04 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:05 AM
тАО07-02-2007 12:05 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
246 ossl_config_set_section(VALUE self, VALUE section, VALUE hash)
247 {
248 VALUE arg[2];
249 arg = { self, section };
250 rb_iterate(rb_each, hash, set_conf_section_i, (VALUE)arg);
251 return hash;
252 }
I'm also puzzled by the typecast to VALUE of the last param in the rb_iterate call.
Alas, I'm no C hacker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:09 AM
тАО07-02-2007 12:09 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
248 VALUE arg[2];
249 arg[0] = self;
250 arg[1] = section;
>I'm also puzzled by the typecast to VALUE of the last parm in the rb_iterate call.
Well, no C warning so it must not be too bad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:13 AM
тАО07-02-2007 12:13 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
how to assign array elems ;-)
cc: "ossl_config.c", line 249: error 1000: Unexpected symbol: "{".
cc: "ossl_config.c", line 249: error 1000: Unexpected symbol: "}".
cc: "ossl_config.c", line 249: error 1549: Modifiable lvalue required for assignment operator.
I bet this is fool proof though awkward?
arg[0] = self;
arg[1] = section;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:19 AM
тАО07-02-2007 12:19 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
Now make is progressing...
And even finished without errors and zero exit code.
Many thanks for your instant help.
You saved my day.
Just out of curiosity,
does C89 allow multiple array elem assignment with curly braces at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:23 AM
тАО07-02-2007 12:23 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
# make install
./miniruby ./instruby.rb --dest-dir="" --extout=".ext" --make="/usr/local/bin/gmake" --mflags="" --make-flags="" --installed-list .installed.list --mantype="man"
installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts
# which ruby
/usr/local/bin/ruby
# ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [hppa2.0w-hpux11.11]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:28 AM
тАО07-02-2007 12:28 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
I had seen these builds already
but I didn't want to use them for the above mentioned reasons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 12:32 AM
тАО07-02-2007 12:32 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
Sure but they all must be constant expressions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 01:06 AM
тАО07-02-2007 01:06 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
Well, I would have considered compound array initialization by already previously declared variables quite common fare these days.
But then I may have been spoiled by non typed languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 01:34 AM
тАО07-02-2007 01:34 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
It is legal in real languages like C++ and and for auto variables in C99. ;-)
I'm not sure if your PA C compiler will take it if you add -AC99?
- Tags:
- C99
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2011 07:49 AM
тАО11-19-2011 07:49 AM
Re: Has anyone successfully compiled Ruby on HP-UX?
Hello,
To build Ruby 1.8.7 or 1.9.2 on HP-UX IA64 B.11.31 (not tested on other versions), see http://vouters.dyndns.org/tima/HP-UX-Installing_Ruby_On_Itanium.html
Yours truly,
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2011 12:53 PM
тАО11-25-2011 12:53 PM
Re: Has anyone successfully compiled Ruby on HP-UX?
Congratulation, you answered a Thread from 2007 ;-)
And to add something useful, alternative would be using Internet Express for it.
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131