From owner-freebsd-multimedia@freebsd.org Mon May 23 20:10:19 2016 Return-Path: Delivered-To: freebsd-multimedia@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 2D7E3B469B5 for ; Mon, 23 May 2016 20:10:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1890E1F20 for ; Mon, 23 May 2016 20:10:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 14415B469B3; Mon, 23 May 2016 20:10:19 +0000 (UTC) Delivered-To: multimedia@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 13E71B469B2 for ; Mon, 23 May 2016 20:10:19 +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 DA2CF1F1E for ; Mon, 23 May 2016 20:10:18 +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 u4NKAI2N061646 for ; Mon, 23 May 2016 20:10:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: maintainer-feedback requested: [Bug 209722] multimedia/vlc multimedia/vlc-qt4: Problems building with libc++ 3.8.0 Date: Mon, 23 May 2016 20:10:18 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 20:10:19 -0000 Dimitry Andric has reassigned Bugzilla Automation 's request for maintainer-feedback to multimedia@FreeBSD.org: Bug 209722: multimedia/vlc multimedia/vlc-qt4: Problems building with libc++ 3.8.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209722 --- Description --- During the exp-run in bug 208158, it was found that multimedia/vlc [1] and multimedia/vlc-qt4 [2] give errors with libc++ 3.8.0: In file included from meta_engine/taglib.cpp:53: In file included from /usr/local/include/taglib/taglib.h:47: In file included from /usr/include/c++/v1/string:439: In file included from /usr/include/c++/v1/algorithm:628: In file included from /usr/include/c++/v1/memory:616: /usr/include/c++/v1/atomic:823:1: error: expected unqualified-id kill_dependency(_Tp __y) _NOEXCEPT ^ ../include/vlc_atomic.h:45:7: note: expanded from macro 'kill_dependency' ((void)0) ^ And many more such errors. These are caused by include/vlc_atomic.h, which defines a whole bunch of atomic macros, conflicting with the ones in the C++ standard header. Unfortunately there seems to be no easy workarou= nd, as vlc_atomic.h starts with: 29 # if !defined (__cplusplus) && (__STDC_VERSION__ >=3D 201112L) \ 30 && !defined (__STDC_NO_ATOMICS__) 31 32 /*** Native C11 atomics ***/ 33 # include 34 35 # else and in the following part the macros are defined. I attempted to use even for C++ mode, but it isn't compatible with C++. Also, we cannot unconditionally include for C++, since a few types are not defined in there, e.g.: ../include/vlc_atomic.h:407:9: error: unknown type name 'atomic_uint_least32_t'; did you mean 'std::atomic_uint_least32_t'? typedef atomic_uint_least32_t vlc_atomic_float; ^~~~~~~~~~~~~~~~~~~~~ std::atomic_uint_least32_t Also, is only available when using libc++, not when using the vers= ion of libstdc++ in base. I don't have any ready-made solution for this issue yet, but if anybody has good suggestions, please post them here. :) [1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_= 10h2 9m48s/logs/errors/vlc-2.2.1_8,4.log [2] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_= 10h2 9m48s/logs/errors/vlc-qt4-2.2.1_8,4.log