From owner-svn-ports-head@freebsd.org Sat Jan 6 14:19:23 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D591EEBB854; Sat, 6 Jan 2018 14:19:23 +0000 (UTC) (envelope-from jbeich@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 B06C370C10; Sat, 6 Jan 2018 14:19:23 +0000 (UTC) (envelope-from jbeich@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 EE37E137C0; Sat, 6 Jan 2018 14:19:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w06EJMKI074576; Sat, 6 Jan 2018 14:19:22 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w06EJMkw074575; Sat, 6 Jan 2018 14:19:22 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801061419.w06EJMkw074575@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sat, 6 Jan 2018 14:19:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458274 - head/net/xmlrpc-c/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/net/xmlrpc-c/files X-SVN-Commit-Revision: 458274 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jan 2018 14:19:23 -0000 Author: jbeich Date: Sat Jan 6 14:19:22 2018 New Revision: 458274 URL: https://svnweb.freebsd.org/changeset/ports/458274 Log: net/xmlrpc-c: unbreak build with Clang 6 (C++14 by default) server_abyss.cpp:88:14: error: assigning to 'int' from incompatible type '__bind' rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: antoine (via bug 224669) Added: head/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp (contents, props changed) Added: head/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp Sat Jan 6 14:19:22 2018 (r458274) @@ -0,0 +1,18 @@ +libc++ doesn't like "using namespace std" in C++11 + +server_abyss.cpp:88:14: error: assigning to 'int' from incompatible type '__bind' + rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- test/cpp/server_abyss.cpp~ 2018-01-05 09:20:59.546269035 +0000 ++++ test/cpp/server_abyss.cpp 2018-01-05 09:23:10.542713023 +0000 +@@ -85,7 +85,7 @@ class boundSocket { (public) + sockAddr.sin_port = htons(portNumber); + sockAddr.sin_addr.s_addr = 0; + +- rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); ++ rc = ::bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); + + if (rc != 0) { + closesock(this->fd);