From: Ruby Student Date: 2013-03-02T23:41:50+09:00 Subject: Re: Problem building Ruby 1.9.3 patchlevel 385 under AIX 7.1 --047d7bdc9c104a2a8604d6f21d81 Content-Type: text/plain; charset=ISO-8859-1 OK. I made the suggested changes and I got the following errors. Please note that I am displaying only the last few records: socket.c: In function 'socket_s_ip_address_list': socket.c:1507:5: warning: implicit declaration of function 'getifaddrs' [-Wimplicit-function-declaration] 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-declaration] 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. *ALSO:* I try Ruby 2.0.0-p0 and got the following error: [nim]:root:/export/software/other_software/ruby_2.0.0_p0/ruby-2.0.0-p0 # ./configure *./configure[2783]: syntax error at line 19075 : `(' unexpected* Thank you On Thu, Feb 28, 2013 at 9:28 AM, Kubo Takehiro wrote: > On Thu, Feb 28, 2013 at 9:09 AM, Ryan Davis > wrote: > > > > On Feb 27, 2013, at 14:21 , Kubo Takehiro wrote: > > > >> On Thu, Feb 28, 2013 at 6:43 AM, Ryan Davis > wrote: > >>> You can see the T entry for _Init_dot. I'm guessing you have that. Why > you're trying to pick up Init_dot.dot instead of Init_dot is strange and > points at the loader not assembling the right name to begin with. > >> > >> That's because the configure script set "DLDFLAGS='-eInit_$(TARGET)'" > on AIX > >> and mkmf.rb creates Makefile which contains "TARGET = dot.dot". > >> > >> IMO, one line in configure.in should be changed as follows: [...] > > > > can you provide that in unified diff format so we can more cleanly apply > it? > > I found that it had already fixed in ruby 2.0.0. > http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/36338 > http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/36432 > http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/36502 > Backporting them to ruby_1_9_3 branch will be better than applying my > change. > > -- Ruby Student --047d7bdc9c104a2a8604d6f21d81 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK. I made the suggested changes and I got the following errors. Please not= e that I am displaying only the last few records:
socket.c: In fun= ction 'socket_s_ip_address_list':
socket.c:1507:5: warnin= g: implicit declaration of function 'getifaddrs' [-Wimplicit-functi= on-declaration]
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 'free= ifaddrs' [-Wimplicit-function-declaration]
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code f= rom the last command is 2.


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

Stop.

ALSO:
I try Ruby 2.0.0-p0 and got the following error:
[nim]:root:/export/software/other_software/ruby_2.0.0_p0/ruby-2.0.0-p0 # ./= configure
./configure[2783]: syntax error at line 19075 : `(&#= 39; unexpected

Thank you

On Thu, Feb 28, 2013 at 9:28 AM, Kubo Takehiro <kubo@jiubao.org> wrote:
On Thu, Feb 28, 2013 at 9:09 AM, Ry= an Davis <ryand-ruby@zenspid= er.com> wrote:
>
> On Feb 27, 2013, at 14:21 , Kubo Takehiro <kubo@jiubao.org> wrote:
>
>> On Thu, Feb 28, 2013 at 6:43 AM, Ryan Davis <ryand-ruby@zenspider.com> wrote:
>>> You can see the T entry for _Init_dot. I'm guessing you ha= ve that. Why you're trying to pick up Init_dot.dot instead of Init_dot = is strange and points at the loader not assembling the right name to begin = with.
>>
>> That's because the configure script set "DLDFLAGS=3D'= -eInit_$(TARGET)'" on AIX
>> and mkmf.rb creates Makefile which contains "TARGET =3D dot.d= ot".
>>
>> IMO, one line in configure.in should be changed as follows: [...]
>
> can you provide that in unified diff format so we can more cleanly app= ly it?

I found that it had already fixed in ruby 2.0.0.
=A0 http://bugs.ruby-lang.org/projects/ruby-tru= nk/repository/revisions/36338
=A0 http://bugs.ruby-lang.org/projects/ruby-tru= nk/repository/revisions/36432
=A0 http://bugs.ruby-lang.org/projects/ruby-tru= nk/repository/revisions/36502
Backporting them to ruby_1_9_3 branch will be better than applying my chang= e.




--
Ruby Student
--047d7bdc9c104a2a8604d6f21d81--