Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517708

Summary: =dev-cpp/glog-0.3.3-r1 FEATURES=test - .../work/glog-0.3.3/src/demangle_unittest.cc:123:43: error: ‘ParseCommandLineFlags’ was not declared in this scope
Product: Gentoo Linux Reporter: Markus Walter <gentoo>
Component: [OLD] LibraryAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal CC: cpp+disabled, levertond
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info

Description Markus Walter 2014-07-21 17:46:50 UTC
Created attachment 381270 [details]
build log

On my hardened ~amd64 machine with gcc-4.9.0 I see the following failure in glog. This does not occur if tests are disabled.

/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/demangle_unittest.cc: In function ‘int main(int, char**)’:
/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/demangle_unittest.cc:123:43: error: ‘ParseCommandLineFlags’ was not declared in this scope
   ParseCommandLineFlags(&argc, &argv, true);
                                           ^
/var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/demangle_unittest.cc:123:43: note: suggested alternative:
In file included from ./src/glog/logging.h:85:0,
                 from /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/utilities.h:82,
                 from /var/tmp/portage/dev-cpp/glog-0.3.3-r1/work/glog-0.3.3/src/demangle_unittest.cc:34:
/usr/include/gflags/gflags.h:346:31: note:   ‘gflags::ParseCommandLineFlags’
 extern GFLAGS_DLL_DECL uint32 ParseCommandLineFlags(int *argc, char*** argv, bool remove_flags);
                               ^
Makefile:872: recipe for target 'demangle_unittest-demangle_unittest.o' failed
make: *** [demangle_unittest-demangle_unittest.o] Error 1
Comment 1 Markus Walter 2014-07-21 17:47:03 UTC
Created attachment 381272 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2014-07-28 05:32:28 UTC
what version of gflags do you have ?  it passes for me w/gflags-2.0 and 2.1.1-r1.
Comment 3 Markus Walter 2014-07-28 18:50:28 UTC
(In reply to SpanKY from comment #2)
> what version of gflags do you have ?  it passes for me w/gflags-2.0 and
> 2.1.1-r1.

For me the error happens with gflags-2.1.1-r1, but not with 2.0.
Comment 4 SpanKY gentoo-dev 2014-07-29 15:19:06 UTC
if you rebuild gflags (2.1.1-r1), then glog, does it work ?
Comment 5 Markus Walter 2014-07-29 15:35:49 UTC
(In reply to SpanKY from comment #4)
> if you rebuild gflags (2.1.1-r1), then glog, does it work ?

No. I rebuilt gflags twice and I saw no change when merging glog after each iteration.
Comment 6 SpanKY gentoo-dev 2016-03-02 18:08:15 UTC
is this still an issue ?
Comment 7 Markus Walter 2016-03-03 08:22:25 UTC
(In reply to SpanKY from comment #6)
> is this still an issue ?

I just tried with glog-0.3.4 and the problem is gone.
Comment 8 SpanKY gentoo-dev 2016-03-03 14:52:18 UTC
thanks for checking