[Bug 225129] editors/openoffice-4: fails to build with clang 6.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 13 08:34:42 UTC 2018


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

            Bug ID: 225129
           Summary: editors/openoffice-4: fails to build with clang 6.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
            Blocks: 224669
          Assignee: office at FreeBSD.org
             Flags: maintainer-feedback?(office at FreeBSD.org)

FreeBSD -CURRENT plans to update base Clang to 6.0.0 soon. While testing this
port failed to build.

vcl/unx/generic/app/wmadaptor.cxx:2525:85: error: non-constant-expression
cannot be narrowed from type 'sal_Int32' (aka 'int') to 'unsigned long' in
initializer list [-Wc++11-narrowing]
    XTextProperty aClientProp = { (unsigned char*)aWmClient.getStr(),
XA_STRING, 8, aWmClient.getLength() };
                                                                               
    ^~~~~~~~~~~~~~~~~~~~~
vcl/unx/generic/app/wmadaptor.cxx:2525:85: note: insert an explicit cast to
silence this issue
    XTextProperty aClientProp = { (unsigned char*)aWmClient.getStr(),
XA_STRING, 8, aWmClient.getLength() };
                                                                               
    ^~~~~~~~~~~~~~~~~~~~~
                                                                               
    static_cast<unsigned long>( )

connectivity/source/parse/PColumn.cxx:176:156: error: reinterpret_cast from
'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed
       
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION),
                           PROPERTY_ID_FUNCTION,                           0, 
&m_bFunction,                       ::getCppuType(reinterpret_cast<
sal_Bool*>(NULL)));
                                                                               
                                                                               
                                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:177:171: error: reinterpret_cast from
'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed
       
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AGGREGATEFUNCTION),
          PROPERTY_ID_AGGREGATEFUNCTION,          0,  &m_bAggregateFunction,   
          ::getCppuType(reinterpret_cast< sal_Bool*>(NULL)));
                                                                               
                                                                               
                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:178:159: error: reinterpret_cast from
'nullptr_t' to '::rtl::OUString *' is not allowed
       
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TABLENAME),
                          PROPERTY_ID_TABLENAME,                          0, 
&m_aTableName,                      ::getCppuType(reinterpret_cast<
::rtl::OUString*>(NULL)));
                                                                               
                                                                               
                                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:179:156: error: reinterpret_cast from
'nullptr_t' to '::rtl::OUString *' is not allowed
       
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME),
                           PROPERTY_ID_REALNAME,                           0, 
&m_aRealName,                       ::getCppuType(reinterpret_cast<
::rtl::OUString*>(NULL)));
                                                                               
                                                                               
                                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:180:180: error: reinterpret_cast from
'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed
       
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DBASEPRECISIONCHANGED),
      PROPERTY_ID_DBASEPRECISIONCHANGED,      0,  &m_bDbasePrecisionChanged, 
::getCppuType(reinterpret_cast<sal_Bool*>(NULL)));
                                                                               
                                                                               
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:181:176: error: reinterpret_cast from
'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed
   
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISSEARCHABLE),
           PROPERTY_ID_ISSEARCHABLE,                       0, 
&m_bIsSearchable,           ::getCppuType(reinterpret_cast< sal_Bool*>(NULL)));
                                                                               
                                                                               
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:182:162: error: reinterpret_cast from
'nullptr_t' to '::rtl::OUString *' is not allowed
   
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_LABEL),
                              PROPERTY_ID_LABEL,                             
0,  &m_sLabel,                          ::getCppuType(reinterpret_cast<
::rtl::OUString*>(NULL)));
                                                                               
                                                                               
                                                         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:268:99: error: reinterpret_cast from
'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed
        PropertyAttribute::READONLY,  const_cast< sal_Bool* >( &m_bAscending ),
   ::getCppuType( reinterpret_cast< sal_Bool* >( NULL ) ) );
                                                                               
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connectivity/source/parse/PColumn.cxx:270:103: error: reinterpret_cast from
'nullptr_t' to '::rtl::OUString *' is not allowed
        PropertyAttribute::READONLY,  const_cast< ::rtl::OUString* >(
&m_sTableName ),  ::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL)));
                                                                               
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To reproduce:
$ poudriere jail -cj clang6-amd64 -a amd64 -v projects/clang600-import -m
svn+https
$ poudriere bulk -Ctj clang6-amd64 editors/openoffice-4


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224669
[Bug 224669] [exp-run] Against projects/clang600-import branch
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list