当前位置:网站首页>relocation R_X86_64_PC32 against,/usr/bin/ld: final link failed: Bad value
relocation R_X86_64_PC32 against,/usr/bin/ld: final link failed: Bad value
2022-08-03 19:15:00 【cao849861802】
net-snmp编译的时候报错
/usr/bin/ld: /usr/local/lib/libnetsnmp.a(default_store.o): relocation R_X86_64_PC32 against symbol `netsnmp_ds_set_string' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:462: recipe for target '../blib/arch/auto/NetSNMP/default_store/default_store.so' failed
make[2]: *** [../blib/arch/auto/NetSNMP/default_store/default_store.so] Error 1
make[2]: Leaving directory '/media/build/cyf/snmp/net-snmp-5.9.1/perl/default_store'
Makefile:485: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory '/media/build/cyf/snmp/net-snmp-5.9.1/perl'
Makefile:299: recipe for target 'perlmodules' failed
make: *** [perlmodules] Error 1
解决方法:
./configure --build=x86_64 --host=x86_64 --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log"
指定编译平台和运行平台
边栏推荐
- LeetCode 622. Designing Circular Queues
- 阿里巴巴政委体系-第八章、阿里政委工作方法论
- G6尝试 学习
- 要想成为黑客,离不开这十大基础知识
- FreeRTOS中级篇
- 七夕之前,终于整出了带AI的美丽秘笈
- 【微信小程序】NFC 标签打开小程序
- Force is brushed buckle problem for the sum of two Numbers
- Postgresql snapshot optimization Globalvis new system analysis (performance greatly enhanced)
- Standard C language learning summary 11
猜你喜欢
随机推荐
阿里巴巴政委体系-第八章、阿里政委工作方法论
一文搞懂│php 中的 DI 依赖注入
Calculation of the array serial number of Likou brush questions (one question per day 7/28)
【C语言学习笔记(五)】while循环与for循环
2022年最新的Android面试大厂必考174题(附带详细答案)
BinomialTree 二叉树
X86 function call model analysis
6000 字+,帮你搞懂互联网架构演变历程!
力扣刷题之合并两个有序数组
Word另存为PDF后无导航栏解决办法
多线程和并发编程(四)
JumpServer开源堡垒机完成龙芯架构兼容性认证
Radondb mysql installation problems
OneNote 教程,如何在 OneNote 中设置页面格式?
Postgresql源码(65)新快照体系Globalvis工作原理分析
LineSegmentTree线段树
普通用户如何利用小红书赚钱呢?小红书的流量是真的吗?
MySQL【变量、流程控制与游标】
pytest接口自动化测试框架 | Jenkins集成初探
X86函数调用模型分析









