当前位置:网站首页>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. 设计循环队列
- 不要小看 WebSocket!长连接、有状态、双向、全双工都是王炸技能
- C#爬虫之通过Selenium获取浏览器请求响应结果
- 2022年最新的Android面试大厂必考174题(附带详细答案)
- 丙二醇二乙酸酯(Propylene Glycol Diacetate)
- Alibaba senior experts create a learning architecture from scratch, including Alibaba's internal technology stack PPT, PFD actual combat
- Handler 源码解析
- Rust:多线程并发编程
- 【计网】二、物理层
猜你喜欢
随机推荐
Rust:多线程并发编程
[Dataset][VOC] Rat dataset voc format 3001 sheets
力扣刷题之合并两个有序数组
POJ 2377 Bad Cowtractors(最大生成树)
LeetCode 622. Designing Circular Queues
Matlab论文插图绘制模板第42期—气泡矩阵图(相关系数矩阵图)
不要小看 WebSocket!长连接、有状态、双向、全双工都是王炸技能
Difference差分数组
Postgresql source code (64) Query execution - data structure and execution process before submodule Executor (2) execution
Handler 源码解析
Handler source code analysis
【木马免杀】
The effective square of the test (one question of the day 7/29)
盘点在线帮助中心对企业能够起到的作用
微信小程序分享功能
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting
Unity gets the actual coordinates of the ui on the screen under the canvas
CS免杀姿势
MVC vs MVP
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position








