zhhyu7 opened a new pull request, #22620:
URL: https://github.com/apache/nuttx/pull/22620
## Summary
apache/nuttx-apps#4201 makes NETUTILS_PING and NETUTILS_PING6 depend on
NET_SOCKOPTS: the ping libraries set ICMP_FILTER / ICMP6_FILTER with
setsockopt(), which only exists with CONFIG_NET_SOCKOPTS, and ping6
called it without a guard, so it failed to link without socket options.
Six configurations select ping through SYSTEM_PING but enable
NET_SOCKOPTS neither directly nor through another option (for example
NETDB_DNSCLIENT selects it). With that dependency their configuration
fails, which is what breaks the "Linux (other)" CI job of #4201 for
ci20:
warning: NETUTILS_PING (defined at apps/netutils/ping/Kconfig:27) has
direct dependencies NET_ICMP && NET_SOCKOPTS with value n, but is
currently being y-selected by the following symbols:
ERROR: failed to refresh
This PR adds CONFIG_NET_SOCKOPTS=y to them:
- mips/jz4780/ci20: net, jumbo
- arm/at32/at32f437-mini: eth
- arm/kinetis/twr-k64f120m: netnsh
- arm/rp23xx/raspberrypi-pico-2-w: composite
- arm/stm32f1/stm32butterfly2: nshnet
## Impact
- Six defconfigs, one line each. Socket options are built in; nothing
else changes for these boards.
- Independent of the apps change: the six configurations also configure
and refresh cleanly against apache/nuttx-apps master, so this can be
merged before or together with #4201.
depends-on:https://github.com/apache/nuttx-apps/pull/4201
## Testing
Host Ubuntu 22.04, kconfiglib. For each of the six configurations,
tools/configure.sh -l followed by tools/refresh.sh --silent:
- apps from #4201, without this PR: configure fails with the warning
above ("ERROR: failed to refresh").
- apps from #4201, with this PR: configure succeeds with
CONFIG_NET_SOCKOPTS=y and CONFIG_NETUTILS_PING=y; refresh.sh leaves
the defconfig unchanged.
- apps master, with this PR: configure and refresh.sh succeed.
The other 293 configurations that enable ping without NET_SOCKOPTS in
their defconfig were also configured against #4201; they already get
NET_SOCKOPTS from another option and are not touched.
checkpatch.sh -c -u -m -g passes.
--
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]