From: Perry Smith Date: 2012-07-15T06:58:55+09:00 Subject: [ruby-core:46482] pkg-config on aix --Apple-Mail=_45D40198-506B-4D05-9AAF-22BD6F687F18 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I put pkg-config back into my path and tried to build ruby. I'm = building ruby-1.9.3-p194 on AIX 6100-07-03-1207. The configure pass = ends with this error: > Variable 'TARGET' not defined in './ruby.tmp.pc' The ruby.tmp.pc file for AIX ends up with this line: > DLDFLAGS=3D-eInit_${TARGET} This is related to the other question(s) I had but in this case, I don't = see a way to fix this at all. I don't know pkg-config much but I'm not = seeing a way to get target dependent variables into the pkg-config .pc = file. I moved up to pkg-config 0.27. I tried 0.25 before with the same result. I tried not using pkg-config but when I try to build a ruby extension, = (event machine in this case), the mkmf is confused. It is doing a = static link but looking for the shared library -lruby. In that case, ld = will look for libruby.a but there is not one. I could create one by = hand but I'm trying to understand the direction the ruby project is = trying to take. So that is why I decided to put pkg-config back into my path and see if = I can make it work that way. But, so far, I can't. I got shared libraries working with ruby 1.9.2 but all those tricks are = not working with 1.9.3 at this point. Can someone help me understand how this is intended to work? Thank you, Perry Smith --Apple-Mail=_45D40198-506B-4D05-9AAF-22BD6F687F18 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Variable 'TARGET' not defined in = './ruby.tmp.pc'

T= he ruby.tmp.pc file for AIX ends up with this = line:

DLDFLAGS=3D-eInit_${TARGET}

This is related to the other = question(s) I had but in this case, I don't see a way to fix this at = all.  I don't know pkg-config much but I'm not seeing a way to get = target dependent variables into the pkg-config .pc = file.

I moved up to pkg-config 0.27. I tried = 0.25 before with the same result.

I tried not = using pkg-config but when I try to build a ruby extension, (event = machine in this case), the mkmf is confused.  It is doing a static = link but looking for the shared library -lruby.  In that case, ld = will look for libruby.a but there is not one.  I could create one = by hand but I'm trying to understand the direction the ruby project is = trying to take.

So that is why I decided to put = pkg-config back into my path and see if I can make it work that way. =  But, so far, I can't.

I got shared = libraries working with ruby 1.9.2 but all those tricks are not working = with 1.9.3 at this point.

Can someone help me = understand how this is intended to work?

Thank = you,
Perry Smith

= --Apple-Mail=_45D40198-506B-4D05-9AAF-22BD6F687F18--