https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-03-20T23:21:51ZRuby Issue Tracking SystemRuby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=772292019-03-20T23:21:51Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>I couldn't reproduce this with Mojave.</p>
<pre><code>~ > ls /usr/include/netinet6/in6.h
/usr/include/netinet6/in6.h
</code></pre>
<p>It seems your development environment issue.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=780732019-05-18T22:29:07Zfranklinyu (Franklin Yu)
<ul><li><strong>Status</strong> changed from <i>Rejected</i> to <i>Open</i></li></ul><p><a class="user active user-mention" href="https://redmine.ruby-lang.org/users/572">@hsbt (Hiroshi SHIBATA)</a> That location has been <a href="https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035624" class="external">deprecated</a>:</p>
<blockquote>
<p>The command line tools will search the SDK for system headers by default. However, some software may fail to build correctly against the SDK and require macOS headers to be installed in the base system under /usr/include. If you are the maintainer of such software, we encourage you to update your project to work with the SDK or file a bug report for issues that are preventing you from doing so. As a workaround, an extra package is provided which will install the headers to the base system. <strong>In a future release, this package will no longer be provided.</strong></p>
</blockquote>
<p>Please be future-proof. It’s totally possible that Ruby 2.6 will break in macOS 10.15.</p>
<p>hsbt (Hiroshi SHIBATA) wrote:</p>
<blockquote>
<p>I couldn't reproduce this with Mojave.</p>
<pre><code>~ > ls /usr/include/netinet6/in6.h
/usr/include/netinet6/in6.h
</code></pre>
<p>It seems your development environment issue.</p>
</blockquote> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=780742019-05-18T22:31:44Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Do not change status field.</p>
<p>Maybe you can resolve this with <code>sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /</code></p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=780772019-05-19T07:38:01Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Rejected</i> to <i>Feedback</i></li></ul><p>That check is necessary only for very old, 6 years ago, header.<br>
It is strange that <code>IN6_IS_ADDR_UNSPECIFIED</code> code cannot compile.<br>
Could you show how it failed in mkmf.log?</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=781072019-05-21T16:16:56Zfranklinyu (Franklin Yu)
<ul></ul><p>hsbt (Hiroshi SHIBATA) wrote:</p>
<blockquote>
<p>Do not change status field.</p>
<p>Maybe you can resolve this with <code>sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /</code></p>
</blockquote>
<p>That is a <em>workaround</em>. It will break in the future. Please read the bold text in the quote. If by your definition my environment is broken, then maybe next year <em>all</em> macOS user will have broken environment.</p>
<p>nobu (Nobuyoshi Nakada) wrote:</p>
<blockquote>
<p>That check is necessary only for very old, 6 years ago, header.<br>
It is strange that <code>IN6_IS_ADDR_UNSPECIFIED</code> code cannot compile.<br>
Could you show how it failed in mkmf.log?</p>
</blockquote>
<p>I’m busy now but I will provide the log in 48 hours. Thanks for this information.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=781632019-05-23T05:11:39Zfranklinyu (Franklin Yu)
<ul><li><strong>File</strong> <a href="/attachments/7806">mkmf.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7806/mkmf.log">mkmf.log</a> added</li></ul><p>nobu (Nobuyoshi Nakada) wrote:</p>
<blockquote>
<p>That check is necessary only for very old, 6 years ago, header.<br>
It is strange that <code>IN6_IS_ADDR_UNSPECIFIED</code> code cannot compile.<br>
Could you show how it failed in mkmf.log?</p>
</blockquote>
<p>Please find attached. I was trying to install 2.6.3 version.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=781662019-05-23T06:08:44Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>From where <code>-Werror</code> and <code>-Wunused-parameter</code> came?</p>
<pre><code>"clang -I../../.ext/include/x86_64-darwin18 -I../.././include -I../.././ext/socket -I../.. -I../../. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -Wall -Wextra -Wpedantic -Wshadow -pipe -D__APPLE_USE_RFC_3542 -Werror -c conftest.c"
In file included from conftest.c:1:
In file included from ../.././include/ruby.h:33:
../.././include/ruby/ruby.h:2186:35: error: unused parameter 'allow_transient' [-Werror,-Wunused-parameter]
rb_array_ptr_use_end(VALUE a, int allow_transient)
</code></pre> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=781672019-05-23T08:33:13Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>ruby -v</strong> deleted (<del><i>2.6.0</i></del>)</li><li><strong>Backport</strong> deleted (<del><i>2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN</i></del>)</li></ul> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=781682019-05-23T10:15:29Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Suppress paranoid warnings for external/3rd-party libraries [Feature #15665]" href="https://redmine.ruby-lang.org/projects/ruby-master/repository/git/revisions/fe3ff5afb07e171fd950623c69abfbabbb2762a3">git|fe3ff5afb07e171fd950623c69abfbabbb2762a3</a>.</p>
<hr>
<p>Suppress paranoid warnings for external/3rd-party libraries</p>
<p>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Cannot compile socket extension on Mojave (Closed)" href="https://redmine.ruby-lang.org/issues/15665">#15665</a>]</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=782752019-05-31T04:50:04Zfranklinyu (Franklin Yu)
<ul></ul><p>nobu (Nobuyoshi Nakada) wrote:</p>
<blockquote>
<p>Applied in changeset <a class="changeset" title="Suppress paranoid warnings for external/3rd-party libraries [Feature #15665]" href="https://redmine.ruby-lang.org/projects/ruby-master/repository/git/revisions/fe3ff5afb07e171fd950623c69abfbabbb2762a3">git|fe3ff5afb07e171fd950623c69abfbabbb2762a3</a>.</p>
<hr>
<p>Suppress paranoid warnings for external/3rd-party libraries</p>
<p>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Cannot compile socket extension on Mojave (Closed)" href="https://redmine.ruby-lang.org/issues/15665">#15665</a>]</p>
</blockquote>
<p>I have verified that the changeset works for 2.6 on my machine. It is currently in trunk, which would go to 2.7 eventually; would it be backported to <a href="/projects/ruby-trunk/repository/ruby_2_6">2.6 branch</a>?</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=783892019-06-06T18:28:01Zfranklinyu (Franklin Yu)
<ul></ul><p>Hello? Any update? Would it be included in 2.6.4?</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=783902019-06-07T03:04:07Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul></ul><p>I'm not sure nobu's changesets are bug or feature.</p>
<p>But this issue was marked with "Feature" by nobu. We never backport the new feature to stable versions.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=783942019-06-08T00:42:25Zfranklinyu (Franklin Yu)
<ul></ul><p><a class="user active user-mention" href="https://redmine.ruby-lang.org/users/4">@nobu (Nobuyoshi Nakada)</a> This should be a bug, not feature. Please mark it as a bug and backport it into 2.6 branch.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=786742019-06-18T12:20:09Zfranklinyu (Franklin Yu)
<ul></ul><p><a class="user active user-mention" href="https://redmine.ruby-lang.org/users/4">@nobu (Nobuyoshi Nakada)</a> Please update, or is there any reason that this should be a feature instead of a bug?</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=826092019-11-11T14:03:24Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>I did set the tracker to "feature", since this added the support for "-Wpedantic" option, but will leave this to the branch maintainers.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=826132019-11-11T15:22:28Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>Usually -pedantic is applied automatically ruby core but not passed to extension libraries.<br>
Such "suppress warnings" are usually not considered as a bug because it may cause side effect.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=826902019-11-15T06:22:51Zfranklinyu (Franklin Yu)
<ul></ul><p>naruse (Yui NARUSE) wrote:</p>
<blockquote>
<p>Usually -pedantic is applied automatically ruby core but not passed to extension libraries.<br>
Such "suppress warnings" are usually not considered as a bug because it may cause side effect.</p>
</blockquote>
<p>I knew that Ruby was compiled with <code>-pedantic</code>; wasn’t aware that this was for core only. Thanks a lot for the explanation. Look forward to the release in Christmas.</p> Ruby master - Feature #15665: Cannot compile socket extension on Mojavehttps://redmine.ruby-lang.org/issues/15665?journal_id=827552019-11-23T00:44:03Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/16362">Bug #16362</a>: Unable to build Ruby 2.6.5 on Manjaro Linux 18.1.3</i> added</li></ul>