From: Kubo Takehiro Date: 2013-02-28T07:21:47+09:00 Subject: Re: Problem building Ruby 1.9.3 patchlevel 385 under AIX 7.1 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: [aix*], [ : ${LDSHARED='$(CC)'} LDSHARED="$LDSHARED ${linker_flag}-G" DLDFLAGS='-e$(ENTRY_POINT)' # CHANGE THIS LINE XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl" and two lines in lib/mkmf.rb should be added as follows: dllib = target ? "$(TARGET).#{CONFIG['DLEXT']}" : "" entry_point = target ? "Init_#{target}".sub(/\..*\z/,'') : "" # ADD THIS LINE (1) staticlib = target ? "$(TARGET).#$LIBEXT" : "" .... TARGET = #{target} DLLIB = #{dllib} ENTRY_POINT = #{entry_point} # ADD THIS LINE (2) EXTSTATIC = #{$static || ""} STATIC_LIB = #{staticlib unless $static.nil?} I have not tested this because I don't have AIX.