fuzhufang / google-glog

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

-fPIC issue #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am trying to install glog-0.3.3
2. I run configure and then make
3.

What is the expected output? What do you see instead?
The installation should complete successfully.
However, I get the following error:
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32S 
against `.rodata' can not be used when making a shared object; recompile with 
-fPIC
/usr/local/lib/libgflags.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libglog.la] Error 1

What version of the product are you using? On what operating system?
product version: glog-0.3.3
operating system: Linux cuda 2.6.32-358.el6.x86_64 #1 SMP x86_64 GNU/Linux

Please provide any additional information below.
I tried putting -fPIC at various locations in the make file. Attached is the 
Makefile for the same. But I still get the error. please help.

Original issue reported on code.google.com by maheshba...@gmail.com on 15 Jan 2015 at 5:20

Attachments: