编译环境 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
请问有没有遇到过类似问题的,该怎么解决编译报错问题?
更多回帖