Project

General

Profile

Actions

Bug #10632

closed

2.2rc1 Fails to Compile with Mingw64 NET_LUID

Added by cfis (Charlie Savage) over 9 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
ruby 2.1.5p273 (2014-11-13 revision 48405) [x64-mingw32]
[ruby-core:<unknown>]

Description

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

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,
                 from c:/mingw64/mingw64/x86_64-w64-mingw32/include/iphlpapi.h:15,
                 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 of 'NET_LUID' was here
 } NET_LUID, *PNET_LUID;

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

$ ./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

Let me know if you need additional info.

Updated by luislavena (Luis Lavena) over 9 years ago

Can you provide specifics about the version of mingw-w64 you used?

You say "4.9.2", but there are many builds of it. Care to provide the link to the compiler you downloaded?

Thank you.

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback
  • Assignee set to windows
  • Priority changed from 5 to Normal

NET_LUID type should be checked by configure.
Could you show config.log file?

Actions #3

Updated by cfis (Charlie Savage) about 9 years ago

This seems to have been fixed on the released version, so it can be closed.

Actions #4

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.2.0)
Actions #5

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0