我在安装过滤敏感词扩展的时候出现错误,过程如下:
#tar jxvf trie_filter-1.0.0.tar.gz
#cd trie_filter-1.0.0
# ./configure --with-php-config=/usr/local/bin/php-config
:
:
:
:
#make (这一步出现下面错误:
/usr/bin/ld: /usr/local/lib/libdatrie.a(trie.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libdatrie.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [trie_filter.la] Error 1
百度和google了半天,没有解决,请高手指点,谢谢!!!
mapeijie888 于 2011-11-21 10:23:04发表:
使用命令行编译通过 不需要添加-fPIC
gcc -lglut -lGL -lGLU -o alpha_test alpha_test.c
使用eclipse编译OpenGl 出现这个问题
/usr/bin/ld: ./alpha_test.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
./alpha_test.o: could not read symbols: Bad value
fengchen_linux 于 2011-10-21 13:06:01发表:
你是不是没安装那个库呀
like7419 于 2011-10-20 10:28:48发表:
加上了还是不行啊!!
zhoutingting 于 2011-07-17 16:11:41发表:
/usr/bin/ld: /usr/local/lib/libdatrie.a(trie.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
加上 -fPIC 再执行make重新编译!
alick 于 2011-06-18 00:16:09发表:
不是提醒你带上 -fPIC 选项重新编译么?vdnuiv 于 2011-06-16 21:12:55发表:
同情噢