Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source/logging_unittest.cc:64 error : 'GFLAGS_NAMESPACE' is not not a namespance-name #131

Closed
NoelCarlton opened this issue Oct 17, 2016 · 7 comments

Comments

@NoelCarlton
Copy link

after I unzip the glog-master and when I hit 'make install' cammand, i get this trouble:source/logging_unittest.cc:64 error : 'GFLAGS_NAMESPACE' is not not a namespance-name
and source/logging_unittest.cc:64 error : expected namespace-name before ';' token
how this come out? waitting for help……

@sergiud
Copy link
Collaborator

sergiud commented Oct 17, 2016

You need a recent version of gflags. You can use glog version 0.3.4 instead of the current master.

@NoelCarlton
Copy link
Author

Thanks a lot for get message from you. But I get the same problem. I downloaded a new version on github and the release is 0.3.4. ‘src/logging _unittest.cc:64: error: 'GFLAGS_NAMESPACE' is not a namespace-name.

Come from Noel.MEIZU note3

-------- 原始邮件 --------
发件人:Sergiu Deitsch [email protected]
时间:周一 10月17日 15:53
收件人:google/glog [email protected]
抄送:NoelCarlton [email protected],Author [email protected]
主题:Re: [google/glog] source/logging_unittest.cc:64 error : 'GFLAGS_NAMESPACE' is not not a namespance-name (#131)

You need a recent version of gflags. You can use version 0.3.4 instead of the current master.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/131#issuecomment-254137039, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOnGpZy0tYcS3TFbOmLvWvrVnx7I3pNDks5q0ymAgaJpZM4KYTEL.

@sergiud
Copy link
Collaborator

sergiud commented Oct 17, 2016

How do you compile glog? Did glog find the gflags version you pulled and compiled from master?

@NoelCarlton
Copy link
Author

I download zip file from github and unzip at /usr/local/ . Entering the glog-master dir I hit commands as github put . The ./configure and make are ok, only make install get the error . My environment is Centos release 6.8 , x86_64. And I install gflag by yum, found gflags.h and gflags _completion.h at /usr/include/gfalg

Come from Noel.MEIZU note3

-------- 原始邮件 --------
发件人:童 磊 [email protected]
时间:周一 10月17日 16:12
收件人:google/glog [email protected]
主题:Re: [google/glog] source/logging_unittest.cc:64 error : 'GFLAGS_NAMESPACE' is not not a namespance-name (#131)

Thanks a lot for get message from you. But I get the same problem. I downloaded a new version on github and the release is 0.3.4. ‘src/logging _unittest.cc:64: error: 'GFLAGS_NAMESPACE' is not a namespace-name.

Come from Noel.MEIZU note3

-------- 原始邮件 --------
发件人:Sergiu Deitsch [email protected]
时间:周一 10月17日 15:53
收件人:google/glog [email protected]
抄送:NoelCarlton [email protected],Author [email protected]
主题:Re: [google/glog] source/logging_unittest.cc:64 error : 'GFLAGS_NAMESPACE' is not not a namespance-name (#131)

You need a recent version of gflags. You can use version 0.3.4 instead of the current master.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/131#issuecomment-254137039, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOnGpZy0tYcS3TFbOmLvWvrVnx7I3pNDks5q0ymAgaJpZM4KYTEL.

@sergiud
Copy link
Collaborator

sergiud commented Oct 17, 2016

Please post your complete log.

@NoelCarlton
Copy link
Author

@sergiud Blew ,I retry install command
[root@MiWiFi-R3-srv glog-master]# ls
aclocal.m4 configure install-sh missing
AUTHORS configure.ac libglog.la mkinstalldirs
ChangeLog CONTRIBUTING.md libglog.pc NEWS
cmake CONTRIBUTORS libglog.pc.in packages
CMakeLists.txt COPYING libtool README
compile depcomp ltmain.sh README.windows
config.guess doc m4 src
config.log glog-config.cmake.in Makefile test-driver
config.status google-glog.sln Makefile.am vsprojects
config.sub INSTALL Makefile.in
[root@MiWiFi-R3-srv glog-master]# make install
g++ -DHAVE_CONFIG_H -I. -I./src -I./src -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -MT src/logging_unittest-logging_unittest.o -MD -MP -MF src/.deps/logging_unittest-logging_unittest.Tpo -c -o src/logging_unittest-logging_unittest.o test -f 'src/logging_unittest.cc' || echo './'src/logging_unittest.cc
In file included from src/logging_unittest.cc:58:
src/googletest.h:93: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/googletest.h:94: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/logging_unittest.cc:64: error: ‘GFLAGS_NAMESPACE’ is not a namespace-name
src/logging_unittest.cc:64: error: expected namespace-name before ‘;’ token
make: *** [src/logging_unittest-logging_unittest.o] Error 1

@sergiud
Copy link
Collaborator

sergiud commented Oct 19, 2016

The log is incomplete. I don't see any ./configure output.

@sergiud sergiud closed this as completed Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants