jinxuan / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

failure during "make" of sparsehash on mac osx 10.8.5 #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1../configure
2.make
3.

What is the expected output? What do you see instead?

make  all-am
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o 
template_util_unittest template_util_unittest.o   
Undefined symbols for architecture x86_64:
  "std::ios_base::Init::Init()", referenced from:
      __GLOBAL__sub_I_template_util_unittest.cc in template_util_unittest.o
  "std::ios_base::Init::~Init()", referenced from:
      __GLOBAL__sub_I_template_util_unittest.cc in template_util_unittest.o
  "std::cout", referenced from:
      _main in template_util_unittest.o
  "std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
      _main in template_util_unittest.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [template_util_unittest] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?
I downloaded tar.gz file: 
https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz

extracted the files and ran ./compile and make in os x with the latest version 
of g++.

Please provide any additional information below.

Original issue reported on code.google.com by jgreg...@gmail.com on 31 Jan 2014 at 7:44

GoogleCodeExporter commented 9 years ago
I'm having problems in osx 10.9.2 as well.

In file included from src/hashtable_test.cc:60:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../lib/c++/v1/vector:502:5: error: implicit instantiation of undefined 
template '__static_assert_test<false>'
    static_assert((is_same<typename allocator_type::value_type, value_type>::value),

src/hashtable_test.cc:614:8: error: no viable conversion from 
'google::BaseHashtableInterface<google::sparse_hash_map<int, int, 
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned
      long, 18446744073709551615> > >::iterator' to 'const google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long,
      18446744073709551615> > >::const_iterator'
  ci = this->ht_.begin();

It might just be src/hashtable_test.cc but it gives up compiling so I'm not 
sure.  

Original comment by kbrani...@gmail.com on 6 Apr 2014 at 7:01