Issue 433 in protobuf: "ValuesIn" was not declared error in 'make check' under Ubuntu

916 views
Skip to first unread message

prot...@googlecode.com

unread,
Nov 8, 2012, 3:37:57 PM11/8/12
to prot...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 433 by leslie.r...@gmail.com: "ValuesIn" was not declared error
in 'make check' under Ubuntu
http://code.google.com/p/protobuf/issues/detail?id=433

What steps will reproduce the problem?
1. ./configure
2. make
3. make check

What is the expected output? What do you see instead?
Expected successful compilation. Instead received an error. See text below.


Please use labels and text to provide additional information.
sisinc@sisinc-virtual-machine:~/Desktop/protobuf-2.4.1$ g++ --version
g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sisinc@sisinc-virtual-machine:~/Desktop/protobuf-2.4.1$ uname -a
Linux sisinc-virtual-machine 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9
19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
sisinc@sisinc-virtual-machine:~/Desktop/protobuf-2.4.1$ make check
Making check in .
make[1]: Entering directory `/home/sisinc/Desktop/protobuf-2.4.1'
make check-local
make[2]: Entering directory `/home/sisinc/Desktop/protobuf-2.4.1'
Making lib/libgtest.a lib/libgtest_main.a in gtest
make[3]: Entering directory `/home/sisinc/Desktop/protobuf-2.4.1/gtest'
depbase=`echo src/gtest.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I./build-aux -I. -I./include -g -DNDEBUG -MT src/gtest.lo -MD -MP -MF
$depbase.Tpo -c -o src/gtest.lo src/gtest.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./build-aux -I. -I./include -g
-DNDEBUG -MT src/gtest.lo -MD -MP -MF src/.deps/gtest.Tpo -c src/gtest.cc
-fPIC -DPIC -o src/.libs/gtest.o
In file included from ./include/gtest/gtest-param-test.h:159:0,
from ./include/gtest/gtest.h:59,
from src/gtest.cc:34:
./include/gtest/internal/gtest-param-util-generated.h: In instantiation of
‘testing::internal::ValueArray2<T1, T2>::operator
testing::internal::ParamGenerator<T>() const [with T = bool; T1 = bool; T2
= bool]’:
./include/gtest/gtest-param-test.h:1186:28: required from here
./include/gtest/internal/gtest-param-util-generated.h:80:26: error:
‘ValuesIn’ was not declared in this scope, and no declarations were found
by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from ./include/gtest/gtest.h:59:0,
from src/gtest.cc:34:
./include/gtest/gtest-param-test.h:288:58: note: ‘template<class Container>
testing::internal::ParamGenerator<typename Container::value_type>
testing::ValuesIn(const Container&)’ declared here, later in the
translation unit
make[3]: *** [src/gtest.lo] Error 1
make[3]: Leaving directory `/home/sisinc/Desktop/protobuf-2.4.1/gtest'
make[2]: *** [check-local] Error 2
make[2]: Leaving directory `/home/sisinc/Desktop/protobuf-2.4.1'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/sisinc/Desktop/protobuf-2.4.1'


prot...@googlecode.com

unread,
Dec 3, 2012, 6:31:57 PM12/3/12
to prot...@googlegroups.com
Updates:
Status: OutOfScope
Owner: xiaof...@google.com

Comment #1 on issue 433 by xiaof...@google.com: "ValuesIn" was not declared
error in 'make check' under Ubuntu
http://code.google.com/p/protobuf/issues/detail?id=433

This is a gtest issue. I'll mark this as "OutOfScope". You can file a bug
against gtest here: http://code.google.com/p/googletest/issues/list

prot...@googlecode.com

unread,
Jan 9, 2013, 2:02:35 PM1/9/13
to prot...@googlegroups.com

Comment #2 on issue 433 by walker.z...@gmail.com: "ValuesIn" was not
declared error in 'make check' under Ubuntu
http://code.google.com/p/protobuf/issues/detail?id=433

I experienced the same problem on Fedora 17.

The version of gtest curerntly included in the protobug-2.4.1.tar.gz
downloand seems to be 1.4.0. If I use gtest 1.5.0 it compiles fine and
make check works and all tests pass. Using gtest 1.6.0 it compiles fine
but tests fail.

Perhaps gtest 1.5.0 can be included in the protobuf-2.4.1 download instead
of 1.4.0.



prot...@googlecode.com

unread,
Feb 10, 2013, 5:22:09 PM2/10/13
to prot...@googlegroups.com

Comment #3 on issue 433 by john.cal...@gmail.com: "ValuesIn" was not
declared error in 'make check' under Ubuntu
http://code.google.com/p/protobuf/issues/detail?id=433

I'm having the same problem on Ubuntu 12.10. It seems to me you are correct
that gtest is at fault, but I'd agree with Walker that the problem appears
to have been fixed in gtest 1.5.0, putting the ball back in your court, so
to speak. The right thing to do here is to upgrade gtest to the version in
which the bug has been fixed.

prot...@googlecode.com

unread,
Feb 18, 2013, 2:43:10 AM2/18/13
to prot...@googlegroups.com

Comment #4 on issue 433 by xiaof...@google.com: "ValuesIn" was not declared
error in 'make check' under Ubuntu
http://code.google.com/p/protobuf/issues/detail?id=433

We have already updated the version of gtest in our trunk. Please help
check if you still experience the same problem with the latest code.

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