Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 17:18:02 GMT
From:      Adrià Garriga <adria.garriga@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187843: devel/shiboken error: no member named 'tr1' in namespace 'std'
Message-ID:  <201403221718.s2MHI2LB042653@cgiserv.freebsd.org>
Resent-Message-ID: <201403221720.s2MHK3pY082804@freefall.freebsd.org>

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

>Number:         187843
>Category:       ports
>Synopsis:       devel/shiboken  error: no member named 'tr1' in namespace 'std'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 22 17:20:03 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Adrià Garriga
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD stone.info.gf 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Build of the devel/shiboken port fails with the following errors:

/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/dense_hash_map:106:27: error: no member named 'tr1' in namespace 'std'
          class HashFcn = SPARSEHASH_HASH<Key>,   // defined in sparseconfig.h
                          ^~~~~~~~~~~~~~~
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/sparsehash/sparseconfig.h:22:29: note: expanded from macro 'SPARSEHASH_HASH'
    #define SPARSEHASH_HASH HASH_NAMESPACE::hash
                            ^~~~~~~~~~~~~~
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/sparsehash/sparseconfig.h:20:33: note: expanded from macro 'HASH_NAMESPACE'
    #define HASH_NAMESPACE std::tr1
                           ~~~~~^
In file included from /usr/ports/devel/shiboken/work/shiboken-1.1.1/libshiboken/sbkconverter.cpp:26:
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/dense_hash_map:106:42: error: expected ',' or '>' in template-parameter-list
          class HashFcn = SPARSEHASH_HASH<Key>,   // defined in sparseconfig.h
                                         ^
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/dense_hash_map:106:47: error: expected unqualified-id
          class HashFcn = SPARSEHASH_HASH<Key>,   // defined in sparseconfig.h
                                              ^
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/dense_hash_map:303:1: error: 'inline' can only appear on functions
inline void swap(dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>& hm1,
^
/usr/ports/devel/shiboken/work/shiboken-1.1.1/ext/sparsehash/google/dense_hash_map:303:13: error: variable 'swap' declared as a template

>How-To-Repeat:
cd /usr/ports/devel/shiboken
make
>Fix:
change std::tr1 to std in ext/sparsehash/google/sparsehash/sparseconfig.h

Patch attached with submission follows:

*** sparseconfig.h	2014-03-22 18:07:37.535447633 +0100
--- sparseconfog.h	2014-03-22 18:15:53.037577794 +0100
***************
*** 17,23 ****
      /* the location of the header defining hash functions */
      #define HASH_FUN_H <tr1/functional>
      /* the namespace of the hash<> function */
!     #define HASH_NAMESPACE std
      /* The system-provided hash function including the namespace. */
      #define SPARSEHASH_HASH HASH_NAMESPACE::hash
  #endif
--- 17,23 ----
      /* the location of the header defining hash functions */
      #define HASH_FUN_H <tr1/functional>
      /* the namespace of the hash<> function */
!     #define HASH_NAMESPACE std::tr1
      /* The system-provided hash function including the namespace. */
      #define SPARSEHASH_HASH HASH_NAMESPACE::hash
  #endif


>Release-Note:
>Audit-Trail:
>Unformatted:



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