Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 23:15:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 209722] multimedia/vlc multimedia/vlc-qt4: Problems building with libc++ 3.8.0
Message-ID:  <bug-209722-12827-6fUqUOQ5JU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209722-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209722-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209722

--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
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 <atomic>, 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209722-12827-6fUqUOQ5JU>