Issue 41 in open-vcdiff: Fails to compile on OS X 10.9 (missing <tr1/tuple>)

64 views
Skip to first unread message

open-...@googlecode.com

unread,
Oct 27, 2013, 12:00:45 AM10/27/13
to open-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 41 by Jens.Al...@gmail.com: Fails to compile on OS X 10.9
(missing <tr1/tuple>)
http://code.google.com/p/open-vcdiff/issues/detail?id=41

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?)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

open-...@googlecode.com

unread,
Oct 31, 2013, 11:40:55 AM10/31/13
to open-...@googlegroups.com

Comment #1 on issue 41 by m...@williammayor.co.uk: Fails to compile on OS X
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

open-...@googlecode.com

unread,
Oct 20, 2014, 6:07:27 AM10/20/14
to open-...@googlegroups.com

Comment #3 on issue 41 by CosmicRa...@gmail.com: Fails to compile on OS X
10.9 (missing <tr1/tuple>)
https://code.google.com/p/open-vcdiff/issues/detail?id=41

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?
Reply all
Reply to author
Forward
0 new messages