[Bug 219281] net-p2p/verlihub-plugins-floodprotect: fails to build with lang/gcc6 or later

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 14 18:00:29 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219281

            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 at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: gerald at FreeBSD.org, me at skylord.ru
            Blocks: 219275
                CC: gerald at FreeBSD.org, me at skylord.ru
             Flags: maintainer-feedback?(me at 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 =
short int; nUtils::tHashArray<DataType>::tHashType = 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 == NULL) return (DataType)NULL;
                             ^
/usr/local/include/verlihub/thasharray.h: In instantiation of 'bool
nUtils::tHashArray<DataType>::ContainsHash(const tHashType&) [with DataType =
short int; nUtils::tHashArray<DataType>::tHashType = 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 != Items->Find(Hash));
           ^
/usr/local/include/verlihub/thasharray.h: In instantiation of 'bool
nUtils::tHashArray<DataType>::AddWithHash(DataType, const tHashType&) [with
DataType = short int; nUtils::tHashArray<DataType>::tHashType = long unsigned
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 == (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 == Items->AddData(Data, Hash))
        ^
/usr/local/include/verlihub/thasharray.h: In instantiation of 'bool
nUtils::tHashArray<DataType>::RemoveByHash(const tHashType&) [with DataType =
short int; nUtils::tHashArray<DataType>::tHashType = 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 != Data )
        ^
In file included from
/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.0/6.3.0/include-fixed/wchar.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>::tHashType,
const DataType&) [with DataType = short int;
nUtils::tHashArray<DataType>::tHashType = long unsigned int]':
/usr/local/include/verlihub/thasharray.h:347:32:   required from 'bool
nUtils::tHashArray<DataType>::SetByHash(const tHashType&, const DataType&)
[with DataType = short int; nUtils::tHashArray<DataType>::tHashType = long
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 = 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 = short int;
nUtils::tHashArray<DataType>::tHashType = long unsigned int]':
/usr/local/include/verlihub/thasharray.h:306:47:   required from 'bool
nUtils::tHashArray<DataType>::RemoveByHash(const tHashType&) [with DataType =
short int; nUtils::tHashArray<DataType>::tHashType = 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 = (DataType)NULL;
                    ^

build log: http://sprunge.us/jTUV


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219275
[Bug 219275] [exp-run] Update GCC_DEFAULT from 5 to 6
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list