[#7064] How to put version number of shared library? — Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp>
早坂@会津大学です。
4 messages
1999/06/02
[#7082] [BUG] unpack('m') — 民斗 <tommy@...>
民斗です。
6 messages
1999/06/07
[#7091] [BUG?] load in thread — keiju@... (Keiju ISHITSUKA)
けいじゅ@日本ラショナルソフトウェアです.
7 messages
1999/06/09
[#7092] Re: [BUG?] load in thread
— matz@... (Yukihiro Matsumoto)
1999/06/09
まつもと ゆきひろです
[#7102] Ruby 1.3.4-990611 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990611 is out, check out:
20 messages
1999/06/11
[#7108] Re: Ruby 1.3.4-990611
— Koji Arai <JCA02266@...>
1999/06/12
新井です。
[#7123] Re: Ruby 1.3.4-990611
— nagai@...
1999/06/16
永井@知能.九工大です.
[#7110] --enable-shared support — Katsuyuki Komatsu <komatsu@...>
小松です。
11 messages
1999/06/14
[#7111] Re: --enable-shared support
— WATANABE Tetsuya <tetsu@...>
1999/06/15
渡辺哲也です。
[#7173] [BUG] <<`HERE_DOC` — Koji Arai <JCA02266@...>
新井です。
7 messages
1999/06/22
[#7178] [PATCH] rubydb3x.el, ruby-mode.el — nobu.nakada@...
中田です。
7 messages
1999/06/22
[#7181] acknowledgement — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
6 messages
1999/06/23
[#7210] Ruby 1.3.4-990624 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990624 is out, check out:
7 messages
1999/06/24
[#7223] Ruby 1.3.4-990625 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990625 is out, check out:
14 messages
1999/06/25
[#7224] -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp>
1999/06/25
早坂@会津大学です。
[#7225] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7226] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7227] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7253] Re: Ruby 1.3.4-990625 — SHIROYAMA Takayuki <psi@...>
9 messages
1999/06/29
[#7258] TkVariable — Koji Arai <JCA02266@...>
新井です。
6 messages
1999/06/29
[ruby-dev:7071] [PATCH] AIX mod_ruby support
From:
Katsuyuki Komatsu <komatsu@...>
Date:
1999-06-03 01:13:27 UTC
List:
ruby-dev #7071
小松です。
Perl5-Porters Mailing List、
http://www.perl.org/maillist.html#p5p
のArchive、
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/
を眺めていたところ、
[DynaLoader does not work properly if perl is not the main program (AIX)]
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1999-05/msg02107.html
というのがありました。
これによるとrubyの方のdln.cで、
main_module = aix_findmain();
loadbind(0, main_module, (void*)init_fct);
としている所は、
loadbind(0, (void*)dln_load, (void*)init_fct);
で十分で、以前追加してもらったaix_findmain()は不要というかmod_ruby
サポートのためには有害であるということです。
# せっかく追加してもらったのに……
ということでパッチ。
rubyの方の動作は確認済みですが、mod_rubyの動作確認はちょっと……
Makefile.RBに修正が必要なことは分かっていますが。
Index: dln.c
===================================================================
RCS file: /home/cvs/ruby/dln.c,v
retrieving revision 1.1.1.3.2.11
diff -u -p -r1.1.1.3.2.11 dln.c
--- dln.c 1999/05/31 09:13:03 1.1.1.3.2.11
+++ dln.c 1999/06/03 01:06:18
@@ -1158,35 +1158,6 @@ dln_strerror()
#if defined(_AIX)
-static void *
-aix_findmain()
-{
- struct ld_info *lp;
- char *buf;
- int size = 4 * 1024;
- int rc;
- void *ret;
-
- if ((buf = xmalloc(size)) == NULL) {
- return NULL;
- }
- while ((rc = loadquery(L_GETINFO, buf, size)) == -1 && errno == ENOMEM) {
- free(buf);
- size += 4 * 1024;
- if ((buf = xmalloc(size)) == NULL) {
- return NULL;
- }
- }
- if (rc == -1) {
- free(buf);
- return NULL;
- }
- lp = (struct ld_info *)buf;
- ret = lp->ldinfo_dataorg;
- free(buf);
- return ret;
-}
-
static void
aix_loaderror(const char *pathname)
{
@@ -1342,19 +1313,13 @@ dln_load(file)
#if defined(_AIX)
#define DLN_DEFINED
{
- static void *main_module = NULL;
void (*init_fct)();
- if (main_module == NULL) {
- if ((main_module = aix_findmain()) == NULL) {
- aix_loaderror(file);
- }
- }
init_fct = (void(*)())load((char*)file, 1, 0);
if (init_fct == NULL) {
aix_loaderror(file);
}
- if (loadbind(0, main_module, (void*)init_fct) == -1) {
+ if (loadbind(0, (void*)dln_load, (void*)init_fct) == -1) {
aix_loaderror(file);
}
(*init_fct)();
--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>