Hi Nakada-san,

I've tried to register on redmine to be able to log these things as 
bugs, but for some reason it won't let me in.  The forgot password page 
accepts my email address, so it would seem that I'm registered, but I 
don't then receive an email indicating a new password or how to get back 
in.

The patch you provided works fine.  Thanks for that.

The missing symbols reported when loading encdb.so were rb_encdb_declare 
and rb_encdb_alias although there were other errors.  The missing 
symbols and other errors were found by adding the follwoing lines to 
aix_loaderror in dln.c:

> {
>     int pid, st;
>     if (pid = fork()) {
>       waitpid(pid, &st, 0);
>     }
>     else {
>       message[0] = "execerror";
>       message[1] = pathname;
>       execvp("/usr/sbin/execerror",message);
>     }
> }

This produces better output than the original code in the aix_loaderror 
function:

> exec(): 0509-036 Cannot load program /nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/encdb.so because of the following errors:
>         0509-161 There is not enough memory for the process.
> rtld: 0712-001 Symbol rb_encdb_declare/nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/encdb.so was referenced
>       from module /nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/encdb.so(), but a runtime definition
>       of the symbol was not found.
> rtld: 0712-001 Symbol rb_encdb_alias was referenced
>       from module /nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/encdb.so(), but a runtime definition
>       of the symbol was not found.
> rtld: 0712-002 fatal error: exiting.
>         0509-021 Additional errors occurred but are not reported.

I've noticed that the prelude code ignores the errors reported when 
loading encdb.so.  There are other symbols missing when loading 
euc_jp.so:

> exec(): 0509-036 Cannot load program /nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/euc_jp.so because of the following errors:
> rtld: 0712-001 Symbol rb_enc_register was referenced
>       from module /nfs/home/gagnew/aix/ruby-1.9.1-p0/.ext/powerpc-aix5.3.0.0/enc/euc_jp.so(), but a runtime definition
>       of the symbol was not found.
> rtld: 0712-002 fatal error: exiting.

Cheers,
Gra.
-- 
Posted via http://www.ruby-forum.com/.