[Botan-devel] Botan SUNWspro build errors

Yan Shpilsky yshpilsk at stevens.edu
Tue Oct 9 13:26:37 EDT 2007


Hello,
I am having issues building Botan using SUNWspro on Solaris.
Initially, I had received an error:

CC -Ibuild/include -xO2  +p -D__EXTENSIONS__ +w -c src/asn1_alt.cpp -o 
build/lib/asn1_alt.o
"build/include/botan/stl_util.h", line 79: Error: Could not find a 
match for std::multimap<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<const std::string, 
std::string>>>::insert(std::pair<std::string, std::string>) needed in 
Botan::multimap_insert<std::string, 
std::string>(std::multimap<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<const std::string, 
std::string>>>&, const std::string &, const std::string &).
"src/asn1_alt.cpp", line 42:     Where: While instantiating 
"Botan::multimap_insert<std::string, 
std::string>(std::multimap<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<const std::string, 
std::string>>>&, const std::string &, const std::string &)".
"src/asn1_alt.cpp", line 42:     Where: Instantiated from non-template 
code.
1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `build/lib/asn1_alt.o'

After some searching I noticed a note on the Botan site through the FAQ 
(http://botan.randombit.net/porting/bugs/forte.html) which instructed 
me to patch asn1_obj.h line 202 and make the following change:
multimap.insert(std::make_pair(key, value)); 
to 
multimap.insert(std::make_pair<const K, V>(key, value)); 

While this code was not in asn1_obj.h, it was in stl_util.h, where the 
error had occurred. Now it compiles past this point, however, I am 
receiving another similar error:

CC -Ibuild/include -xO2  +p -D__EXTENSIONS__ +w -c src/datastor.cpp -o 
build/lib/datastor.o
"src/datastor.cpp", line 53: Error: Could not find a match for 
std::multimap<std::string, std::string, std::less<std::string>, 
std::allocator<std::pair<const std::string, 
std::string>>>::insert(std::pair<std::string, std::string>) needed in 
Botan::Data_Store::search_with(const Botan::Data_Store::Matcher&) const.
1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `build/lib/datastor.o'

Could someone please assist with this problem?
I was able to build successfully using g++ on Linux, but I am unable to 
get a working version of g++ on the Solaris machine. Any help would be 
greatly appreciated.

Regards,
Yan



More information about the botan-devel mailing list