From owner-svn-ports-all@freebsd.org Sat Jul 7 17:54:22 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47C44103C07A; Sat, 7 Jul 2018 17:54:22 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0C2C830D2; Sat, 7 Jul 2018 17:54:21 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D1CAB1AB0A; Sat, 7 Jul 2018 17:54:21 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w67HsLFV067447; Sat, 7 Jul 2018 17:54:21 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w67HsLFu067446; Sat, 7 Jul 2018 17:54:21 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807071754.w67HsLFu067446@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 7 Jul 2018 17:54:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474114 - head/x11/nxcomp/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/x11/nxcomp/files X-SVN-Commit-Revision: 474114 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2018 17:54:22 -0000 Author: tobik Date: Sat Jul 7 17:54:21 2018 New Revision: 474114 URL: https://svnweb.freebsd.org/changeset/ports/474114 Log: x11/nxcomp: Fix build with Clang 6 Loop.cpp:6751:61: error: invalid operands to binary expression ('__bind' and 'int') if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~ /usr/include/c++/v1/system_error:577:1: note: candidate function not viable: no known conversion from '__bind' to 'const std::__1::error_code' for 1st argument operator==(const error_code& __x, const error_code& __y) _NOEXCEPT ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p473790_s335878/logs/nxcomp-3.5.0.32.log Added: head/x11/nxcomp/files/ head/x11/nxcomp/files/patch-Loop.cpp (contents, props changed) Added: head/x11/nxcomp/files/patch-Loop.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/nxcomp/files/patch-Loop.cpp Sat Jul 7 17:54:21 2018 (r474114) @@ -0,0 +1,45 @@ +Loop.cpp:6751:61: error: invalid operands to binary expression ('__bind' and 'int') + if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~ + /usr/include/c++/v1/system_error:577:1: note: candidate function not viable: no known conversion from '__bind' to 'const std::__1::error_code' for 1st argument + operator==(const error_code& __x, const error_code& __y) _NOEXCEPT + ^ + +--- Loop.cpp.orig 2018-07-07 17:44:11 UTC ++++ Loop.cpp +@@ -3969,7 +3969,7 @@ int SetupTcpSocket() + tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY); + } + +- if (bind(tcpFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) ++ if (::bind(tcpFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) + { + #ifdef PANIC + *logofs << "Loop: PANIC! Call to bind failed for TCP port " +@@ -4055,7 +4055,7 @@ int SetupUnixSocket() + + *(unixAddr.sun_path + 107) = '\0'; + +- if (bind(unixFD, (sockaddr *) &unixAddr, sizeof(unixAddr)) == -1) ++ if (::bind(unixFD, (sockaddr *) &unixAddr, sizeof(unixAddr)) == -1) + { + #ifdef PANIC + *logofs << "Loop: PANIC! Call to bind failed for UNIX domain socket " +@@ -4567,7 +4567,7 @@ int ListenConnection(int port, const char *label) + tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY); + } + +- if (bind(newFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) ++ if (::bind(newFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) + { + #ifdef PANIC + *logofs << "Loop: PANIC! Call to bind failed for " << label +@@ -6748,7 +6748,7 @@ int WaitForRemote(int portNum) + + #endif + +- if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) ++ if (::bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1) + { + #ifdef PANIC + *logofs << "Loop: PANIC! Call to bind failed for TCP port "