# Fwd: \[redmine4ruby-lang:253\] \[Bug #1914\] ruby-1.9.1-p243 failed to build from source on aix 5.3 wit

**URL:** <https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444>\
**Category:** Development\
**Created:** [August 9, 2009, 3:53am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444 "2009-08-09T03:53:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [August 9, 2009, 3:53am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/1 "2009-08-09T03:53:51Z")

</div>

Redminee$B4IM}MQ%W%m%8%'%/%H$KJs9p$5$l$F$7$^$C$?$N$GE\>Aw$7$^$9!#e(B

---------- e$BE\>Aw%a%C%;!\<%8e(B ----------  
From: Joel S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
e$BF|IUe(B: 2009/08/09 7:55  
e$B7oL\>e(B: [redmine4ruby-lang:253] [Bug #1914] ruby-1.9.1-p243 failed  
to  
build from source on aix 5.3 with gcc 4.2.0  
To: removed\_email\_address@domain.invalid

Bug #1914: ruby-1.9.1-p243 failed to build from source on aix 5.3 with  
gcc 4.2.0  
[http://redmine.ruby-lang.org/issues/show/1914](http://redmine.ruby-lang.org/issues/show/1914)

e$B5/I\<\<Te(B: Joel S.  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal

Hello all,

I very fall in love of ruby programming language when I discover it  
some years ago (iirc it was release 1.6) and when in a few days, even  
thought I am not a programmer, I was able to rewrite in ruby a ksh  
script of mine about 10 time faster ;\<)

Today I would like to use it on the platform Aix which I am now in  
charge to manage as system engineer.

I reach to compile release 1.8.7-p160 and later but without kernel  
pthread support, also would I like to test 1.9 if it better support  
those native pthread.

Unfortunately, it failed to build with this first issue:  
/opt/freeware/bin/gcc -fno-strict-aliasing -gxcoff -fsigned-char  
-D\_LINUX\_SOURCE\_COMPAT -D\_REENTRANT -O2 -g -Wall -Wno-parentheses  
-I. -I.ext/include/powerpc-aix5  
.3.0.0 -I./include -I. -DRUBY\_EXPORT -D\_LINUX\_SOURCE\_COMPAT -o  
dmyext.o -c dmyext.c  
/opt/freeware/bin/gcc -fno-strict-aliasing -gxcoff -fsigned-char  
-D\_LINUX\_SOURCE\_COMPAT -D\_REENTRANT -O2 -g -Wall -Wno-parentheses  
-I. -I.ext/include/powerpc-aix5  
.3.0.0 -I./include -I. -DRUBY\_EXPORT -D\_LINUX\_SOURCE\_COMPAT -o  
encoding.o -c encoding.c  
make: Circular prelude.c ← .rbconfig.time dependency dropped.  
make: Circular prelude.c ← miniruby dependency dropped.  
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb -I.  
-rrbconfig ./tool/compile\_prelude.rb ./prelude.rb ./enc/prelude.rb .  
/gem\_prelude.rb prelude.c  
make: ./miniruby: Command not found  
make: \*\*\* [prelude.c] Error 127

With Google I read this thread:  
[http://www.ruby-forum.com/topic/135197](http://www.ruby-forum.com/topic/135197)  
well the patch aix.diff it contains and apply:

diff -Naur ruby-1.9.1-p243.orig/common.mk ruby-1.9.1-p243/common.mk  
— ruby-1.9.1-p243.orig/common.mk 2009-05-04 12:31:23.000000000  
+0000  
+++ ruby-1.9.1-p243/common.mk 2009-08-07 13:04:27.000000000 +0000  
@@ -160,8 +160,8 @@  
@$(RM) $@  
$(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY\_A)  
$(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDF  
LAGS)

-ruby.imp: $(OBJS)

- 

```
  @$(NM) -Pgp $(OBJS) | awk 'BEGIN{print "#!"};

```

$$2~/^[BD]$$/{print $$1}’ | sort -u -o $@  
+ruby.imp: $(COMMONOBJS)

- 

```
  @$(NM) -Pgp $(COMMONOBJS) | awk 'BEGIN{print "#!"};

```

$$2~/^[BD]$$/{print $$1}’ | sort -u -o $@

install: install-nodoc $(RDOCTARGET)  
install-all: install-nodoc install-doc

which help me to go a bit ahead but finaly failed as follow:

make[1]: Entering directory  
`/lppdir/stage/ruby1.9/ruby-1.9.1-p243/ext/dl’  
/opt/freeware/bin/gcc -I. -I…/…/.ext/include/powerpc-aix5.3.0.0  
-I…/…/./include -I…/…/./ext/dl -DRUBY\_EXTCONF\_H="extconf.h"  
-D\_LINUX\_SOURCE\_COMPAT -D\_LARGE\_FILES=1 -fno-strict-aliasing -gxcoff  
-fsigned-char -D\_LINUX\_SOURCE\_COMPAT -D\_REENTRANT -O2 -g -Wa  
ll -Wno-parentheses -fno-defer-pop -fno-omit-frame-pointer -o  
cfunc.o -c cfunc.c  
generating callback.h  
/lppdir/stage/ruby1.9/ruby-1.9.1-p243/.ext/powerpc-aix5.3.0.0/enc/encdb.so:  
[BUG] Segmentation fault  
ruby 1.9.1p243 (2009-07-16 revision 24175) [powerpc-aix5.3.0.0]

## – control frame ---------- c:0003 p:-134605378 s:0006 b:0006 l:000005 d:000005 TOP c:0002 p:-134599490 s:0004 b:0004 l:000003 d:000003 TOP c:0001 p:0000 s:0002 b:0002 l:00265c d:00265c TOP

– Ruby level backtrace  
information-----------------------------------------

[NOTE]  
You may encounter a bug of Ruby interpreter. Bug reports are welcome.  
For details: [http://www.ruby-lang.org/bugreport.html](http://www.ruby-lang.org/bugreport.html)

make[1]: \*\*\* [callback.h] IOT/Abort trap (core dumped)  
make[1]: Leaving directory  
`/lppdir/stage/ruby1.9/ruby-1.9.1-p243/ext/dl’  
make: \*\*\* [mkmain.sh] Error 1

Well I also read this thread related also related to 1.9 but with xlC  
compiler:  
[http://www.ruby-forum.com/topic/180444](http://www.ruby-forum.com/topic/180444)

but as I am not a programmer, I am not familiar with any gdb or dbx  
and I doesn’t understand how Graham reach to compile ruby1.9.

That said, I noticed another error in the make step:  
/opt/freeware/bin/gcc -shared -Wl,-G -Wl,-bnoentry -Wl,-bE:ruby.imp  
-Wl,-brtl -Wl,-blibpath:/opt/mce-pware/lib:/usr/lib:/lib dln.  
o encoding.o prelude.o array.o bi  
gnum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o  
eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o  
math.o numeric.o object.o pack.o  
parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o  
regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o sig  
nal.o sprintf.o st.o strftime.o s  
tring.o struct.o time.o transcode.o util.o variable.o version.o  
compile.o debug.o iseq.o vm.o vm\_dump.o thread.o cont.o ascii.o us\_  
ascii.o unicode.o utf\_8.o newline  
.o flock.o strlcpy.o strlcat.o dmyext.o -lm -lc -o libruby.so.1.9.1  
/usr/bin/w64: Not a recognized flag: L  
Usage: /usr/bin/w64 [-hlsuwX] [user]  
make: [libruby.so.1.9.1] Error 1 (ignored)

I was worry why ‘w’ was used here and see that it comes from Makefile:  
Makefile  
$(LIBRUBY\_SO):  
@-$(PRE\_LIBRUBY\_UPDATE)  
$(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS)  
$(OUTFLAG)$@  
-$(OBJCOPY) -w -L ‘Init\_\*’ $@  
@-$(MINIRUBY) -e ‘ARGV.each{|link| File.delete link if  
File.exist? link;   
File.symlink  
“$(LIBRUBY\_SO)”, link}’   
$(LIBRUBY\_ALIASES) || true

but I didn’t install binutils (I read somewhere it wasn’t recommended)  
so:

SET\_LC\_MESSAGES = env LC\_MESSAGES=C  
OBJDUMP =  
OBJCOPY =  
VCS = echo cannot  
VCSUP = $(VCS)

But this error is ‘ignored’ so may be not related to the previous  
“[BUG] Segmentation fault” above, though?

That said, all comments, advise will be welcome.

Thanks in advance,  
J.

* * *

> **[Ruby Issue Tracking System](https://redmine.ruby-lang.org)**
>
> Redmine

–  
archive-\> [http://qwik.jp/redmine4ruby-lang/145.html](http://qwik.jp/redmine4ruby-lang/145.html)  
ML-\> removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 8, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/2 "2009-09-08T19:54:04Z")

</div>

é‡‘æœ¬ã¨ç”³ã—ã¾ã™ã€‚

2009/8/9 Yugui [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Redmineç®¡ç†ç”¨ãƒ—ãƒ­ã‚¸ã‚§ã‚¯ãƒˆã«å ±å‘Šã•ã‚Œã¦ã—ã¾ã£ãŸã®ã§è»¢é€ã—ã¾ã™ã€‚

AIXã§ruby 1.9 ã‚’ä½¿ã†æ™‚ã®è©±ãŒã„ãã¤ã‹ã‚ãŒã£ã¦ã„ã‚‹ã®ã§ã™ãŒã€  
ã¨ã‚Šã‚ãˆãšæœ€åˆã«è¦‹ã¤ã‘ãŸã“ã‚Œã«èª¿ã¹ãŸã“ã¨ã‚’å ±å‘Šã•ã›ã¦ã„ãŸã ãã¾ã™ã€‚

rubyã®ã‚³ãƒ¼ãƒ‰ã®ä¸­ã§ã€dln.cã«AIXå›ºæœ‰ã®ã‚³ãƒ¼ãƒ‰ãŒã‚ã‚Šã¾ã™ã€‚  
ãŠãã‚‰ãã§ã™ãŒã€æ˜”ã®AIXã§dlopenãŒã†ã¾ãå‹•ã‹ãªã‹ã£ãŸã‹ã€ãªã‹ã£ãŸã¨ãã®ã‚‚ã®ã¨æ€ã„ã¾ã™ã€‚  
1.9ã§ã¯#1914,#2063,#2064ã®ã‚ˆã†ãªã“ã¨ãŒãŠãã‚‹ä¸€å› ã«ãªã£ã¦ã„ã¾ã™ã€‚

ã¨ã„ã†ã¨ã“ã‚ã§ææ¡ˆãªã®ã§ã™ãŒã€ã“ã®AIXå›ºæœ‰ã®ã‚³ãƒ¼ãƒ‰ã§ã¯ãªãã€ã»ã‹ã®Platformã®ã‚ˆã†ã«  
dlopenã‚’ä½¿ã†ã‚ˆã†ã«å¤‰æ›´ã™ã‚‹ã¨ã„ã†ã®ã¯ã„ã‹ãŒã§ã—ã‚‡ã†ã‹ï¼Ÿï¼Ÿ  
æœ€è¿‘ã®AIXï¼ˆã¨ã‚Šã‚ãˆãš5.2ã¨5.3ï¼‰ã§ã¯æ·»ä»˜ã®ãƒ‘ãƒƒãƒã§make testã¯ãƒ‘ã‚¹ã—ã¾ã—ãŸã€‚

ã»ã‹ã«ã‚‚èª²é¡Œã¯ãŸãã•ã‚“ã‚ã‚‹ã®ã§ã™ãŒã€ã“ã®ãƒ‘ãƒƒãƒã§ä¸Šè¿°ã®ä¸‰ã¤ã®å•é¡Œã¯ã€  
ã¨ã‚Šã‚ãˆãšæ‰‹å…ƒã§ã¯è§£æ±ºã—ã¾ã™ã€‚

nmã§ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã™ã‚‹é–¢æ•°ã‚’åˆ—æŒ™ã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã¤ãã£ã¦ãƒªãƒ³ã‚¯æ™‚ã«ä½¿ç”¨ã™ã‚‹ã“ã¨ã‚’æ­¢ã‚ã¦ã€  
-bexpallã¨ã„ã†ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä»£ã‚ã‚Šã«åˆ©ç”¨ã—ãŸã‚Šã—ã¦ã‚ã‚Šã¾ã™ã€‚#1914ã‚„#2064ã«å¯¾å¿œã§ãã¾ã™ã€‚  
ã»ã‹ã®Platformã¸ã®å½±éŸ¿ã¯ãªã„ã‚ˆã†ã«æ°—ã‚’ã¤ã‘ãŸã¤ã‚‚ã‚Šã§ã™ã€‚  
1.9.1p243ã¨trunkã¸ã®ãƒ‘ãƒƒãƒã§ã™ã€‚

ãŸã ã€è¦ã™ã‚‹ã«æ˜”ã®AIXç”¨ã®ã‚³ãƒ¼ãƒ‰ãŒãªããªã‚‹ã“ã¨ãŒã©ã†å¤ã„AIXã«å½±éŸ¿ã™ã‚‹ã‹  
ã‚ã‹ã‚Šã¾ã›ã‚“ã€‚ã‚³ãƒ¼ãƒ‰ã‚’ç”Ÿã‹ã›ã‚‹ã‚ˆã†ã«ã—ã‚ˆã†ã¨æ€ã£ãŸã®ã§ã™ãŒã€  
å¤ã„æƒ…å ±ãŒæ‰‹ã«å…¥ã‚‰ãªã‹ã£ãŸã®ã¨ã€æ‰‹ã«å…¥ã£ã¦ã‚‚è©¦ã™ç’°å¢ƒãŒãªã„ã®ã§ã€  
ã‚ãã‚‰ã‚ã¦ã—ã¾ã„ã¾ã—ãŸã€‚

ã„ã‹ãŒã§ã—ã‚‡ã†ã‹ï¼Ÿ

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 9, 2009, 2:51am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/3 "2009-09-09T02:51:28Z")

</div>

e$B$J$+$@$G$9!#e(B

At Wed, 9 Sep 2009 02:48:23 +0900,  
Yutaka K. wrote in [ruby-dev:39264]:

> rubye$B$N%3!\<%I$NCf$G!“e(Bdln.ce$B$Ke(BAIXe$B8GM-$N%3!\<%I$,$”$j$^$9!#e(B  
> e$B$_$=$i$/$G$9$,!"@N$Ne(BAIXe$B$Ge(Bdlopene$B$,$&$^$/F0$+$J$+$C$?$+!"$J$+$C$?$H$-$N$b$N$H;W$$$^$9!#e(B  
> 1.9e$B$G$Oe(B#1914,#2063,#2064e$B$N$h$&$J$3$H$,$_$-$k0l0x$K$J$C$F$$$^$9!#e(B

e$B$$$D$+$ie(Bdlopene$B$,DI2C$5$l$?$+$o$+$j$^$;$s$+!#e(B

> nme$B$G%(%/%9%]!\<%H$9$k4X?t$rNs5s$7$?%U%!%$%k$r$D$/$C$F%j%s%/;~$K;HMQ$9$k$3$H$r;\_$a$F!“e(B  
> -bexpalle$B$H$$$&%\*%W%7%g%s$rBe$o$j$KMxMQ$7$?$j$7$F$”$j$^$9!#e(B#1914e$B$de(B#2064e$B$KBP1~$G$-$^$9!#e(B  
> e$B$[$+$Ne(BPlatforme$B$X$N1F6A$O$J$$$h$&$K5$$r$D$1$?$D$b$j$G$9!#e(B

Init\_e$B$J$I$r$O$8$a$H$7$F!“8x3+$9$kI,MW$N$J$$4X?t$O$G$-$l$Pe(Bexport  
e$B$7$J$$$h$&$K$7$?$$$H;W$C$F$$$^$9!#e(BYuguie$B$5$s$K$b!“e(Binternale$B$HL@\<(e(B  
e$B$5$l$F$$$J$$4X?t$O8x3+e(BAPIe$B$H8+$J$9$h!”$H6\<$+$5$l$F$$$k$N$G!#e(B  
objcopye$B$,$J$/$F$b:Q$`$h$&$K!”%j%s%+%\*%W%7%g%s$G$G$-$k$N$G$"$l$Pe(B  
MS-Windows(e$B4^e(Bcygwin)e$B$de(BDarwine$B$N$h$&$K$=$3$G=hM}$7$?$$$N$G$9$,!#e(B

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 9, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/4 "2009-09-09T16:22:54Z")

</div>

é‡‘æœ¬ã¨ç”³ã—ã¾ã™ã€‚

ã”è¿”ç­”ã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã™ã€‚

> é‡‘æœ¬ã•ã‚“ã¯ã‚³ãƒŸãƒƒãƒˆæ¨©æ¬²ã—ã„ã§ã™ã‹ï¼Ÿ  
> ã„ãŸã ã‘ã‚‹ãªã‚‰ã¨ã¦ã‚‚ã†ã‚Œã—ã„ã§ã™ã€‚  
> ãŸã ã€ä¸­ç”°ã•ã‚“ã«å¾¡æŒ‡æ‘˜é ‚ã„ãŸã‚ˆã†ã«ã€ã‚ã‹ã£ã¦ã„ãªã„ã“ã¨ãŒã‚ã‚‹ã®ã§ã€  
> ã‚‚ã—é ‚ã‘ã¦ã‚‚åŸºæœ¬çš„ã«MLã§å•ã„åˆã‚ã›ã‚’ã—ãŸä¸Šã§ã€  
> äº†è§£ã‚’å¾—ã‚‰ã‚ŒãŸã‚‰ã‚³ãƒŸãƒƒãƒˆã®ä½œæ¥­ã¯ã“ã¡ã‚‰ã§ã™ã‚‹ã¨ã„ã†ãµã†ã«  
> ã•ã›ã¦é ‚ããŸã„ã¨æ€ã„ã¾ã™ã€‚  
> ãã‚“ãªã“ã¨ã§ã„ã„ã§ã—ã‚‡ã†ã‹ï¼Ÿ

> ã„ã¤ã‹ã‚‰dlopenãŒè¿½åŠ ã•ã‚ŒãŸã‹ã‚ã‹ã‚Šã¾ã›ã‚“ã‹ã€‚  
> AIXã®V4ã®ã©ã“ã‹ã§å…¥ã£ãŸã‚ˆã†ã§ã™ã€‚  
> 4.3.3ã‚’æ˜”è§¦ã£ãŸã¨ãã«å‹•ã„ã¦ã„ãŸãƒ—ãƒ­ã‚°ãƒ©ãƒ ã§ä½¿ã‚ã‚Œã¦ã„ãŸã¨æ€ã„ã¾ã™ã€‚  
> ruby-devã®éŽåŽ»ã®ãƒ¡ãƒ¼ãƒ«ã‚’è¦‹ã‚‹ã¨ã€ã©ã†ã‚‚4.1ã¨ã‹ã‚‚ã£ã¨å¤ã„é ƒã®ã‚ˆã†ãªæ°—ãŒã—ã¾ã™ã€‚

> Init\_ãªã©ã‚’ã¯ã˜ã‚ã¨ã—ã¦ã€å…¬é–‹ã™ã‚‹å¿…è¦ã®ãªã„é–¢æ•°ã¯ã§ãã‚Œã°export  
> ã—ãªã„ã‚ˆã†ã«ã—ãŸã„ã¨æ€ã£ã¦ã„ã¾ã™ã€‚Yuguiã•ã‚“ã«ã‚‚ã€internalã¨æ˜Žç¤º  
> ã•ã‚Œã¦ã„ãªã„é–¢æ•°ã¯å…¬é–‹APIã¨è¦‹ãªã™ã‚ˆã€ã¨è„…ã‹ã•ã‚Œã¦ã„ã‚‹ã®ã§ã€‚  
> objcopyãŒãªãã¦ã‚‚æ¸ˆã‚€ã‚ˆã†ã«ã€ãƒªãƒ³ã‚«ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã§ã§ãã‚‹ã®ã§ã‚ã‚Œã°  
> MS-Windows(å«cygwin)ã‚„Darwinã®ã‚ˆã†ã«ãã“ã§å‡¦ç†ã—ãŸã„ã®ã§ã™ãŒã€‚  
> æ·»ä»˜ã®ãƒ‘ãƒƒãƒã§ã¯ã€expallã‚’ã‚„ã‚ã¦ã€nmã®å‡ºåŠ›ã‹ã‚‰Init\_ã¤ãã®ã‚‚ã®ã‚’  
> æŠœã„ãŸãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä½œã£ã¦ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã™ã‚‹ã‚ˆã†ã«ã—ã¦ã¿ãŸã®ã§ã™ãŒã€  
> ã„ã‹ãŒã§ã—ã‚‡ã†ã‹ï¼Ÿ  
> ã¤ã„ã§ã«ä»Šå›žã¯ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆãªã®ã§ã€.expã«å¤‰ãˆã¦ã¿ã¾ã—ãŸã€‚

ã‚ˆã‚ã—ããŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 10, 2009, 12:08am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/5 "2009-09-10T00:08:54Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:39276] Re: Fwd: [redmine4ruby-lang:253] [Bug  
#1914] ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc  
4.2.0”  
on Wed, 9 Sep 2009 23:20:59 +0900, Yutaka K.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|\>e$B6bK$5$s$O%3%_%C%H8"M_$7$$$G$9$+!)e(B  
|e$B$$$?$@$1$k$J$i$H$F$b$&$l$7$$$G$9!#e(B  
|e$B$?$@!“CfED$5$s$K8f;XE&D:$$$?$h$&$K!”$o$+$C$F$$$J$$$3$H$,$"$k$N$G!"e(B  
|e$B$b$7D:$1$F$b4pK\E\*$Ke(BMLe$B$GLd$$9g$o$;$r$7$?\>e$G!"e(B  
|e$BN;2r$rF@$i$l$?$i%3%\_%C%H$N:n6H$O$3$A$i$G$9$k$H$$$&$U$&$Ke(B  
|e$B$5$;$FD:$-$?$$$H;W$$$^$9!#e(B  
|e$B$=$s$J$3$H$G$$$$$G$7$g$&$+!)e(B

e$B$b$A$m$s!#$=$NJ}$,$"$j$,$?$$$G$9!#e(B

removed\_email\_address@domain.invalid e$B$Ke(B

- e$B4uK\>$9$k%f!\<%6L\>e(B(removed\_email\_address@domain.invalid e$B$Ne(B xxxe$BItJ,e(B)
- e$B$=$N%“%I%l%9$+$iE\>Aw$9$k%”%I%l%9e(B(From:e$B$H0[$J$k\>l9ge(B)
- SSH2e$B$N8x3+80e(B

e$B$re(BGPGe$B$G=pL\>$7$FAw$C$F$/$@$5$$!#$d$dLLE]$G$9$,$h$m$7$/$\*4j$$e(B  
e$B$7$^$9!#e(B

|e$BE:IU$N%Q%C%A$G$O!"e(Bexpalle$B$r$d$a$F!"e(Bnme$B$N=PNO$+$ie(BInit\_e$B$D$-$N$b$N$re(B  
|e$BH4$$$?%U%!%$%k$r:n$C$F%(%/%9%]!\<%H$9$k$h$&$K$7$F$_$?$N$G$9$,!"e(B  
|e$B$$$+$,$G$7$g$&$+!)e(B  
|e$B$D$$$G$K:#2s$O%(%/%9%]!\<%H$J$N$G!"e(B.expe$B$KJQ$($F$_$^$7$?!#e(B  
|  
|e$B$h$m$7$/$\*4j$$$$$?$7$^$9!#e(B

e$B$I$&$7$^$7$g$&$+$M!#;d$G$3$l$r%3%_%C%H$7$F$b$+$^$$$^$;$s$,!"e(B  
e$B%3%_%C%H8"$NOC$,?J$_$=$&$J$N$G!"$4\<+J,$G%3%_%C%H$7$F$$$?$@$/e(B  
e$BJ}$,$h$$$+$b$7$l$^$;$s$M!#e(B

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 10, 2009, 5:01am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/6 "2009-09-10T05:01:00Z")

</div>

e$B$J$+$@$G$9!#e(B

e$B$^$:!"$3$Ne(Bdlopene$B$N7o$H\<!$N%7%s%%k$NOC$O$o$1$k$Y$-$G$O$J$$$+$H!#e(B

At Wed, 9 Sep 2009 23:20:59 +0900,  
Yutaka K. wrote in [ruby-dev:39276]:

> > e$B$$$D$+$ie(Bdlopene$B$,DI2C$5$l$?$+$o$+$j$^$;$s$+!#e(B  
> > AIXe$B$Ne(BV4e$B$N$I$3$+$GF~$C$?$h$&$G$9!#e(B  
> > 4.3.3e$B$r@N?($C$?$H$-$KF0$$$F$$$?%W%m%0%i%`$G;H$o$l$F$$$?$H;W$$$^$9!#e(B  
> > ruby-deve$B$N2a5n$N%a!\<%k$r8+$k$H!“$I$&$be(B4.1e$B$H$+$b$C$H8E$$:”$N$h$&$J5$$,$7$^$9!#e(B

> **[IBM AIX | Versions](https://en.wikipedia.org/wiki/IBM_AIX#Versions)**
>
> 1.AIX V7.3, December 10, 2021
> Requires POWER8 or newer CPUs |
> 2.Requires POWER8 or newer CPUs |
> 3.AIX V7.2, October 5, 2015
> Live update for Interim Fixes, Service Packs and Technology Levels – replaces the entire AIX kernel without impacting applications
> Flash based filesystem caching
> Cluster Aware AIX automation with repository replacement mechanism
> SRIOV-backed VNIC, or dedicated VNIC virtualized network adapter support
> RDSv3 over RoCE adds support of the Oracle RDSv3 protocol over t

e$B$r8+$k$H!"e(B4.1e$B$Oe(B  
1994e$BG/$G$9$M!#e(B

e$B$=$l$H!"e(B[ruby-talk:331649]e$B$N$h$&$J$3$H$be(Bdlopene$B$r;H$&$h$&$K$9$l$Pe(B  
e$BITMW$J$N$G$7$g$&$+!#e(B

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 9, 2009, 12:52am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/7 "2009-09-09T00:52:01Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:39264] Re: Fwd: [redmine4ruby-lang:253] [Bug  
#1914] ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc  
4.2.0”  
on Wed, 9 Sep 2009 02:48:23 +0900, Yutaka K.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|AIXe$B$Ge(Bruby 1.9 e$B$r;H$&;~$NOC$,$$$/$D$+$“$,$C$F$$$k$N$G$9$,!“e(B  
|e$B$H$j$”$($::G=i$K8+$D$1$?$3$l$KD4$Y$?$3$H$rJs9p$5$;$F$$$?$@$-$^$9!#e(B  
|  
|rubye$B$N%3!\<%I$NCf$G!“e(Bdln.ce$B$Ke(BAIXe$B8GM-$N%3!\<%I$,$”$j$^$9!#e(B  
|e$B$_$=$i$/$G$9$,!“@N$Ne(BAIXe$B$Ge(Bdlopene$B$,$&$^$/F0$+$J$+$C$?$+!”$J$+$C$?$H$-$N$b$N$H;W$$$^$9!#e(B  
|1.9e$B$G$Oe(B#1914,#2063,#2064e$B$N$h$&$J$3$H$,$_$-$k0l0x$K$J$C$F$$$^$9!#e(B  
|  
|e$B$H$$$&$H$3$m$GDs0F$J$N$G$9$,!”$3$Ne(BAIXe$B8GM-$N%3!\<%I$G$O$J$/!“$[$+$Ne(BPlatforme$B$N$h$&$Ke(B  
|dlopene$B$r;H$&$h$&$KJQ99$9$k$H$$$&$N$O$$$+$,$G$7$g$&$+!)!)e(B  
|e$B:G6a$Ne(BAIXe$B!J$H$j$”$($:e(B5.2e$B$He(B5.3e$B!K$G$OE:IU$N%Q%C%A$Ge(Bmake teste$B$O%Q%9$7$^$7$?!#e(B  
|  
|e$B$[$+$K$b2]Bj$O$?$/$5$s$“$k$N$G$9$,!”$3$N%Q%C%A$G\>e=R$N;0$D$NLdBj$O!“e(B  
|e$B$H$j$”$($:\<j85$G$O2r7h$7$^$9!#e(B

e$B$b$&!"8E$$e(BAIXe$B$KBP1~$9$kI,MW$O$J$$$s$G$O$J$$$G$7$g$&$+!#e(B  
e$B$3$A$i$Ge(Btrunke$B$K%3%\_%C%H$7$F$\*$-$^$9!#e(B

e$B6bK$5$s$O%3%_%C%H8"M_$7$$$G$9$+!)e(B

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 10, 2009, 5:10am UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/8 "2009-09-10T05:10:22Z")

</div>

e$B$J$+$@$G$9!#e(B

At Wed, 9 Sep 2009 23:20:59 +0900,  
Yutaka K. wrote in [ruby-dev:39276]:

> > Init\_e$B$J$I$r$O$8$a$H$7$F!“8x3+$9$kI,MW$N$J$$4X?t$O$G$-$l$Pe(Bexport  
> > e$B$7$J$$$h$&$K$7$?$$$H;W$C$F$$$^$9!#e(BYuguie$B$5$s$K$b!“e(Binternale$B$HL@\<(e(B  
> > e$B$5$l$F$$$J$$4X?t$O8x3+e(BAPIe$B$H8+$J$9$h!”$H6\<$+$5$l$F$$$k$N$G!#e(B  
> > objcopye$B$,$J$/$F$b:Q$`$h$&$K!”%j%s%+%\*%W%7%g%s$G$G$-$k$N$G$"$l$Pe(B  
> > MS-Windows(e$B4^e(Bcygwin)e$B$de(BDarwine$B$N$h$&$K$=$3$G=hM}$7$?$$$N$G$9$,!#e(B  
> > e$BE:IU$N%Q%C%A$G$O!"e(Bexpalle$B$r$d$a$F!"e(Bnme$B$N=PNO$+$ie(BInit\_e$B$D$-$N$b$N$re(B  
> > e$BH4$$$?%U%!%$%k$r:n$C$F%(%/%9%]!\<%H$9$k$h$&$K$7$F$_$?$N$G$9$,!"e(B  
> > e$B$$$+$,$G$7$g$&$+!)e(B  
> > e$B$D$$$G$K:#2s$O%(%/%9%]!\<%H$J$N$G!"e(B.expe$B$KJQ$($F$_$^$7$?!#e(B

e$B$3$l$@$H!"e(BLIBRUBY\_DLDFLAGSe$B$K$Oe(B-bexpalle$B$,$D$$$Fe(B-bE:${ARCHFILE}e$B$,e(B  
e$B4^$^$l$J$/$J$k$h$&$K8+$($^$9!#e(B

gcce$B$J$ie(B-gxcoffe$B$r;XDj$7$F$$$^$9$,!“e(Bman  
gcce$B$G$O$J$s$H$J$/$I$3$Ge(B  
e$B$be(B-ggdbe$B$r;XDj$7$F$\*$1$P$h$5$=$&$J5$$b$7$J$/$b$”$j$^$;$s!#e(B

e$B$A$J$\_$K!“e(B-bEe$B$K;XDj$9$k%7%s%%k$C$F!”%G!\<%?$@$1$8$c$J$/$F%F%-%9e(B  
e$B%H$K$D$$$F$bM-8z$J$s$G$7$g$&$+!#:#$N$H$3$m%F%-%9%H%7%s%%k$OF~$le(B  
e$B$F$$$J$$$O$:$J$N$G!"$b$7$+$7$?$ie(B\_Init\_e$B$D$-$rF~$l$F$bF~$l$J$/$F$be(B  
e$B%"%/%;%9$G$-$F$7$^$&$H$+!#e(B

# Index: configure.in

— configure.in (revision 24823)  
+++ configure.in (working copy)  
@@ -240,11 +240,17 @@ AC\_PROG\_CC  
AC\_PROG\_CXX  
AC\_PROG\_GCC\_TRADITIONAL  
-test $ac\_cv\_prog\_cc\_g = yes && : ${debugflags=-g}  
if test “$GCC” = yes; then  
linker\_flag=-Wl,  
: ${optflags=-O3}

- case “$target\_os” in
- 

```
 when(aix*)

```

- : ${debugflags=-gxcoff};;
- 

```
 when(linux*|cygwin*|mingw*|darwin*)

```

- : ${debugflags=-ggdb};;
- esac  
else  
linker\_flag=  
fi  
+test $ac\_cv\_prog\_cc\_g = yes && : ${debugflags=-g}

RUBY\_PROG\_GNU\_LD  
@@ -1606,4 +1612,7 @@ when(linux\* | gnu\* | k_bsd_-gnu | bsdi\*  
LDFLAGS="$LDFLAGS -rdynamic"  
fi;;  
+when(aix\*)

- LDFLAGS="$LDFLAGS ${linker\_flag}-bmaxdata:0x80000000"
- ;;  
esac  
LIBEXT=a  
@@ -1746,7 +1755,7 @@ if test “$with\_dln\_a\_out” != yes; then  
LDSHARED="$LDSHARED ${linker\_flag}-G"  
DLDFLAGS=’-eInit\_$(TARGET)’

- 

```
 XLDFLAGS="${linker_flag}-bE:ruby.imp ${linker_flag}-brtl"

```

- 

```
 XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl"
 XLDFLAGS="$XLDFLAGS 

```

${linker\_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}"

- 

```
 : ${ARCHFILE="ruby.imp"}

```

- 

```
 : ${ARCHFILE="ruby.exp"}
                   TRY_LINK='$(CC) $(LDFLAGS) -oconftest 

```

# $(INCFLAGS) -I$(hdrdir) $(CPPFLAGS)’ TRY\_LINK="$TRY\_LINK"’ $(CFLAGS) $(src) $(LIBPATH) $(LOCAL\_LIBS) $(LIBS)’ Index: common.mk

— common.mk (revision 24823)  
+++ common.mk (working copy)  
@@ -170,6 +170,8 @@ $(STATIC\_RUBY)$(EXEEXT): $(MAINOBJ) $(DL  
$(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY\_A)  
$(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)

-ruby.imp: $(EXPORTOBJS)

- @$(NM) -Pgp $(EXPORTOBJS) | awk ‘BEGIN{print “#!”};  
$$2~/^[BD]$$/{print $$1}’ | sort -u -o $@  
+ruby.exp: $(EXPORTOBJS)

- @$(NM) -Pgp $(EXPORTOBJS) | \
- awk ‘BEGIN{print “#!”}; $$2~/^[B-DST]$$/&&$$1!~/^_Init_/{print $$1}’  
| \
- sort -u -o $@

install: install-nodoc $(RDOCTARGET)

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 10, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/9 "2009-09-10T19:01:43Z")

</div>

é‡‘æœ¬ã§ã™ã€‚

2009/9/10 Nobuyoshi N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> ãªã‹ã ã§ã™ã€‚  
> ã“ã‚Œã ã¨ã€LIBRUBY\_DLDFLAGSã«ã¯-bexpallãŒã¤ã„ã¦-bE:${ARCHFILE}ãŒ  
> å«ã¾ã‚Œãªããªã‚‹ã‚ˆã†ã«è¦‹ãˆã¾ã™ã€‚  
> ã™ã¿ã¾ã›ã‚“ã€‚è¦‹è½ã¨ã—ã¦ã„ã¾ã—ãŸã€‚  
> æ·»ä»˜ã®ãƒ‘ãƒƒãƒã§ã¯å‰Šã£ã¦ã‚ã‚Šã¾ã™ã€‚

> gccãªã‚‰-gxcoffã‚’æŒ‡å®šã—ã¦ã„ã¾ã™ãŒã€man gccã§ã¯ãªã‚“ã¨ãªãã©ã“ã§  
> ã‚‚-ggdbã‚’æŒ‡å®šã—ã¦ãŠã‘ã°ã‚ˆã•ãã†ãªæ°—ã‚‚ã—ãªãã‚‚ã‚ã‚Šã¾ã›ã‚“ã€‚  
> ãªãœã‹dbxã—ã‹é ­ã«ãªã‹ã£ãŸã®ã§ã€ãŸã‚ã—ã«gdbã‚’ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã—ã¦ã¿ãŸã®ã§ã™ãŒã€  
> ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ãŒå¤±æ•—ã—ã¾ã—ãŸã€‚  
> -ggdbã§ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã—ã¦dbxã‹ã‚‰èª­ã‚“ã§ã¿ãŸã®ã§ã™ãŒã€ãœã‚“ãœã‚“æƒ…å ±å–ã‚Œã¾ã›ã‚“ã§ã—ãŸã€‚

> ã¡ãªã¿ã«ã€-bEã«æŒ‡å®šã™ã‚‹ã‚·ãƒ³ãƒœãƒ«ã£ã¦ã€ãƒ‡ãƒ¼ã‚¿ã ã‘ã˜ã‚ƒãªãã¦ãƒ†ã‚­ã‚¹  
> ãƒˆã«ã¤ã„ã¦ã‚‚æœ‰åŠ¹ãªã‚“ã§ã—ã‚‡ã†ã‹ã€‚ä»Šã®ã¨ã“ã‚ãƒ†ã‚­ã‚¹ãƒˆã‚·ãƒ³ãƒœãƒ«ã¯å…¥ã‚Œ  
> ã¦ã„ãªã„ã¯ãšãªã®ã§ã€ã‚‚ã—ã‹ã—ãŸã‚‰\_Init\_ã¤ãã‚’å…¥ã‚Œã¦ã‚‚å…¥ã‚Œãªãã¦ã‚‚  
> ã‚¢ã‚¯ã‚»ã‚¹ã§ãã¦ã—ã¾ã†ã¨ã‹ã€‚  
> ç°¡å˜ãªãƒ—ãƒ­ã‚°ãƒ©ãƒ æ›¸ã„ã¦è©¦ã—ãŸã®ã§ã™ãŒã€ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã«ã‚ˆã£ã¦  
> ãã†ãªã‚‹å ´åˆãŒã‚ã‚‹ã‚ˆã†ã§ã™ã€‚  
> ã™ããªãã¨ã‚‚ldã®-Gã¨ã„ã†ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¤ãã§ãƒ©ã‚¤ãƒ–ãƒ©ãƒªã‚’ä½œã‚‹ã¨ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã—ã¦ã„ãªã„é–¢æ•°ã¨ã¯  
> ãƒªãƒ³ã‚¯ã§ãã¾ã›ã‚“ã§ã—ãŸã€‚

1.9.1p243ã¯å˜ã«ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã—ã¦ã‚‚  
make: Circular .rbconfig.time ← miniruby dependency dropped.  
make: ./miniruby: Command not found  
make: \*\*\* [.rbconfig.time] Error 127  
ãŒã§ã¦ã—ã¾ã£ã¦#2064ã®ã¨ã“ã‚ã¾ã§ã„ã‹ãªã„ã®ã§ã€ä½•ã‹ã„ã˜ã£ãŸã‚ã¨ã®  
ç¾è±¡ã®ã‚ˆã†ã§ã™ã€‚  
ã“ã®ã‚ã¨åˆ¥ä¾¿ï¼ˆå¤šå°‘å¤§ãã„ã®ã§ç§ä¿¡ã§ï¼‰ã§nmã®å‡ºåŠ›ã‚’å‚è€ƒã®ãŸã‚ã«é€ã‚‰ã›ã¦ã„ãŸã ãã¾ã™ã€‚  
ã‚ãŸã¾ã«.ãŒã¤ã„ãŸã‚‚ã®ã‚’æŠœã‹ãªã„ã¨ãƒ¯ãƒ¼ãƒ‹ãƒ³ã‚°ãŒã§ã¾ãã£ã¦ã—ã¾ã„ã¾ã™ã€‚  
ã„ãŸã ã„ãŸãƒ‘ãƒƒãƒã‚’å°‘ã—å¤‰æ›´ã—ã¦ã¨ã‚Šã‚ãˆãšã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ãŒçµ‚äº†ã—ãŸã‚‚ã®ã‚’é€ã‚Šã¾ã™ã€‚  
ã‚·ãƒ³ãƒœãƒ«ã®ã‚¿ã‚¤ãƒ—ã¯ã“ã“ã«åˆ—æŒ™ã•ã‚Œã¦ã‚ã‚Šã¾ã™ã€‚  
[http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds4/nm.htm](http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds4/nm.htm)

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 15, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/10 "2009-09-15T13:51:18Z")

</div>

e$B%A%1%C%He(B #1914 e$B$,99?7$5$l$^$7$?!#e(B (by Joel S.)

Hello all,

Sorry but I couldn’t test all stuff published on this forum  
[http://www.ruby-forum.com/topic/193040#841466](http://www.ruby-forum.com/topic/193040#841466) just because am I out of  
office for some holiday ;\<)

That said, I couldn’t read comments because my FireFox just shows me  
garbage (I do have missed some language support, though) even though I  
don’t read Japanese at all (very sorry).

Any way, I guess to have understand that making some ‘.exp’ file is  
requested even thought I reach to build ruby without this file?

If I well understand this topic, I read this interesting thread imho:  
[http://gcc.gnu.org/ml/gcc-help/2003-07/msg00082.html](http://gcc.gnu.org/ml/gcc-help/2003-07/msg00082.html)  
where the mentioned script:  
nm -BCpg \*.o | awk ‘{ if ((($2 == “T”) || ($2 == “D”) || ($2 == “B”)) &&  
(substr($3,1,1) != “.”)) { print $3 } }’ | sort -u \> icu.exp

seems to do the same job as the ‘CreateExportList’ of xlc (the native  
AIX C compiler).

Otoh as much as I can read there are a lot of different way to create  
this ‘.exp’ file and python project have this “Modules/makexp\_aix”  
script in its src tree for this purpose.

Thanks a lot, I will try to comeback asap with test of different  
suggested patches.

## J.

[http://redmine.ruby-lang.org/issues/show/1914](http://redmine.ruby-lang.org/issues/show/1914)

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [May 5, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/11 "2010-05-05T15:54:28Z")

</div>

e$B%A%1%C%He(B #1914 e$B$,99?7$5$l$^$7$?!#e(B (by Yutaka K.)

e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B

Some issues reported here is fixed by r24482 and r25124.  
At least, building ruby(trunk) is finished successfully in my env(AIX  
5.3).

By the way, for this ‘w’ problem:

> I was worry why ‘w’ was used here and see that it comes from Makefile:  
> please install coreutils to avoid this problem at this point.  
> ftp://ftp.software.ibm.com:/aix/freeSoftware/aixtoolbox/RPMS/ppc/coreutils  
> AIX’s install command does not have -d option, and that caused this  
> message.

If crash issue still persists, please reopen this ticket with:

1. configure options
2. gcc version
3. oslevel -s

Thanks and best regards,  
Yutaka K.

* * *

[http://redmine.ruby-lang.org/issues/show/1914](http://redmine.ruby-lang.org/issues/show/1914)

---

<div class="post-metadata">

**Author:** ![Yugui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ac91a4/32.png) [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Post date:** [September 11, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/fwd-redmine4ruby-lang-253-bug-1914-ruby-1-9-1-p243-failed-to-build-from-source-on-aix-5-3-wit/173444/12 "2009-09-11T17:35:12Z")

</div>

e$B6bK$H?=$7$^$9!#e(B  
e$BJVEz$,CY$/$J$C$F$I$&$b$9$\_$^$;$s!#e(B

> e$B$^$:!"$3$Ne(Bdlopene$B$N7o$H\<!$N%7%s%%k$NOC$O$o$1$k$Y$-$G$O$J$$$+$H!#e(B  
> e$B$O$$!#$_$C$7$c$k$H$_$j$G$9!#e(B  
> e$B@hF|Aw$C$?%Q%C%A$K$bK\Bj$H30$l$kItJ,e(B(-gxcoffe$B$H$+!K$,F~$C$F$$$Fe(B  
> e$B$4LLE]$r$\*$+$1$7$F$I$&$b$9$\_$^$;$s$G$7$?!#e(B

> [IBM AIX - Wikipedia](http://en.wikipedia.org/wiki/IBM_AIX#Versions) e$B$r8+$k$H!"e(B4.1e$B$Oe(B  
> 1994e$BG/$G$9$M!#e(B  
> e$B$$$/$D$+$[$+$N%=%U%H$N%=!\<%9$r8+$F$_$?$N$G$9$,!“e(B  
> e$B$$$/$D$+$N%=%U%H$G$Oe(BAIXe$B$Ge(Bdlopene$B$r$D$+$C$F$$$J$$$N$,$”$j$^$7$?!#e(B  
> e$B#4!%#3$H$=$l0JA0$rJ,$1$F$$$k$h$&$J$N$b$"$j$^$7$?!#e(B  
> e$B$I$&$b8E$$e(BAIXe$B$r\<N$F$k$N$,G&$S$J$$5$$,$7$F$-$?$N$G!"e(B  
> e$B$A$g$C$H9M$($F$_$h$&$H;W$$$^$9!#e(B

e$B$^$?!"I8=`$Ne(BCe$B$Ne(Bincludee$B%U%!%$%k$+$i%$%s%/%k!\<%I$5$l$F$$$k%U%!%$%k$G!“e(B  
#define \_AIXVERSION\_430 1  
#define \_AIXVERSION\_431 1  
#define \_AIXVERSION\_434 1  
#define \_AIXVERSION\_510 1  
#define \_AIXVERSION\_520 1  
#define \_AIXVERSION\_530 1  
#define \_AIXVERSION\_610 1  
e$B$H$$$&$N$,$”$C$?$N$G!"8E$$$N$HF0:n$rJQ$($k$3$H$b$=$s$J$KFq$7$/$J$5$=$&$G$9!#e(B

> e$B$=$l$H!“e(B[ruby-talk:331649]e$B$N$h$&$J$3$H$be(Bdlopene$B$r;H$&$h$&$K$9$l$Pe(B  
> e$BITMW$J$N$G$7$g$&$+!#e(B  
> encoding.oe$B$N4X?t$,e(Bruby.expe$B$K$J$$$H!”\<j85$G$Oe(Bminirubye$B$,$J$\<$+%O%s%0$7$^$7$?!#e(B  
> e$B$J$N$G!"$d$C$Q$j%(%/%9%]!\<%H$5$l$F$$$J$$$H$^$:$=$&$G$9!#e(B  
> e$B\<ALd$N0U?^$r$o$+$C$F$$$^$9$G$7$g$&$+!)e(B
