Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2013 11:18:28 GMT
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178712: net/boinc-client - fails to build with -std=c++11 (fix is trivial)
Message-ID:  <201305171118.r4HBISo8011335@oldred.FreeBSD.org>
Resent-Message-ID: <201305171120.r4HBK216095694@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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