- 论坛徽章:
- 0
|
一 系统和错误描述:
#file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
#tar zxvf libnet.tar.gz
#cd libnet
#./configure
#make && make install
#cd ../
#tar zxvf heartbeat-2.0.4.tar.gz
#cd heartbeat-2.0.4
#./ConfigureMe configure --disable-swig --disable-snmp-subagent
#make
此时出现错误提示,截取部分如下:
/usr/bin/ld: /usr/local/lib/libnetsnmp.a(snmp_client.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/libnetsnmp.a(snmp_client.o): could not read symbols: Bad value
二 我的处理步骤:
1 #export CFLAGS=-fPIC
#tar zxvf libnet.tar.gz
#./configure
#make && make install
后重新编译安装heartbeat,还是报上面的那个错误。
希望能得到您的帮助,谢谢! |
|