From owner-svn-ports-all@freebsd.org Fri Aug 31 22:13:44 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 548D6FCC454; Fri, 31 Aug 2018 22:13:44 +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 F1286882A8; Fri, 31 Aug 2018 22:13:43 +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 CF04121380; Fri, 31 Aug 2018 22:13:43 +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 w7VMDh8R074446; Fri, 31 Aug 2018 22:13:43 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7VMDhmc074445; Fri, 31 Aug 2018 22:13:43 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201808312213.w7VMDhmc074445@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 31 Aug 2018 22:13:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478614 - head/news/newscache/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/news/newscache/files X-SVN-Commit-Revision: 478614 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: Fri, 31 Aug 2018 22:13:44 -0000 Author: tobik Date: Fri Aug 31 22:13:43 2018 New Revision: 478614 URL: https://svnweb.freebsd.org/changeset/ports/478614 Log: news/newscache: Fix build with Clang 6 NewsCache.cc:2265:62: error: invalid operands to binary expression ('__bind' and 'int') if (bind(sock, (struct sockaddr *) &nproxy, sizeof(nproxy)) < 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/newscache-1.2.r.6_4.log Added: head/news/newscache/files/patch-src_NewsCache.cc (contents, props changed) Added: head/news/newscache/files/patch-src_NewsCache.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/newscache/files/patch-src_NewsCache.cc Fri Aug 31 22:13:43 2018 (r478614) @@ -0,0 +1,15 @@ +NewsCache.cc:2265:62: error: invalid operands to binary expression ('__bind' and 'int') + if (bind(sock, (struct sockaddr *) &nproxy, sizeof(nproxy)) < 0) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ + +--- src/NewsCache.cc.orig 2018-08-31 22:11:06 UTC ++++ src/NewsCache.cc +@@ -2262,7 +2262,7 @@ void nntpd() + } + } /* end create socket and set some socket options */ + +- if (bind(sock, (struct sockaddr *) &nproxy, sizeof(nproxy)) < 0) { ++ if (::bind(sock, (struct sockaddr *) &nproxy, sizeof(nproxy)) < 0) { + slog. + p(Logger:: + Error) << "can't bind socket: " << strerror(errno) <<