Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
C库_LIBC
newlib
libmodbus编译时libc和newlib库sigval等重复定于
发布于 2021-12-23 15:45:18 浏览:1253
订阅该版
``` xia@linux:~/codedate/stm32f407v04$ scons /home/xia/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( /home/xia/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build/applications/main.o In file included from /usr/include/newlib/signal.h:6, from /home/xia/rt-thread/include/libc/libc_signal.h:71, from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /usr/include/newlib/sys/signal.h:42:7: error: redefinition of 'union sigval' 42 | union sigval { | ^~~~~~ In file included from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /home/xia/rt-thread/include/libc/libc_signal.h:27:7: note: originally defined here 27 | union sigval | ^~~~~~ In file included from /usr/include/newlib/signal.h:6, from /home/xia/rt-thread/include/libc/libc_signal.h:71, from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /usr/include/newlib/sys/signal.h:47:8: error: redefinition of 'struct sigevent' 47 | struct sigevent { | ^~~~~~~~ In file included from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /home/xia/rt-thread/include/libc/libc_signal.h:35:8: note: originally defined here 35 | struct sigevent | ^~~~~~~~ In file included from /usr/include/newlib/signal.h:6, from /home/xia/rt-thread/include/libc/libc_signal.h:71, from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /usr/include/newlib/sys/signal.h:72:3: error: conflicting types for 'siginfo_t' 72 | } siginfo_t; | ^~~~~~~~~ In file included from /home/xia/rt-thread/include/rtlibc.h:21, from /home/xia/rt-thread/include/rtdef.h:1087, from /home/xia/rt-thread/include/rtthread.h:24, from applications/main.c:11: /home/xia/rt-thread/include/libc/libc_signal.h:54:24: note: previous declaration of 'siginfo_t' was here 54 | typedef struct siginfo siginfo_t; | ^~~~~~~~~ scons: *** [build/applications/main.o] Error 1 scons: building terminated because of errors. 在Ubuntu20.04环境下通过menuconfig使用libmodbus软件包编译时出现库重复定义问题,帮看下是什么问题 ```
查看更多
1
个回答
默认排序
按发布时间排序
liuduanfei
2021-12-24
这家伙很懒,什么也没写!
![image.png](https://oss-club.rt-thread.org/uploads/20211224/2262e88a59d44bf5bb78936e5127616e.png.webp) 这里定义一下,屏蔽libc_signal.h中的定义啊。
撰写答案
登录
注册新账号
关注者
0
被浏览
1.3k
关于作者
qq4957
这家伙很懒,什么也没写!
提问
1
回答
0
被采纳
0
关注TA
发私信
相关问题
1
ulog, cmbacktrace组件编译警告
2
关于动态so中调用fopen
3
文档中心对libc、newlib、minilibc的介绍有些乱
4
GNU GCC 10.2.1 与newlib版本兼容问题
5
RTThread的Libc里的newlib的malloc适配实现的原理是什么?
6
RT-Thread是如何链接newlib的?
7
RT-THREAD怎么使用标准C库函数
8
USB 提示undefined reference to `_sbrk'
9
关于rt-smart的musl-libc
10
kservice.c中为什么重新实现了C库的一部分函数?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
RT-Thread项目助手v0.2.0 - 支持Env Windows
2
RttreadV5.10上,GD32F450Z RTC时间显示问题
3
rt-smart启动流程分析
4
EtherKit快速上手PROFINET
5
RTThread USB转串口无法接收数据
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
2
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部