From: Yutaka Kanemoto Date: 2007-05-02T20:18:19+09:00 Subject: Re: Ruby load problem on AIX Hi, Thank you very much for catching this thread. > > - DLDFLAGS='-Wl,-G -eInit_$(TARGET)' > > - LDFLAGS='-Wl,-brtl -Wl,-bE:ruby.imp' > > + DLDFLAGS="${DLDFLAGS} -Wl,-G -Wl,-bnoentry -Wl,-bexpall" > > + LDFLAGS="${LDFLAGS} -Wl,-brtl -Wl,-bE:ruby.imp" > > I don't know about -bnoentry and -bexpall options, are they > preferable? To follow existing code which uses dlopen(), I omitted -e option. Then, these options are used to supress some error message. > > -#if defined(_AIX) && ! defined(_IA64) > > -static void > > -aix_loaderror(const char *pathname) > > Do all AIX versions support dlopen()? If not, these probably > should not be removed but be changed the condition. I have AIX 4.3.3 machine which is oldest in my test environment, and it actually has dlopen(), but I think the older version AIX would not have dlopen() (or broken?). I had prioritized the current supported versions as matz said ( see [ruby-dev:29154]). I should have been more carefully to support old versions. Please give me some time to make another patch? I have noticed the linker_flag variable you made. I will make new patch against ruby_1_8 branch or trunk. Since I will test on various AIX versions, it will take a little... Thanks and best regards, -- Yutaka KANEMOTO http://d.hatena.ne.jp/kinpoco/