Date: Sat, 13 Jan 2018 08:34:41 +0000 From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: maintainer-feedback requested: [Bug 225129] editors/openoffice-4: fails to build with clang 6.0 Message-ID: <bug-225129-25061-PJHCsrSWzY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-225129-25061@https.bugs.freebsd.org/bugzilla/> References: <bug-225129-25061@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Jan Beich <jbeich@FreeBSD.org> has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s request for maintainer-feedback to office@FreeBSD.= org: Bug 225129: editors/openoffice-4: fails to build with clang 6.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225129 --- Description --- FreeBSD -CURRENT plans to update base Clang to 6.0.0 soon. While testing th= is 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 =3D { (unsigned char*)aWmClient.getStr(), XA_STRING, 8, aWmClient.getLength() }; =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~ vcl/unx/generic/app/wmadaptor.cxx:2525:85: note: insert an explicit cast to silence this issue XTextProperty aClientProp =3D { (unsigned char*)aWmClient.getStr(), XA_STRING, 8, aWmClient.getLength() }; =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~ =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 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 =20=20=20=20=20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_F= UNCT ION), PROPERTY_ID_FUNCTION, 0,=20 &m_bFunction, ::getCppuType(reinterpret_cast< sal_Bool*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:177:171: error: reinterpret_cast from 'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed =20=20=20=20=20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_A= GGRE GATEFUNCTION), PROPERTY_ID_AGGREGATEFUNCTION, 0, &m_bAggregateFunction,=20=20=20 ::getCppuType(reinterpret_cast< sal_Bool*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:178:159: error: reinterpret_cast from 'nullptr_t' to '::rtl::OUString *' is not allowed =20=20=20=20=20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_T= ABLE NAME), PROPERTY_ID_TABLENAME, 0,=20 &m_aTableName, ::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:179:156: error: reinterpret_cast from 'nullptr_t' to '::rtl::OUString *' is not allowed =20=20=20=20=20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_R= EALN AME), PROPERTY_ID_REALNAME, 0,=20 &m_aRealName, ::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:180:180: error: reinterpret_cast from 'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed =20=20=20=20=20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_D= BASE PRECISIONCHANGED), PROPERTY_ID_DBASEPRECISIONCHANGED, 0, &m_bDbasePrecisionChanged= ,=20 ::getCppuType(reinterpret_cast<sal_Bool*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:181:176: error: reinterpret_cast from 'nullptr_t' to 'sal_Bool *' (aka 'unsigned char *') is not allowed =20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_I= SSEA RCHABLE), PROPERTY_ID_ISSEARCHABLE, 0,=20 &m_bIsSearchable, ::getCppuType(reinterpret_cast< sal_Bool*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ connectivity/source/parse/PColumn.cxx:182:162: error: reinterpret_cast from 'nullptr_t' to '::rtl::OUString *' is not allowed =20=20=20 registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_L= ABEL ), PROPERTY_ID_LABEL,=09=09=09=20=20=20=20=20 0, &m_sLabel, ::getCppuType(reinterpret_cast< ::rtl::OUString*>(NULL))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 =09=09=09=09=09=09=09=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 ) ) ); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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))); =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To reproduce: $ poudriere jail -cj clang6-amd64 -a amd64 -v projects/clang600-import -m svn+https $ poudriere bulk -Ctj clang6-amd64 editors/openoffice-4
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225129-25061-PJHCsrSWzY>