[Bug 250740] mail/mailsync 12.2-RELEASE breaks package build

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 11 14:16:39 UTC 2020


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

Fernando Apesteguía <fernape at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fernape at FreeBSD.org

--- Comment #1 from Fernando Apesteguía <fernape at FreeBSD.org> ---
Created attachment 219554
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=219554&action=edit
Patch to the ports tree

Hi Colin,

Thanks for the report. I see mail/mailsync does not build in 11.4 or 12.2 but
it does build in 12.1 and 13-current.

Would you mind trying this patch? It basically builds with GCC in those cases.
I will investigate a bit more. The culprit seems to be this in mail/cclient:

configure:5854: checking if adding -fno-operator-names helps
configure:5864: c++ -c -O2 -pipe -fstack-protector-strong -fno-strict-aliasing 
 -fno-operator-names  -I/usr/local/include/c-client conftest.cpp >&5
In file included from conftest.cpp:32:
In file included from /usr/local/include/c-client/c-client.h:42:
In file included from /usr/local/include/c-client/osdep.h:29:
In file included from /usr/include/c++/v1/stdlib.h:100:
In file included from /usr/include/c++/v1/math.h:311:
/usr/include/c++/v1/type_traits:1364:1: error: unknown type name
'cclientPrivate'
private:
^
/usr/local/include/c-client/c-client.h:35:17: note: expanded from macro
'private'
#define private cclientPrivate  /* private to c-client */
                ^
In file included from conftest.cpp:32:
In file included from /usr/local/include/c-client/c-client.h:42:
In file included from /usr/local/include/c-client/osdep.h:29:
In file included from /usr/include/c++/v1/stdlib.h:100:
In file included from /usr/include/c++/v1/math.h:311:
/usr/include/c++/v1/type_traits:1365:5: error: expected expression
    typedef _LIBCPP_NODEBUG_TYPE typename remove_reference<_Tp>::type _Up;
    ^
/usr/include/c++/v1/type_traits:1367:51: error: use of undeclared identifier
'_Up'
    typedef _LIBCPP_NODEBUG_TYPE typename __decay<_Up,
__is_referenceable<_Up>::value>::type type;
                                                  ^
/usr/include/c++/v1/type_traits:1367:81: error: non-friend class member 'value'
cannot have a qualified name
    typedef _LIBCPP_NODEBUG_TYPE typename __decay<_Up,
__is_referenceable<_Up>::value>::type type;
                                                                             
~~^
/usr/include/c++/v1/type_traits:1367:81: error: typedef declarator cannot be
qualified
    typedef _LIBCPP_NODEBUG_TYPE typename __decay<_Up,
__is_referenceable<_Up>::value>::type type;
                                                                             
~~^
/usr/include/c++/v1/type_traits:1367:86: error: expected ';' at end of
declaration list
    typedef _LIBCPP_NODEBUG_TYPE typename __decay<_Up,
__is_referenceable<_Up>::value>::type type;
                                                                               
     ^
/usr/include/c++/v1/type_traits:1721:1: error: unknown type name
'cclientPrivate'
private:
^

With the patch, it builds in {11.4,12.1}{amd64,i386} 12.2amd64 and 13-current
amd64.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list