Fails to compile on OS X 10.9 (missing <tr1/tuple>)
Closed this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Install OS X 10.9 and Xcode 5.0.1
2. Download and unpack open-vcdiff 0.8.3 tar ball
3. ./configure
4. make
What is the expected output? What do you see instead?
...
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/zlib
-I./gflags/src -I./gtest -I./gtest/include -DNDEBUG -DNO_THREADS -Wall
-Wwrite-strings -Woverloaded-virtual -W -g -O2 -MT gtest.lo -MD -MP -MF
.deps/gtest.Tpo -c gtest/src/gtest.cc -fno-common -DPIC -o .libs/gtest.o
In file included from gtest/src/gtest.cc:34:
In file included from ./gtest/include/gtest/gtest.h:55:
In file included from ./gtest/include/gtest/internal/gtest-internal.h:40:
./gtest/include/gtest/internal/gtest-port.h:433:10: fatal error: 'tr1/tuple'
file not found
#include <tr1/tuple>
^
1 error generated.
make: *** [gtest.lo] Error 1
What version of the product are you using? On what operating system?
open-vcdiff 0.8.3
Mac OS X 10.9
Xcode 5.0.1
This is the first time I've tried to build this, so I don't know whether 0.8.3
would build on an earlier OS X. (But the home page says it's compatible, so I
imagine 0.8.3 must've been tested on 10.8?)
Original issue reported on code.google.com by Jens.Al...@gmail.com
on 27 Oct 2013 at 4:00
GoogleCodeExporter commented
I have managed to fix this issue by adding CPPFLAGS=-DGTEST_USE_OWN_TR1_TUPLE=1
to the ./configure command.
i.e. change step 3 to:
./configure CPPFLAGS=-DGTEST_USE_OWN_TR1_TUPLE=1
Original comment by m...@williammayor.co.uk
on 31 Oct 2013 at 3:40
GoogleCodeExporter commented
Resolved in open-vcdiff version 0.8.4.
Original comment by openvcd...@gmail.com
on 14 May 2014 at 11:21
- Changed state: Fixed
GoogleCodeExporter commented
I tried #1, and the tr1 error is now gone, but instead I'm getting
error: call to function 'ValuesIn' that is neither visible in the template
definition nor found by argument-dependent
lookup
return ValuesIn(array);
^
./include/gtest/gtest-param-test.h:1186:10: note: in instantiation of function
template specialization 'testing::internal::ValueArray2<bool, bool>::operator
ParamGenerator<bool>'
requested here
return Values(false, true);
^
./include/gtest/gtest-param-test.h:283:29: note: 'ValuesIn' should be declared
prior to the call site
internal::ParamGenerator<T> ValuesIn(const T (&array)[N]) {
^
1 warning and 1 error generated.
Has anyone had this issue?
Original comment by CosmicRa...@gmail.com
on 20 Oct 2014 at 10:07