Project

General

Profile

Bug #10632

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

Ruby 2.1.* compile correctly with mingw64.    Ruby 2.2rc1 does not.    The error is: 

 ~~~ <pre> 
 gcc version 4.9.2 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 
 compiling win32/win32.c 
 win32/win32.c:3889:7: error: conflicting types for 'NET_LUID' 
      } NET_LUID; 
        ^ 
 In file included from c:/mingw64/mingw64/x86_64-w64-mingw32/include/iptypes.h:14:0, c:/mingw64/mingw64/x86_64-w64-mingw32/include/iptypes.h:14 
 :0, 
                  from c:/mingw64/mingw64/x86_64-w64-mingw32/include/iphlpapi.h:15, c:/mingw64/mingw64/x86_64-w64-mingw32/include/iphlpapi.h:1 
 5, 
                  from ./include/ruby/win32.h:41, 
                  from ./include/ruby/defines.h:163, 
                  from ./include/ruby/ruby.h:29, 
                  from win32/win32.c:24: 
 c:/mingw64/mingw64/x86_64-w64-mingw32/include/ifdef.h:93:3: note: previous declaration decla 
 ration of 'NET_LUID' was here 
  } NET_LUID, *PNET_LUID; 
 ~~~ </pre> 

 My config line (same I use for ruby 2.1.x): 

 ~~~ <pre> 
 $ ./configure --prefix=/ --enable-shared=yes CPPFLAGS=-Ic:/mingw64/mingw64/local/include LDFLAGS=-Lc:/mingw64/mingw64/local/lib --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 
 ~~~ </pre> 

 Let me know if you need additional info.

Back