Issues compiling Ruby 1.9.33-p429 under AIX version 7

While trying to build Ruby 1.9.33-p429 under AIX version 7, the
*./configure
*phase goes fine, but it failed during the make phase with the errors
listed below.

Any help is appreciated.

Thank you

basicsocket.c: In function ‘bsock_getpeereid’:
basicsocket.c:433:5: warning: implicit declaration of function
‘getpeereid’
[-Wimplicit-function-decl aration]
compiling socket.c
socket.c: In function ‘socket_s_ip_address_list’:
socket.c:1507:5: warning: implicit declaration of function ‘getifaddrs’
[-Wimplicit-function-declarat ion]
socket.c:1513:27: error: dereferencing pointer to incomplete type
socket.c:1514:14: error: dereferencing pointer to incomplete type
socket.c:1514:36: error: dereferencing pointer to incomplete type
socket.c:1514:36: error: dereferencing pointer to incomplete type
socket.c:1515:45: error: dereferencing pointer to incomplete type
socket.c:1519:5: warning: implicit declaration of function ‘freeifaddrs’
[-Wimplicit-function-declara tion]
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

On Tue, 11 Jun 2013, Ruby S. wrote:

While trying to build Ruby 1.9.33-p429 under AIX version 7, the *./configure
*phase goes fine, but it failed during the make phase with the errors
listed below.

Good luck! Please let me know what sort of fixes you wind up with. I
wound up just going with jruby (which also has a problem with IBM’s
Java)

– Matt
It’s not what I know that counts.
It’s what I can remember in time to use.

I just tried to compile it on our AIX 7.1 system…

It compiled socket.c, but got this:

basicsocket.c: In function ‘bsock_getpeereid’:
basicsocket.c:433: warning: implicit declaration of function
‘getpeereid’
compiling socket.c
socket.c: In function ‘socket_s_ip_address_list’:
socket.c:1627: warning: comparison between signed and unsigned integer
expressions
compiling ipsocket.c

The warning is in a different #elif branch (#elif defined(SIOCGIFCONF))
than your errors, which are in the #if defined(HAVE_GETIFADDRS) part. So
apparently there’s some difference between our systems…

Then my build failed anyway, like this:

compiling syslog.c
linking shared-object syslog.so
installing default syslog libraries
Target “all” is up to date.
Target “all” is up to date.
Target “all” is up to date.
Target “all” is up to date.
Target “all” is up to date.
linking ruby
: not found

make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

Rather cryptic, no idea what that means. :frowning:

Really? 2.0.0-p195 worked!
I will give it a try. The only concern I have is whether all current
gems
that I use **still work.

BTW, I did get jruby working on AIX 7.1

Thank you

Per-erik Martin wrote in post #1112017:

I just tried to compile it on our AIX 7.1 system…
/…/

Then my build failed anyway, like this:
/…/

… but, building ruby-2.0.0-p195 worked!