From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 5 18:56:34 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2BE0106566C; Wed, 5 Sep 2012 18:56:34 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3228FC14; Wed, 5 Sep 2012 18:56:34 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 405901E00714; Wed, 5 Sep 2012 20:56:33 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q85IthGK012780; Wed, 5 Sep 2012 20:55:43 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q85IthYM012779; Wed, 5 Sep 2012 20:55:43 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Wed, 5 Sep 2012 20:55:42 +0200 To: arrowdodger <6yearold@gmail.com> Message-ID: <20120905185542.GA11984@triton8.kn-bremen.de> References: <20120905173650.GA10291@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: multimedia@freebsd.org, Juergen Lock , bug-followup@freebsd.org Subject: Re: ports/171341: multimedia/vlc: Doesn't build with clang X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 18:56:34 -0000 On Wed, Sep 05, 2012 at 10:09:21PM +0400, arrowdodger wrote: > Now it goes farther, but dies with: > > CXX dialogs/libqt4_plugin_la-help.lo > dialogs/help.cpp:115:27: error: differing user-defined suffixes ('__DATE__' > and '__TIME__') in string literal concatenation > + " ("__DATE__" "__TIME__").\n" > ~~~~~~~~~~~~^~~~~~~~~~~ > 1 error generated. > gmake[6]: *** [dialogs/libqt4_plugin_la-help.lo] Error 1 > gmake[6]: Leaving directory > `/usr/ports/multimedia/vlc/work/vlc-2.0.3/modules/gui/qt4' > Hm what if you try w/o your CXXFLAGS=-stdlib=libc++ -std=c++11 -Wno-c++11-narrowing ? Or else try this updated patch; also at: http://people.freebsd.org/~nox/tmp/vlc-2.0.3-clang.patch Index: files/patch-include-vlc_common.h =================================================================== --- files/patch-include-vlc_common.h.orig +++ files/patch-include-vlc_common.h @@ -0,0 +1,11 @@ +--- include/vlc_common.h.orig ++++ include/vlc_common.h +@@ -642,7 +642,7 @@ static inline unsigned popcount (unsigne + #endif + } + +-#ifdef __OS2__ ++#if defined(__OS2__) || defined(__FreeBSD__) + # undef bswap16 + # undef bswap32 + # undef bswap64 Index: files/patch-modules-gui-qt4-dialogs-help.cpp =================================================================== --- files/patch-modules-gui-qt4-dialogs-help.cpp.orig +++ files/patch-modules-gui-qt4-dialogs-help.cpp @@ -0,0 +1,11 @@ +--- modules/gui/qt4/dialogs/help.cpp.orig ++++ modules/gui/qt4/dialogs/help.cpp +@@ -112,7 +112,7 @@ AboutDialog::AboutDialog( intf_thread_t + "popular platform.\n\n" ) + + qtr( "This version of VLC was compiled by:\n " ) + + qfu( VLC_CompileBy() )+ " on " + qfu( VLC_CompileHost() ) + +- + " ("__DATE__" "__TIME__").\n" ++ + " (" + __DATE__ + " " + __TIME__ + ").\n" + + qtr( "Compiler: " ) + qfu( VLC_Compiler() ) + ".\n" + + qtr( "You are using the Qt4 Interface.\n\n" ) + + qtr( "Copyright (C) " ) + COPYRIGHT_YEARS Thanx! Juergen