xiaoxiang781216 commented on PR #10302:
URL: https://github.com/apache/nuttx/pull/10302#issuecomment-1685213143
@fxysunshine need fix:
```
====================================================================================
Cmake in present: nrf5340-dk/sdc_nimble_cpunet,CONFIG_ARM_TOOLCHAIN_GNU_EABI
Configuration/Tool:
nrf5340-dk/sdc_nimble_cpunet,CONFIG_ARM_TOOLCHAIN_GNU_EABI
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Building NuttX...
[1/873] Building C object
libs/libc/CMakeFiles/c.dir/pthread/pthread_attr_setschedpolicy.c.obj
[2/873] Building C object
libs/libc/CMakeFiles/c.dir/pthread/pthread_attr_destroy.c.obj
[3/873] Building C object
libs/libc/CMakeFiles/c.dir/pthread/pthread_attr_getschedpolicy.c.obj
[4/873] Building C object
libs/libc/CMakeFiles/c.dir/netdb/lib_getaddrinfo.c.obj
FAILED: libs/libc/CMakeFiles/c.dir/netdb/lib_getaddrinfo.c.obj
/tools/ccache/bin/arm-none-eabi-gcc -D__KERNEL__ -D__NuttX__
-I/github/workspace/sources/nuttx/libs/libc -isystem
/github/workspace/sources/nuttx/include -isystem
/github/workspace/sources/nuttx/build/include -isystem
/github/workspace/sources/nuttx/build/include_arch -Wstrict-prototypes
-mtune=cortex-m33 -march=armv8-m.main+dsp -mfloat-abi=soft -fno-common -Wall
-Wshadow -Wundef -nostdlib -mthumb -Wa,-mthumb -Wa,-mimplicit-it=always -Os
-fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections
-fdiagnostics-color=always -Wstrict-prototypes -DNDEBUG -MD -MT
libs/libc/CMakeFiles/c.dir/netdb/lib_getaddrinfo.c.obj -MF
libs/libc/CMakeFiles/c.dir/netdb/lib_getaddrinfo.c.obj.d -o
libs/libc/CMakeFiles/c.dir/netdb/lib_getaddrinfo.c.obj -c
/github/workspace/sources/nuttx/libs/libc/netdb/lib_getaddrinfo.c
/github/workspace/sources/nuttx/libs/libc/netdb/lib_getaddrinfo.c: In
function 'getaddrinfo':
Error:
/github/workspace/sources/nuttx/libs/libc/netdb/lib_getaddrinfo.c:129:24:
error: storage size of 'host' isn't known
129 | FAR struct hostent_s host;
| ^~~~
Warning:
/github/workspace/sources/nuttx/libs/libc/netdb/lib_getaddrinfo.c:182:16:
warning: implicit declaration of function 'getservbyname_r'
[-Wimplicit-function-declaration]
182 | else if (getservbyname_r(servname, NULL, &ent, NULL, 0, &sp)
== OK)
| ^~~~~~~~~~~~~~~
In file included from /github/workspace/sources/nuttx/include/stdio.h:35,
from /github/workspace/sources/nuttx/libs/libc/libc.h:33,
from
/github/workspace/sources/nuttx/libs/libc/netdb/lib_getaddrinfo.c:35:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]