Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2017 13:30:01 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433405 - head/audio/smasher
Message-ID:  <201702051330.v15DU1JX084961@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Feb  5 13:30:01 2017
New Revision: 433405
URL: https://svnweb.freebsd.org/changeset/ports/433405

Log:
  audio/smasher: unbreak with gcc5 or later (runtime still broken)
  
  In file included from /usr/local/lib/gcc5/include/c++/string:52:0,
                   from /usr/local/include/wx-2.8/wx/string.h:176,
                   from /usr/local/include/wx-2.8/wx/memory.h:16,
                   from /usr/local/include/wx-2.8/wx/object.h:20,
                   from /usr/local/include/wx-2.8/wx/event.h:17,
                   from /usr/local/include/wx-2.8/wx/window.h:19,
                   from /usr/local/include/wx-2.8/wx/control.h:23,
                   from /usr/local/include/wx-2.8/wx/checkbox.h:19,
                   from settingsbook.cpp:4:
  /usr/local/lib/gcc5/include/c++/bits/basic_string.h: In instantiation of 'union std::__cxx11::basic_string<wxPoint>::<anonymous>':
  /usr/local/lib/gcc5/include/c++/bits/basic_string.h:119:7:   required from 'class std::__cxx11::basic_string<wxPoint>'
  fxplotwindow.h:12:32:   required from here
  /usr/local/lib/gcc5/include/c++/bits/basic_string.h:121:53: error: member 'wxPoint std::__cxx11::basic_string<wxPoint>::<anonymous union>::_M_local_buf [2]' with constructor not allowed in union
    _CharT           _M_local_buf[_S_local_capacity + 1];
                                                       ^
  /usr/local/lib/gcc5/include/c++/bits/basic_string.h:121:53: note: unrestricted unions only available with -std=c++11 or -std=gnu++11
  
  PR:		216707
  Reported by:	antoine (via exp-run)

Modified:
  head/audio/smasher/Makefile   (contents, props changed)

Modified: head/audio/smasher/Makefile
==============================================================================
--- head/audio/smasher/Makefile	Sun Feb  5 13:27:55 2017	(r433404)
+++ head/audio/smasher/Makefile	Sun Feb  5 13:30:01 2017	(r433405)
@@ -19,6 +19,7 @@ LIB_DEPENDS=	libsndfile.so:audio/libsndf
 
 GNU_CONFIGURE=	yes
 USES=		desktop-file-utils gmake pkgconfig
+USE_CXXSTD=	c++11
 USE_GCC=	yes
 USE_WX=		2.8
 WX_CONF_ARGS=	absolute



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