From owner-freebsd-multimedia@freebsd.org Mon May 23 23:15:24 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 9EE8AB476D2 for ; Mon, 23 May 2016 23:15:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 898A51C8F for ; Mon, 23 May 2016 23:15:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 88EBCB476D0; Mon, 23 May 2016 23:15:24 +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 88921B476CF for ; Mon, 23 May 2016 23:15:24 +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 78B651C8E for ; Mon, 23 May 2016 23:15:24 +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 u4NNFOf9028029 for ; Mon, 23 May 2016 23:15:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 209722] multimedia/vlc multimedia/vlc-qt4: Problems building with libc++ 3.8.0 Date: Mon, 23 May 2016 23:15:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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-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 23:15:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209722 --- Comment #1 from Dimitry Andric --- Created attachment 170584 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170584&action= =3Dedit Work around atomic redeclarations in vlc Here is a first proposed patch, which is not very elegant, but it works for= me in the following scenarios: - Using clang on head with the old libc++ (approximately 3.7.0) - Using clang on head with the new libc++ 3.8.0 - Using ports gcc on head with its copy of libstdc++ patch-include_vlc__atomic.h defines a special case for when libc++ 3.8.0 is used: then it includes , and specifies a few atomic_xxx types (there were just three needed to make everything compile successfully). patch-include_vlc__playlist.h and patch-include_vlc__sout.h move including = of system and vlc headers to _before_ any 'extern "C" {' statement. Otherwise inclusion of C++ headers within those system or vlc headers will basically explode with zillions of errors. patch-modules_gui_qt4_dialogs_messages.hpp fixes an inconsistency in the qt4 dialog messages class, where it tried to atomic_store an int into an unsign= ed int. --=20 You are receiving this mail because: You are the assignee for the bug.=