Date: Sun, 14 May 2017 18:00:27 +0000 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 Message-ID: <bug-219281-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<DataType>::GetByHash(const tHashType&) [with DataType =3D short int; nUtils::tHashArray<DataType>::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<DataType>::ContainsHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray<DataType>::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<DataType>::AddWithHash(DataType, const tHashType&) [with DataType =3D short int; nUtils::tHashArray<DataType>::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<DataType>::RemoveByHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray<DataType>::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<DataType>::sItem::Set(nUtils::tHashArray<DataType>::tHas= hType, const DataType&) [with DataType =3D short int; nUtils::tHashArray<DataType>::tHashType =3D long unsigned int]': /usr/local/include/verlihub/thasharray.h:347:32: required from 'bool nUtils::tHashArray<DataType>::SetByHash(const tHashType&, const DataType&) [with DataType =3D short int; nUtils::tHashArray<DataType>::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<DataType>::sItem::DeleteHash(nUtils::tHashArray<DataType= >::tHashType, nUtils::tHashArray<DataType>::sItem*&) [with DataType =3D short int; nUtils::tHashArray<DataType>::tHashType =3D long unsigned int]': /usr/local/include/verlihub/thasharray.h:306:47: required from 'bool nUtils::tHashArray<DataType>::RemoveByHash(const tHashType&) [with DataType= =3D short int; nUtils::tHashArray<DataType>::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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219281-13>