当前位置:网站首页>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"
指定编译平台和运行平台
边栏推荐
- idea——同一项目开启多个实例(不同端口)
- Postgresql source code (65) analysis of the working principle of the new snapshot system Globalvis
- Postgresql源码(64)查询执行——子模块Executor(2)执行前的数据结构和执行过程
- Web项目中简单使用线程池
- LineSegmentTree线段树
- 阿里资深专家打造从零开始学架构,含阿里内部技术栈PPT、PFD实战
- MySQL 啥时候用表锁,啥时候用行锁?这些你都应该知道吧
- SQL server 实现触发器备份表数据
- LeetCode 952. 按公因数计算最大组件大小
- ROS仿真环境搭建
猜你喜欢

When does MySQL use table locks and when to use row locks?You should know this

Radondb mysql installation problems

安装radondb mysql遇到问题

C#爬虫之通过Selenium获取浏览器请求响应结果

不要小看 WebSocket!长连接、有状态、双向、全双工都是王炸技能
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting

红日安全内网渗透靶场-VulnStack-1

【夜莺监控方案】08-监控msyql集群(prometheuse+n9e+mysqld_exporter)

MySQL master-slave, 6 minutes you master!

idea——同一项目开启多个实例(不同端口)
随机推荐
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting
金鱼哥RHCA回忆录:CL210管理计算资源--管理计算节点+章节实验
Confused!Ali was abused on the one hand, but was fortunate to be promoted to Huawei's technology, and successfully got the offer, with an annual salary of 40w
【WPS-OFFICE-Word】 WPS中样式的运作原理?样式自动更新、自动改变如何处理?样式的管理方法?
力扣刷题之合并两个有序数组
Protobuf Grpc使用异常 类型有未导出的方法,并且是在不同的软件包中定义
机器学习的方法总结
Bytes to beat three sides take offer: network + GC + + IO + redis + JVM red-black tree + data structure, to help you quickly into the giant!!!!!
MySQL 主从,6 分钟带你掌握!
[数据集][VOC]老鼠数据集voc格式3001张
微信小程序分享功能
梅科尔工作室-14天华为培训七
标准C语言学习总结11
epoll + 线程池 + 前后置服务器分离
面试突击:什么是粘包和半包?怎么解决?
201712-3 CCF Crontab满分题解
[Notes] Introduction to machine learning
Postgresql source code (64) Query execution - data structure and execution process before submodule Executor (2) execution
OneNote 教程,如何在 OneNote 中设置页面格式?
力扣刷题之有效的正方形(每日一题7/29)