Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 20:55:42 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        arrowdodger <6yearold@gmail.com>
Cc:        multimedia@freebsd.org, Juergen Lock <nox@jelal.kn-bremen.de>, bug-followup@freebsd.org
Subject:   Re: ports/171341: multimedia/vlc: Doesn't build with clang
Message-ID:  <20120905185542.GA11984@triton8.kn-bremen.de>
In-Reply-To: <CALH631kTSeVfoBMeYx=vWAsv7VE0pTt_ioYH1bzE-=Q=GPmPPA@mail.gmail.com>
References:  <20120905173650.GA10291@triton8.kn-bremen.de> <CALH631kTSeVfoBMeYx=vWAsv7VE0pTt_ioYH1bzE-=Q=GPmPPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120905185542.GA11984>