Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 02:51:00 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r456083 - branches/2017Q4/dns/packetq
Message-ID:  <201712120251.vBC2p0X7095819@repo.freebsd.org>

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

Log:
  MFH: r456077
  
  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)
  Approved by:	ports-secteam blanket

Modified:
  branches/2017Q4/dns/packetq/Makefile
Directory Properties:
  branches/2017Q4/   (props changed)

Modified: branches/2017Q4/dns/packetq/Makefile
==============================================================================
--- branches/2017Q4/dns/packetq/Makefile	Tue Dec 12 02:49:56 2017	(r456082)
+++ branches/2017Q4/dns/packetq/Makefile	Tue Dec 12 02:51:00 2017	(r456083)
@@ -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?201712120251.vBC2p0X7095819>