Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 02:30:49 +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: r456077 - head/dns/packetq
Message-ID:  <201712120230.vBC2Undg088218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Dec 12 02:30:49 2017
New Revision: 456077
URL: https://svnweb.freebsd.org/changeset/ports/456077

Log:
  dns/packetq: require C++11 toolchain (on powerpc*, mips*, sparc*)
  
  cc1plus: error: unrecognized command line option "-std=c++0x"
  
  In file included from dns.cpp:22:
  In file included from ./dns.h:31:
  In file included from ./packet_handler.h:33:
  In file included from ./sql.h:43:
  ./variant.h:297:34: error: expected '(' for function-style cast or type construction
              return std::hash<bool>()(m_val.m_bool);
                               ~~~~^
  ./variant.h:297:20: error: no member named 'hash' in namespace 'std'; did you mean simply 'hash'?
              return std::hash<bool>()(m_val.m_bool);
                     ^~~~~~~~~
                     hash
  ./variant.h:293:17: note: 'hash' declared here
      std::size_t hash() const
                  ^
  ./variant.h:297:36: error: expected expression
              return std::hash<bool>()(m_val.m_bool);
                                     ^
  ./variant.h:299:33: error: expected '(' for function-style cast or type construction
              return std::hash<int>()(m_val.m_int);
                               ~~~^
  ./variant.h:299:20: error: no member named 'hash' in namespace 'std'; did you mean simply 'hash'?
              return std::hash<int>()(m_val.m_int);
                     ^~~~~~~~~
                     hash
  ./variant.h:293:17: note: 'hash' declared here
      std::size_t hash() const
                  ^
  ./variant.h:299:35: error: expected expression
              return std::hash<int>()(m_val.m_int);
                                    ^
  ./variant.h:301:35: error: expected '(' for function-style cast or type construction
              return std::hash<float>()(m_val.m_float);
                               ~~~~~^
  ./variant.h:301:20: error: no member named 'hash' in namespace 'std'; did you mean simply 'hash'?
              return std::hash<float>()(m_val.m_float);
                     ^~~~~~~~~
                     hash
  ./variant.h:293:17: note: 'hash' declared here
      std::size_t hash() const
                  ^
  ./variant.h:301:37: error: expected expression
              return std::hash<float>()(m_val.m_float);
                                      ^
  In file included from dns.cpp:22:
  In file included from ./dns.h:31:
  In file included from ./packet_handler.h:33:
  ./sql.h:1766:8: error: explicit specialization of non-template struct 'hash'
  struct hash<std::vector<packetq::Variant> > {
         ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10 errors generated.
  
  Reported by:	pkg-fallout (mips64)

Modified:
  head/dns/packetq/Makefile   (contents, props changed)

Modified: head/dns/packetq/Makefile
==============================================================================
--- head/dns/packetq/Makefile	Tue Dec 12 02:22:10 2017	(r456076)
+++ head/dns/packetq/Makefile	Tue Dec 12 02:30:49 2017	(r456077)
@@ -16,7 +16,7 @@ GH_ACCOUNT=	DNS-OARC
 GH_PROJECT=	PacketQ
 USE_GITHUB=	yes
 
-USES=		autoreconf
+USES=		autoreconf compiler:c++11-lib
 GNU_CONFIGURE=	yes
 
 OPTIONS_DEFINE=	DOCS



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