From owner-svn-ports-all@freebsd.org Sat Jan 6 14:19:45 2018 Return-Path: Delivered-To: svn-ports-all@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 9D402EBB8AA; Sat, 6 Jan 2018 14:19:45 +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 78FCA70D01; Sat, 6 Jan 2018 14:19:45 +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 C0FC2137C1; Sat, 6 Jan 2018 14:19:44 +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 w06EJiuZ074687; Sat, 6 Jan 2018 14:19:44 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w06EJihQ074686; Sat, 6 Jan 2018 14:19:44 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801061419.w06EJihQ074686@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:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458275 - head/audio/ecasound/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/audio/ecasound/files X-SVN-Commit-Revision: 458275 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.25 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, 06 Jan 2018 14:19:45 -0000 Author: jbeich Date: Sat Jan 6 14:19:44 2018 New Revision: 458275 URL: https://svnweb.freebsd.org/changeset/ports/458275 Log: audio/ecasound: unbreak build with Clang 6 (C++14 by default) eca-neteci-server.cpp:179:11: error: assigning to 'int' from incompatible type '__bind' res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eca-neteci-server.cpp:181:11: error: assigning to 'int' from incompatible type '__bind' res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: antoine (via bug 224669) Added: head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp (contents, props changed) Added: head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp Sat Jan 6 14:19:44 2018 (r458275) @@ -0,0 +1,25 @@ +libc++ doesn't like "using namespace std" in C++11 + +eca-neteci-server.cpp:179:11: error: assigning to 'int' from incompatible type '__bind' + res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +eca-neteci-server.cpp:181:11: error: assigning to 'int' from incompatible type '__bind' + res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- ecasound/eca-neteci-server.cpp.orig 2011-04-05 20:36:01 UTC ++++ ecasound/eca-neteci-server.cpp +@@ -176,9 +176,9 @@ void ECA_NETECI_SERVER::open_server_socket(void) + + int res = 0; + if (unix_sockets_rep == true) +- res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep)); ++ res = ::bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep)); + else +- res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep)); ++ res = ::bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep)); + + if (res == 0) { + res = listen(srvfd_rep, 5);