Bug 712645 - glog could makes use of features from gflags
Summary: glog could makes use of features from gflags
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: glog
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: John Khvatov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-12 05:38 UTC by Josh Chia
Modified: 2012-08-07 16:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 16:24:31 UTC
Type: ---


Attachments (Terms of Use)

Description Josh Chia 2011-06-12 05:38:39 UTC
Description of problem:
In the original design described here, google-glog can accept command-line arguments if gflags is installed:
http://google-glog.googlecode.com/svn/trunk/doc/glog.html

However, this is determined at build time. After installing both glog and gflags, I built and ran a test program, and gave it the option "--logtostderr", but it was not recognized. The gflags package is not a dependency of the glog package, so I believe glog wasn't compiled to use gflags when the package was built. To reach its full potential available in the source code, the glog package should be built with gflags present and with a dependency on gflags.

What I said should also apply to the devel packages.

Version-Release number of selected component (if applicable):
glog 0.3.0
glog-devel 0.3.0

How reproducible:
There is a test program exercising both gflags and glog. Compile the source code, run the resulting executable with requisite flag, and get unsatisfactory result.

Steps to Reproduce:
1. Make a file test.cpp like this:
#include <gflags/gflags.h>
#include <glog/logging.h>

int main(int argc, char *argv[]) {
  google::ParseCommandLineFlags(&argc, &argv, true);
  google::InitGoogleLogging(argv[0]);
  LOG(INFO) << "Test";
  return 0;
}


2.
build it using "g++ test.cpp -lglog -lgflags"

3.
Run it with ./a.out --logtostderr

4. Get "ERROR: unknown command line flag 'logtostderr'". If glog were built with gflag support, then the option would have been recognized.

Expected results:
The program should print "Test" to stderr.

Additional info:
I was running Fedora 15 and building with G++ 4.6, if it makes any difference.

Comment 1 Fedora End Of Life 2012-08-07 16:24:33 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.