From: nobuyoshi nakada Date: 2005-07-25T13:06:41+09:00 Subject: [ruby-dev:26607] Re: SystemCallError.new("abc") => # なかだです。 At Mon, 25 Jul 2005 11:39:57 +0900, H.Yamamoto wrote in [ruby-dev:26604]: > 現在、windows でコンパイルできなくなっています。 DEPRECATED()の定義をNOINLINE()のところに移動させたほうがいいよ うに思います。 > 今度はこうなります。たぶん、ソースのあるディレクトリと違うディレクトリで > ビルドできなくなっていると思うのですが、直し方がわからないので報告だけ。 > > bcc32 -q -tWR -tWC -O -6 -w- -wsus -wcpt -wdup -wext -wrng -wrpt -wzdi > -DRUBY_EXPORT -I. -I. -I../ruby/ -I../ruby/missing -c ..\ruby\sjis.c > ..\ruby\sjis.c: > Fatal: 'missing/vsnprintf.c' does not exist - don't know how to make it Borland makeはディレクトリつきのファイル名はVPATHを見てくれない んですかね。 Index: common.mk =================================================================== RCS file: /cvs/ruby/src/ruby/common.mk,v retrieving revision 1.18 diff -U2 -p -u -r1.18 common.mk --- common.mk 23 Jul 2005 01:02:10 -0000 1.18 +++ common.mk 25 Jul 2005 04:05:17 -0000 @@ -302,5 +302,5 @@ sjis.$(OBJEXT): {$(VPATH)}sjis.c {$(VPAT {$(VPATH)}oniguruma.h config.h sprintf.$(OBJEXT): {$(VPATH)}sprintf.c {$(VPATH)}ruby.h config.h \ - {$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}missing/vsnprintf.c + {$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}vsnprintf.c st.$(OBJEXT): {$(VPATH)}st.c config.h {$(VPATH)}st.h string.$(OBJEXT): {$(VPATH)}string.c {$(VPATH)}ruby.h config.h \ Index: ruby.h =================================================================== RCS file: /cvs/ruby/src/ruby/ruby.h,v retrieving revision 1.115 diff -U2 -p -r1.115 ruby.h --- ruby.h 2 Jul 2005 08:11:24 -0000 1.115 +++ ruby.h 25 Jul 2005 03:29:33 -0000 @@ -21,4 +21,11 @@ extern "C" { #include "config.h" +#define NORETURN_STYLE_NEW 1 +#ifndef NORETURN +# define NORETURN(x) x +#endif +#ifndef DEPRECATED +# define DEPRECATED(x) x +#endif #ifndef NOINLINE # define NOINLINE(x) x @@ -58,12 +65,4 @@ extern "C" { #endif -#define NORETURN_STYLE_NEW 1 -#ifndef NORETURN -# define NORETURN(x) x -#endif -#ifndef DEPRECATED -# define DEPRECATED(x) x -#endif - #if defined(HAVE_ALLOCA_H) #include Index: win32/Makefile.sub =================================================================== RCS file: /cvs/ruby/src/ruby/win32/Makefile.sub,v retrieving revision 1.97 diff -U2 -p -r1.97 Makefile.sub --- win32/Makefile.sub 23 May 2005 06:10:32 -0000 1.97 +++ win32/Makefile.sub 25 Jul 2005 03:42:45 -0000 @@ -252,5 +252,4 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ #define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 -#define HAVE_VSNPRINTF 1 #define HAVE_ISNAN 1 #define HAVE_FINITE 1 Index: wince/Makefile.sub =================================================================== RCS file: /cvs/ruby/src/ruby/wince/Makefile.sub,v retrieving revision 1.40 diff -U2 -p -r1.40 Makefile.sub --- wince/Makefile.sub 16 May 2005 13:22:05 -0000 1.40 +++ wince/Makefile.sub 25 Jul 2005 03:42:45 -0000 @@ -252,5 +252,4 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/wince/ #define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 -#define HAVE_VSNPRINTF 1 #define HAVE_FINITE 1 #define HAVE_HYPOT 1 -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦