xixip / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Cannot compile on Linux gcc 4.8.1 #221

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output? What do you see instead?
I expect the compilation process to finish without error.
But here are the error messages:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER 
-DNDEBUG -g -O2 -MT libglog_la-utilities.lo -MD -MP -MF 
.deps/libglog_la-utilities.Tpo -c src/utilities.cc  -fPIC -DPIC -o 
.libs/libglog_la-utilities.o
src/utilities.cc:242:2: error: #error "Must define __NR_gettid for non-x86 
platforms"
 #error "Must define __NR_gettid for non-x86 platforms"
  ^
src/utilities.cc: In function 'pid_t 
google::glog_internal_namespace_::GetTID()':
src/utilities.cc:249:25: error: '__NR_gettid' was not declared in this scope
     pid_t tid = syscall(__NR_gettid);
                         ^
make: *** [libglog_la-utilities.lo] Error 1

What version of the product are you using? On what operating system?

glog 0.3.3
gcc: (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
Linux:  3.4.61 #1 SMP Tue Sep 10 16:49:43 EDT 2013 x86_64 x86_64 x86_64 
GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by zhanxw on 2 Sep 2014 at 4:40