Project

General

Profile

Bug #15097

Gem install fails on Ruby 2.5.1 with Cygwin (get_dns_server_list undefined)

Added by caspercg (Casper G) over 1 year ago. Updated over 1 year ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.1p57 (2018-03-29 revision 63029) [i386-cygwin]
[ruby-core:88932]
Tags:

Description

Compiled and installed Ruby 2.5.1 on Cygwin, and now gem install fails with:

ERROR:  While executing gem ... (NameError)
    undefined local variable or method `get_dns_server_list' for Win32::Resolv:Module

While building Ruby I got the following warning:

win32/resolv:
        Could not be configured. It will not be installed.
        Check ext/win32/resolv/mkmf.log for more details.

The error in mkmf.log is:

/ruby-2.5.1/ext/win32/resolv/conftest.c:14: undefined reference to `GetNetworkParams'
collect2: error: ld returned 1 exit status

The mkmf.log is also attached.

Could not figure out how to fix this problem.
Is 2.5.1 not compatible with Cygwin?


Files

mkmf.log (3.96 KB) mkmf.log ext/win32/resolv/mkmf.log caspercg (Casper G), 09/10/2018 03:44 AM

Also available in: Atom PDF