From owner-freebsd-ports-bugs@freebsd.org Wed Jun 21 17:14:32 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26184D94304 for ; Wed, 21 Jun 2017 17:14:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 14120748EF for ; Wed, 21 Jun 2017 17:14:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5LHEVTa045950 for ; Wed, 21 Jun 2017 17:14:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 220189] x11-toolkits/mygui: stop redefining nullptr Date: Wed, 21 Jun 2017 17:14:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: amdmi3@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 17:14:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220189 Bug ID: 220189 Summary: x11-toolkits/mygui: stop redefining nullptr Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: amdmi3@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: amdmi3@FreeBSD.org Flags: maintainer-feedback?(amdmi3@FreeBSD.org) Created attachment 183680 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183680&action= =3Dedit Stop redefining nullptr During an exp-run for the projects/clang500-import branch (bug 219139), it turned out that x11-toolkits/mygui does not build against libc++ 5.0.0 [1]: In file included from /wrkdirs/usr/ports/x11-toolkits/mygui/work/mygui-MyGUI3.2.2/MyGUIEngine/src= /MyGUI_ActionController.cpp:7: In file included from /wrkdirs/usr/ports/x11-toolkits/mygui/work/mygui-MyGUI3.2.2/MyGUIEngine/inc= lude/MyGUI_Precompiled.h:11: In file included from /wrkdirs/usr/ports/x11-toolkits/mygui/work/mygui-MyGUI3.2.2/MyGUIEngine/inc= lude/MyGUI_Common.h:12: In file included from /usr/include/c++/v1/string:470: In file included from /usr/include/c++/v1/string_view:170: In file included from /usr/include/c++/v1/__string:56: In file included from /usr/include/c++/v1/algorithm:640: /usr/include/c++/v1/memory:2089:9: error: cannot initialize a member subobj= ect of type 'std::__1::basic_string *' with an rvalue of type 'int' : __value_(_VSTD::forward<_Up>(__u)){}; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/memory:2174:9: note: in instantiation of function templ= ate specialization 'std::__1::__compressed_pair_elem *, 0, false>::__compressed_pair_elem' requested here : _Base1(std::forward<_Tp>(__t)), _Base2() {} ^ /usr/include/c++/v1/vector:428:7: note: in instantiation of function templa= te specialization 'std::__1::__compressed_pair *, std::__1::allocator > >::__compressed_pair' requested here __end_cap_(nullptr) ^ /usr/include/c++/v1/vector:478:5: note: in instantiation of member function 'std::__1::__vector_base, std::__1::allocator > >::__vector_base' reques= ted here vector() _NOEXCEPT_(is_nothrow_default_constructible::value) ^ /wrkdirs/usr/ports/x11-toolkits/mygui/work/mygui-MyGUI3.2.2/MyGUIEngine/inc= lude/MyGUI_StringUtility.h:293:29: note: in instantiation of member function 'std::__1::vector, std::__1::allocator > >::vector' requested here std::vector result; ^ These errors are because mygui by default redefines 'nullptr' to 0, even wh= ile it is being compiled as C++11. This is not supported. Luckily it supports= a define MYGUI_DONT_REPLACE_NULLPTR to stop doing that. (I don't know why the port is compiled with C++11 though, it does not seem = to be necessary.) [1] http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_= 13h01m42s/logs/errors/mygui-3.2.2_2.log --=20 You are receiving this mail because: You are the assignee for the bug.=