pombreda / google-glog

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

can't compile on FreeBSD #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Get glog sources, extract
2. ./configure
3. gmake

What is the expected output? What do you see instead?

libtool: compile:  /usr/local/bin/g++46 -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"
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
gmake: *** [libglog_la-utilities.lo] Error 1

When building with -D__NR_gettid I can pass this point, but later I get:

libtool: link: /usr/local/bin/g++46 -D_THREAD_SAFE -pthread -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g 
-O2 -D__NR_gettid -D_THREAD_SAFE -pthread -o .libs/logging_unittest 
logging_unittest-logging_unittest.o  ./.libs/libglog.so -lpthread -pthread 
-Wl,-rpath -Wl,/usr/local/glog/lib
./.libs/libglog.so: undefined reference to `backtrace'
collect2: ld returned 1 exit status
gmake: *** [logging_unittest] Error 1

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

glog-0.3.2
FreeBSD 9.1-PRERELEASE

Please provide any additional information below.

Original issue reported on code.google.com by zhega...@enaza.ru on 23 Jan 2013 at 5:12