嵌入式技术论坛
直播中

最强海贼王

8年用户 1377经验值
擅长:MEMS/传感技术
私信 关注
[问答]

该怎么解决使用rt-thread软件包mbedtls-v2.7.10.1编译报错的问题

编译环境 MDK5

使用rt-thread r软件包 mbedtls-v2.7.10.1 的时候,编译报错,报错如下:

compiling timing_alt.c...

packages\mbedtls-v2.7.10.1\ports\src\timing_alt.c(104): error: #20: identifier "SIGALRM" is undefined

signal( SIGALRM, sighandler );

packages\mbedtls-v2.7.10.1\ports\src\timing_alt.c: 0 warnings, 1 error

compiling tls_net.c...

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(298): warning: #223-D: function "fcntl" declared implicitly

if( ( fcntl( ctx->fd, F_GETFL) & O_NONBLOCK ) != O_NONBLOCK )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(298): error: #20: identifier "F_GETFL" is undefined

if( ( fcntl( ctx->fd, F_GETFL) & O_NONBLOCK ) != O_NONBLOCK )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(298): error: #20: identifier "O_NONBLOCK" is undefined

if( ( fcntl( ctx->fd, F_GETFL) & O_NONBLOCK ) != O_NONBLOCK )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(467): error: #20: identifier "FIONBIO" is undefined

return (ioctlsocket(fd, FIONBIO, &n));

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(477): error: #20: identifier "FIONBIO" is undefined

return (ioctlsocket(fd, FIONBIO, &n));

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(527): error: #20: identifier "ECONNRESET" is undefined

if (errno == ECONNRESET)

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(529): error: #20: identifier "EINTR" is undefined

if( errno == EINTR )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(578): error: #20: identifier "EINTR" is undefined

if( errno == EINTR )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(612): error: #20: identifier "ECONNRESET" is undefined

if (errno == ECONNRESET)

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c(614): error: #20: identifier "EINTR" is undefined

if( errno == EINTR )

packages\mbedtls-v2.7.10.1\ports\src\tls_net.c: 1 warning, 9 errors

请问有没有遇到过类似问题的,该怎么解决编译报错问题?

回帖(1)

夏日余晖

2022-8-8 10:28:06
用gcc试试
举报

更多回帖

发帖
×
20
完善资料,
赚取积分