I’ve been trying to compile panda on opensolaris with sun studio 12 and I get an error I can’t solve
1.
sunCC -features=extensions -c -o Opt3-solaris/dtoolutil_dtoolutil_composite1.o -I. -I/export/home/ilcra/panda3d/panda3d/dtool -I../dtoolbase -I/usr/include/python2.4 -g -O2 -fPIC dtoolutil_composite1.cxx
2.
sunCC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
3.
"pandaFileStreamBuf.h", line 53: Warning: Identifier expected instead of "}".
4.
"../dtoolbase/deletedBufferChain.h", line 45: Warning: Identifier expected instead of "}".
5.
"filename.h", line 52: Warning: Identifier expected instead of "}".
6.
"filename.h", line 60: Warning: Identifier expected instead of "}".
7.
"/opt/studio/prod/include/CC/Cstd/./memory", line 490: Error: Using static_cast to convert from std::pair<const std::string, std::string>* to __rwstd::__rb_tree<std::string, std::pair<const std::string, std::string>, __rwstd::__select1st<std::pair<const std::string, std::string>, std::string>, std::less<std::string>, pallocator_single<std::pair<const std::string, std::string>>>::__rb_tree_node_buffer* not allowed.
8.
"/opt/studio/prod/include/CC/Cstd/rw/tree", line 167: Where: While instantiating "std::allocator_interface<pallocator_single<std::pair<const std::string, std::string>>, __rwstd::__rb_tree<std::string, std::pair<const std::string, std::string>, __rwstd::__select1st<std::pair<const std::string, std::string>, std::string>, std::less<std::string>, pallocator_single<std::pair<const std::string, std::string>>>::__rb_tree_node_buffer>::allocate(unsigned, __rwstd::__rb_tree<std::string, std::pair<const std::string, std::string>, __rwstd::__select1st<std::pair<const std::string, std::string>, std::string>, std::less<std::string>, pallocator_single<std::pair<const std::string, std::string>>>::__rb_tree_node_buffer*)".
9.
"/opt/studio/prod/include/CC/Cstd/rw/tree", line 167: Where: Instantiated from non-template code.
10.
1 Error(s) and 4 Warning(s) detected.
11.
*** Error code 1
12.
make: Fatal error: Command failed for target `Opt3-solaris/dtoolutil_dtoolutil_composite1.o'
13.
Current working directory /export/home/ilcra/panda3d/panda3d/dtool/src/dtoolutil
14.
*** Error code 1
15.
make: Fatal error: Command failed for target `dtoolutil'
I’m using ppremake and made a solaris target.
Any ideas?