Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2018 18:53:28 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478159 - head/devel/kaptain/files
Message-ID:  <201808261853.w7QIrSqh021876@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Aug 26 18:53:28 2018
New Revision: 478159
URL: https://svnweb.freebsd.org/changeset/ports/478159

Log:
  devel/kaptain: Fix build with Clang 6
  
  communication.cpp:108:32: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned int>' and 'int')
                            sizeof (struct sockaddr)) == -1)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/kaptain-0.73.log

Added:
  head/devel/kaptain/files/patch-communication.cpp   (contents, props changed)

Added: head/devel/kaptain/files/patch-communication.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kaptain/files/patch-communication.cpp	Sun Aug 26 18:53:28 2018	(r478159)
@@ -0,0 +1,15 @@
+communication.cpp:108:32: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned int>' and 'int')
+                          sizeof (struct sockaddr)) == -1)
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
+
+--- communication.cpp.orig	2018-08-26 18:50:21 UTC
++++ communication.cpp
+@@ -104,7 +104,7 @@ bool Communicator::setup_socket_server(string port_str
+   memset(&(my_addr.sin_zero), '\0', 8); // zero the rest of the struct
+ 
+   /* bind */
+-  if (bind(socket_fd, (struct sockaddr *)&my_addr, 
++  if (::bind(socket_fd, (struct sockaddr *)&my_addr, 
+ 			  sizeof (struct sockaddr)) == -1)
+ 	 {
+ 		MAKE_ERROR(string("bind: ")+string(strerror(errno))+string(".\n"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808261853.w7QIrSqh021876>