From owner-freebsd-ports-bugs@freebsd.org Sun May 14 18:00:29 2017 Return-Path: Delivered-To: freebsd-ports-bugs@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 10D43D6D663 for ; Sun, 14 May 2017 18:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F34416EB for ; Sun, 14 May 2017 18:00:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4EI0RSD046811 for ; Sun, 14 May 2017 18:00:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 219281] net-p2p/verlihub-plugins-floodprotect: fails to build with lang/gcc6 or later Date: Sun, 14 May 2017 18:00:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc blocked flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2017 18:00:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219281 Bug ID: 219281 Summary: net-p2p/verlihub-plugins-floodprotect: fails to build with lang/gcc6 or later Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: gerald@FreeBSD.org, me@skylord.ru Blocks: 219275 CC: gerald@FreeBSD.org, me@skylord.ru Flags: maintainer-feedback?(me@skylord.ru) In file included from /usr/local/include/verlihub/tcache.h:26:0, from /usr/local/include/verlihub/cpenaltylist.h:29, from /usr/local/include/verlihub/cuser.h:30, from /usr/local/include/verlihub/cconndc.h:24, from cfloodprotect.cpp:13: /usr/local/include/verlihub/thasharray.h: In instantiation of 'DataType nUtils::tHashArray::GetByHash(const tHashType&) [with DataType =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]': cfloodprotect.cpp:228:48: required from here /usr/local/include/verlihub/thasharray.h:338:29: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] if (Items =3D=3D NULL) return (DataType)NULL; ^ /usr/local/include/verlihub/thasharray.h: In instantiation of 'bool nUtils::tHashArray::ContainsHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]': cfloodprotect.cpp:236:46: required from here /usr/local/include/verlihub/thasharray.h:331:11: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] return ((DataType)NULL !=3D Items->Find(Hash)); ^ /usr/local/include/verlihub/thasharray.h: In instantiation of 'bool nUtils::tHashArray::AddWithHash(DataType, const tHashType&) [with DataType =3D short int; nUtils::tHashArray::tHashType =3D long un= signed int]': cfloodprotect.cpp:240:53: required from here /usr/local/include/verlihub/thasharray.h:267:15: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] if (Data =3D=3D (DataType)NULL) return false; ^ /usr/local/include/verlihub/thasharray.h:283:8: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] if ( (DataType)NULL =3D=3D Items->AddData(Data, Hash)) ^ /usr/local/include/verlihub/thasharray.h: In instantiation of 'bool nUtils::tHashArray::RemoveByHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]': cfloodprotect.cpp:248:51: required from here /usr/local/include/verlihub/thasharray.h:314:8: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] if ( (DataType)NULL !=3D Data ) ^ In file included from /usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.0/6.3.0/include-fixed/wcha= r.h:73:0, from /usr/local/lib/gcc6/include/c++/cwchar:44, from /usr/local/lib/gcc6/include/c++/bits/postypes.h:40, from /usr/local/lib/gcc6/include/c++/bits/char_traits.h:40, from /usr/local/lib/gcc6/include/c++/string:40, from /usr/local/include/verlihub/ckick.h:26, from cfloodprotect.cpp:11: /usr/local/include/verlihub/thasharray.h: In instantiation of 'DataType nUtils::tHashArray::sItem::Set(nUtils::tHashArray::tHas= hType, const DataType&) [with DataType =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]': /usr/local/include/verlihub/thasharray.h:347:32: required from 'bool nUtils::tHashArray::SetByHash(const tHashType&, const DataType&) [with DataType =3D short int; nUtils::tHashArray::tHashType =3D l= ong unsigned int]' cfloodprotect.cpp:241:44: required from here /usr/local/include/verlihub/thasharray.h:174:23: error: cannot convert 'std::nullptr_t' to 'short int' in initialization DataType _result =3D NULL; ^ In file included from /usr/local/include/verlihub/tcache.h:26:0, from /usr/local/include/verlihub/cpenaltylist.h:29, from /usr/local/include/verlihub/cuser.h:30, from /usr/local/include/verlihub/cconndc.h:24, from cfloodprotect.cpp:13: /usr/local/include/verlihub/thasharray.h: In instantiation of 'DataType nUtils::tHashArray::sItem::DeleteHash(nUtils::tHashArray::tHashType, nUtils::tHashArray::sItem*&) [with DataType =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]': /usr/local/include/verlihub/thasharray.h:306:47: required from 'bool nUtils::tHashArray::RemoveByHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray::tHashType =3D long unsigned int]' cfloodprotect.cpp:248:51: required from here /usr/local/include/verlihub/thasharray.h:214:20: error: cast from 'std::nullptr_t' to 'short int' loses precision [-fpermissive] DataType Data =3D (DataType)NULL; ^ build log: http://sprunge.us/jTUV Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219275 [Bug 219275] [exp-run] Update GCC_DEFAULT from 5 to 6 --=20 You are receiving this mail because: You are the assignee for the bug.=