[#39222] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232 — 和弥 寺元 <redmine@...>

Bug #2036: AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

13 messages 2009/09/03

[#39249] [Bug #2060] DLをCからRubyに変換する事を勧めます — Aaron Patterson <redmine@...>

Bug #2060: DLをCからRubyに変換する事を勧めます

10 messages 2009/09/07

[#39282] [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — takeru sasaki <redmine@...>

チケット #2067 が更新されました。 (by takeru sasaki)

15 messages 2009/09/10
[#39283] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — Yukihiro Matsumoto <matz@...> 2009/09/10

まつもと ゆきひろです

[#39284] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — Nobuyoshi Nakada <nobu@...> 2009/09/10

なかだです。

[#39297] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — Yukihiro Matsumoto <matz@...> 2009/09/10

まつもと ゆきひろです

[#39298] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — Tanaka Akira <akr@...> 2009/09/10

In article <E1MliJq-0000yc-4o@x61.netlab.jp>,

[#39302] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — takeru sasaki <sasaki.takeru@...> 2009/09/10

言いだしっぺの佐々木です。

[#39307] Re: [Bug #2067] bodyが大きいエラーページをopen-uriで取得するとfdがリークしている — Yukihiro Matsumoto <matz@...> 2009/09/10

まつもと ゆきひろです

[#39345] [Bug #2111] Error:test_rm_f(TestFileUtils) — Kazuhiro NISHIYAMA <redmine@...>

Bug #2111: Error:test_rm_f(TestFileUtils)

11 messages 2009/09/17

[#39352] [ruby19] Thread 切替えが異常に遅い? — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

12 messages 2009/09/20

[#39367] Almost endless loop of BigMath::atan(x) when x.abs >= 1 — "Masahiro Kanai (CanI)" <cani.m.61st@...>

金井 仁弘と申します。

13 messages 2009/09/23
[#39980] Re: Almost endless loop of BigMath::atan(x) when x.abs >= 1 — TOYOFUKU Chikanobu <nobu_toyofuku@...> 2010/01/07

豊福です。遅い反応ですが。

[#39982] Re: Almost endless loop of BigMath::atan(x) when x.abs >= 1 — TOYOFUKU Chikanobu <nobu_toyofuku@...> 2010/01/07

豊福です。

[#39388] Re: [ruby-cvs:32331] Ruby:r25113 (trunk): String#inspect's encoding should be fixed. — "Martin J. Dürst" <duerst@...>

成瀬さん、こんにちは。

9 messages 2009/09/28

[ruby-dev:39351] コンパイルエラー

From: Yutaka Kanemoto <kinpoco@...>
Date: 2009-09-18 18:31:42 UTC
List: ruby-dev #39351
金本と申します。

今trunkをAIXでコンパイルするとdln.cのコンパイルに失敗します。
% make
gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses
-Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -I.
-I.ext/include/powerpc-aix5.3.0.0 -I../trunk/include -I../trunk
-DRUBY_EXPORT   -o dln.o -c ../trunk/dln.c
../trunk/dln.c: In function 'dln_strerror':
../trunk/dln.c:1145: warning: no return statement in function returning non-void
../trunk/dln.c: In function 'aix_loaderror':
../trunk/dln.c:1159: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1160: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1161: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1163: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1164: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1166: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1167: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1168: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1169: warning: initialization discards qualifiers from
pointer target type
../trunk/dln.c:1179: error: 'L_GETMESSAGE' undeclared (first use in
this function)
../trunk/dln.c:1179: error: (Each undeclared identifier is reported only once
../trunk/dln.c:1179: error: for each function it appears in.)
make: *** [dln.o] Error 1

添付のパッチでエラーとワーニングを消せます。

先日コミット権をいただきました。
コミットしてもよろしいでしょうか?

今後ともよろしくお願いいたします。
-- 
Yutaka KANEMOTO
http://d.hatena.ne.jp/kinpoco/

Attachments (1)

dln.diff (1.38 KB, text/x-diff)
Index: dln.c
===================================================================
--- dln.c	(revision 25006)
+++ dln.c	(working copy)
@@ -1094,6 +1094,7 @@
 #include <windows.h>
 #endif
 
+#if ! defined _AIX
 static const char *
 dln_strerror(void)
 {
@@ -1143,8 +1144,8 @@
     return message;
 #endif
 }
+#endif
 
-
 #if defined(_AIX) && ! defined(_IA64)
 static void
 aix_loaderror(const char *pathname)
@@ -1154,7 +1155,7 @@
 
     static const struct errtab {
 	int errnum;
-	char *errstr;
+	const char * errstr;
     } load_errtab[] = {
 	{L_ERROR_TOOMANY,	"too many errors, rest skipped."},
 	{L_ERROR_NOLIB,		"can't load library:"},
@@ -1176,7 +1177,7 @@
     snprintf(errbuf, sizeof(errbuf), "load failed - %s ", pathname);
 
     message[0] = NULL;
-    if (!loadquery(L_GETMESSAGE, &message[0], sizeof(message)))
+    if (!loadquery(L_GETMESSAGES, &message[0], sizeof(message)))
 	ERRBUF_APPEND(strerror(errno));
     for(i = 0; message[i] && *message[i]; i++) {
 	int nerr = atoi(message[i]);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25006)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+Sat Sep 19 03:08:31 2009  Yutaka Kanemoto  <kanemoto@ruby-lang.org>
+
+	* dln.c: fixed typo. suppress warnings.
+
 Sat Sep 19 00:02:19 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 
 	* include/ruby/ruby.h (rb_type): forward declaration to suppress a

In This Thread

Prev Next