From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 17 11:20:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C9E97580 for ; Fri, 17 May 2013 11:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B16B2405 for ; Fri, 17 May 2013 11:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4HBK2dG095695 for ; Fri, 17 May 2013 11:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4HBK216095694; Fri, 17 May 2013 11:20:02 GMT (envelope-from gnats) Resent-Date: Fri, 17 May 2013 11:20:02 GMT Resent-Message-Id: <201305171120.r4HBK216095694@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volodymyr Kostyrko Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3C46A560 for ; Fri, 17 May 2013 11:18:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4BF3F2 for ; Fri, 17 May 2013 11:18:29 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4HBIS0Z011381 for ; Fri, 17 May 2013 11:18:28 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4HBISo8011335; Fri, 17 May 2013 11:18:28 GMT (envelope-from nobody) Message-Id: <201305171118.r4HBISo8011335@oldred.FreeBSD.org> Date: Fri, 17 May 2013 11:18:28 GMT From: Volodymyr Kostyrko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178712: net/boinc-client - fails to build with -std=c++11 (fix is trivial) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 11:20:02 -0000 >Number: 178712 >Category: ports >Synopsis: net/boinc-client - fails to build with -std=c++11 (fix is trivial) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 17 11:20:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Volodymyr Kostyrko >Release: RELENG_9 >Organization: none >Environment: >Description: When building this port with LIBCPLUSPLUS I get this two glitches: boinc_api.cpp:114:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] const char* api_version="API_VERSION_"PACKAGE_VERSION; ^ In file included from acct_mgr.cpp:34: ./client_msgs.h:76:20: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #define _(x) "_(\""x"\")" ^ >How-To-Repeat: >Fix: Patch to the port attached. Patch attached with submission follows: Index: files/patch-api__boinc_api.cpp =================================================================== --- files/patch-api__boinc_api.cpp (revision 0) +++ files/patch-api__boinc_api.cpp (working copy) @@ -0,0 +1,11 @@ +--- api/boinc_api.cpp.old 2013-05-17 14:10:37.000000000 +0300 ++++ api/boinc_api.cpp 2013-05-17 14:10:49.000000000 +0300 +@@ -111,7 +111,7 @@ + // CPPFLAGS=-DGETRUSAGE_IN_TIMER_THREAD + #endif + +-const char* api_version="API_VERSION_"PACKAGE_VERSION; ++const char* api_version="API_VERSION_" PACKAGE_VERSION; + static APP_INIT_DATA aid; + static FILE_LOCK file_lock; + APP_CLIENT_SHM* app_client_shm = 0; Index: files/patch-client__client_msgs.h =================================================================== --- files/patch-client__client_msgs.h (revision 0) +++ files/patch-client__client_msgs.h (working copy) @@ -0,0 +1,10 @@ +--- client/client_msgs.h.old 2013-05-17 14:13:10.000000000 +0300 ++++ client/client_msgs.h 2013-05-17 14:13:20.000000000 +0300 +@@ -73,6 +73,6 @@ + __attribute__ ((format (printf, 4, 5))) + ; + +-#define _(x) "_(\""x"\")" ++#define _(x) "_(\"" x"\")" + + #endif >Release-Note: >Audit-Trail: >Unformatted: