foxwolf / google-glog

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

-lexecinfo is needed for backtrace() on FreeBSD #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After ./configure && make:

/bin/sh ./libtool --tag=CXX    --mode=link g++  -D_THREAD_SAFE -pthread      
-Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  
-DNO_FRAME_POINTER   -g -O2  -D_THREAD_SAFE -pthread  -o logging_unittest   
logging_unittest-logging_unittest.o   libglog.la       -lpthread
libtool: link: g++ -D_THREAD_SAFE -pthread -Wall -Wwrite-strings 
-Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -D_THREAD_SAFE 
-pthread -o .libs/logging_unittest logging_unittest-logging_unittest.o  
./.libs/libglog.so -lpthread -pthread -Wl,-rpath -Wl,/usr/local/lib
./.libs/libglog.so: undefined reference to `backtrace'
*** [logging_unittest] Error code 1

On FreeBSD backtrace() is provided by libexecinfo

Original issue reported on code.google.com by ema...@freebsd.org on 19 Jun 2014 at 6:41