当前位置:网站首页>编译gdb7.11.1报错解决
编译gdb7.11.1报错解决
2022-07-22 11:03:00 【panfei263031】
编译过程中,出现了好几次error: conflicting types for的问题,例如:
linux-arm-low.c:272:1: error: conflicting types for ‘ps_get_thread_area’
ps_get_thread_area (const struct ps_prochandle *ph,
^~~~~~~~~~~~~~~~~~
In file included from gdb_proc_service.h:30:0,
from linux-low.h:24,
from linux-arm-low.c:20:
/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/proc_service.h:72:17: note: previous declaration of ‘ps_get_thread_area’ was here
extern ps_err_e ps_get_thread_area (struct ps_prochandle *
这种问题比较好解决,重定义了嘛,直接把重定义的文件打开,把重定义的部分注释掉就可以了。
类似的报错:
proc-service.c:217:1: error: conflicting types for ‘ps_lsetfpregs’
proc-service.c:217:1: error: conflicting types for ‘ps_lsetfpregs’
arm-linux-nat.c:480:1: error: conflicting types for ‘ps_get_thread_area’
linux-arm-low.c:272:1: error: conflicting types for ‘ps_get_thread_area’
第二个问题:
gdb gdb_proc_service.h:173:9: error: unknown type name ‘gdb_fpregset_t’
在gdb/gdb_proc_service.h中,加入如下头文件:
include “gregset.h”
加之后的内容如下:
#ifndef GDB_PROC_SERVICE_H
#define GDB_PROC_SERVICE_H
#include <sys/types.h>
#include “gregset.h”
#ifdef HAVE_PROC_SERVICE_H
边栏推荐
- Interview of 2020 Central South University information and communication summer camp
- Solve the problems that tracepass website cannot be opened and stackoverflow is not fully displayed
- Embedded system learning notes
- Juc-6.2-concurrency container copyonwritearraylist
- 如何做好研发精益需求管理
- Servlet
- Pytoch automatic derivation
- Buuctf breakthrough diary 02-- [hctf 2018] warmup1
- Character interception command
- 解决TraceCompass网站打不开和Stackoverflow显示不全的问题
猜你喜欢
BUUCTF闯关日记04--[强网杯 2019]随便注1
How to do research and development lean demand management well
Write a 3D banner using JS
[lttng learning journey] - trace control -- advanced
Chapter 6: EASYCODE code generator
[LTTng学习之旅]------Trace控制--进阶
Chapter 2: Minio stand-alone version, using the client to back up files
校园IPTV数字电视教学直播系统在淮安生态文旅区实验小学的应用
MySQL imports 300million data
Seata first met
随机推荐
pytorch 自定义数据集载入(标签在csv文件里)
6.管理服务器和服务
TIME的新封面:元宇宙将改变一切
Bash basic function - Historical command and completion
Character processing command
Solve the thirdscripterror error of wechat applet
Notes d'apprentissage du système intégré
YOLO9000: Better, Faster, Stronger
JS BOM(浏览器对象模型)
[lttng learning journey] - trace control - Preliminary
Buuctf breakthrough diary -- [geek challenge 2019] hardsql1
水库防汛泄洪抢险应急广播系统建设4G无线广播模式分析
Write a 3D banner using JS
BUUCTF闯关日记03--[极客大挑战 2019]Havefun1
嵌入式系統學習筆記
Bash variable -- user defined variable
BUUCTF闯关日记--[极客大挑战 2019]HardSQL1
Wechat applet comprehensive case practice 1
Environment variable configuration file
[lttng learning journey] ----- core concepts