Hi,

At Sat, 4 Jun 2005 01:07:01 +0900,
Nathaniel Talbott wrote in [ruby-core:05145]:
> > Nathaniel Talbott wrote in [ruby-core:05143]:
> > >   C:\_co\source\build\ruby\extensions\win32-file-0.4.2>\_co\source\build
> > > \ruby\dist\bin\ruby.exe extconf.rb
> > >   extconf.rb:18: [BUG] Segmentation fault
> > >   ruby 1.8.3 (2005-05-12) [i386-mswin32]
> > 
> > Is the line [148,0,0,0,0,swCSDVersion].pack("LLLLLa128") ?
> 
> No, the line after that:
> 
>   GetVersionEx.call(OSVERSIONINFO)

I could reproduced it using the version compiled with VC++ 7.1.


Index: ext/Win32API/Win32API.c =================================================================== RCS file: /cvs/ruby/src/ruby/ext/Win32API/Win32API.c,v retrieving revision 1.20 diff -U2 -p -r1.20 Win32API.c --- ext/Win32API/Win32API.c 4 Mar 2005 06:47:41 -0000 1.20 +++ ext/Win32API/Win32API.c 6 Jun 2005 10:47:54 -0000 @@ -138,4 +138,7 @@ Win32API_initialize(self, dllname, proc, } +#ifdef _MSC_VER +#pragma optimize("g", off) +#endif static VALUE Win32API_Call(argc, argv, obj)
-- Nobu Nakada