calvert1991/googlemock

gmock-printers.h doesn't compile with Sun Studio

Closed this issue · 1 comments

What steps will reproduce the problem?
1. Install the Sun Studio 12 compiler
2. Compile googlemock
3.

What version of the product are you using? On what operating system?

gmock-1.4.0
Solaris 10
Sun Studio 12


Please provide any additional information below.

Error message:

mkdir: Failed to make directory "src/.libs"; File exists
 /opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I./build-aux
-I./gtest/include -I./include -I/opt/csw/include -g -xarch=386
-I/opt/csw/include -c src/gmock.cc  -KPIC -DPIC -o src/.libs/gmock.o
 /opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I./build-aux
-I./gtest/include -I./include -I/opt/csw/include -g -xarch=386
-I/opt/csw/include -c src/gmock-printers.cc  -KPIC -DPIC -o
src/.libs/gmock-printers.o
 /opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I./build-aux
-I./gtest/include -I./include -I/opt/csw/include -g -xarch=386
-I/opt/csw/include -c src/gmock-internal-utils.cc  -KPIC -DPIC -o
src/.libs/gmock-internal-utils.o
 /opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I./build-aux
-I./gtest/include -I./include -I/opt/csw/include -g -xarch=386
-I/opt/csw/include -c src/gmock-matchers.cc  -KPIC -DPIC -o
src/.libs/gmock-matchers.o
 /opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I./build-aux
-I./gtest/include -I./include -I/opt/csw/include -g -xarch=386
-I/opt/csw/include -c src/gmock-cardinalities.cc  -KPIC -DPIC -o
src/.libs/gmock-cardinalities.o
"./include/gmock/internal/gmock-internal-utils.h", line 466: Warning:
Identifier expected instead of "}".
"./include/gmock/gmock-printers.h", line 480: Error: static
testing::internal::TuplePrefixPrinter<1>::PrintPrefixTo<testing::internal::Tuple
PrefixPrinter<1>::Tuple>(const
testing::internal::TuplePrefixPrinter<1>::Tuple&, std::ostream *) already
had a body defined.
1 Error(s) and 1 Warning(s) detected.
gmake[3]: *** [src/gmock-matchers.lo] Error 1


Original issue reported on code.google.com by maciej.b...@gmail.com on 15 Oct 2009 at 3:37

Thanks for reporting the issue. We would like the widest possible platform 
support but 
unfortunately don't have resources to build and test on many platforms. That 
means we 
are not supporting Google Mock on Solaris. However, we do accept patches that 
make it 
work on a particular platform. If you wish to submit one, please see 
http://code.google.com/p/googlemock/wiki/DevGuide for information.

Original comment by vladlosev on 12 Nov 2009 at 9:59

  • Changed state: WontFix