Bug 225304 - devel/rubygem-eventmachine : fix build with clang 6
Summary: devel/rubygem-eventmachine : fix build with clang 6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks: 224669
  Show dependency treegraph
 
Reported: 2018-01-18 20:01 UTC by Antoine Brodin
Modified: 2018-01-20 20:29 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments
Proposed patch (2.29 KB, patch)
2018-01-18 20:01 UTC, Antoine Brodin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer freebsd_triage 2018-01-18 20:01:28 UTC
Created attachment 189891 [details]
Proposed patch

devel/rubygem-eventmachine fails to build with clang 6
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-01-20 20:28:48 UTC
A commit references this bug:

Author: antoine
Date: Sat Jan 20 20:27:51 UTC 2018
New revision: 459550
URL: https://svnweb.freebsd.org/changeset/ports/459550

Log:
  Fix build with clang 6

  em.cpp:1242:59: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long &>' and 'int')
                  if (bind (sd, (struct sockaddr *)&bind_to, bind_to_len) < 0) {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

  PR:		225304
  Reported by:	pkg-fallout

Changes:
  head/devel/rubygem-eventmachine/files/
  head/devel/rubygem-eventmachine/files/patch-ext_em.cpp