当前位置:网站首页>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 952. Calculate Maximum Component Size by Common Factor
- ctfshow php特性
- 手把手教你定位线上MySQL慢查询问题,包教包会
- [笔记]机器学习之前言介绍
- U-Net生物医学图像分割讲解(Convolutional Networks for BiomedicalImage Segmentation)
- Execute the mysql script file in the docker mysql container and solve the garbled characters
- 力扣刷题之有效的正方形(每日一题7/29)
- The effective square of the test (one question of the day 7/29)
- 【C语言学习笔记(七)】C语言重定向输入与输出
- LOL英雄联盟卡顿掉帧问题解决办法 2022年8月1日
猜你喜欢
随机推荐
YAML中多行字符串的配置方法:|+、 |、 |-、 >+、 >、 >-的区别
友宏医疗与Actxa签署Pre-M Diabetes TM 战略合作协议
How does MySQL permanently support Chinese input once and for all?
Execute the mysql script file in the docker mysql container and solve the garbled characters
ROS仿真环境搭建
C#将位图旋转90度
阿里巴巴政委体系-第六章、阿里政委体系运作
阿里二面:多线程间的通信方式有几种?举例说明
PreFixSum前缀和
【计网】二、物理层
idea——同一项目开启多个实例(不同端口)
安装radondb mysql遇到问题
1-php学习笔记之数据类型
分享即时通讯开发之WebSocket:概念、原理、易错常识、动手实践
Rust:多线程并发编程
Handler 源码解析
Alibaba senior experts create a learning architecture from scratch, including Alibaba's internal technology stack PPT, PFD actual combat
Shell编程之循环语句
图像超分——Real-ESRGAN快速上手
Web项目Controller统一返回实体类