Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
C库_LIBC
newlib
libmodbus编译时libc和newlib库sigval等重复定于
发布于 2021-12-23 15:45:18 浏览:1171
订阅该版
``` 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.2k
关于作者
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
如何在master上的BSP中添加配置yml文件
2
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
3
RT-Thread 发布 EtherKit开源以太网硬件!
4
rt-thread使用cherryusb实现虚拟串口
5
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
热门标签
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
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部