This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 55327574e755f3dd363037d3259e288e7967b58c Author: haopengxiang <[email protected]> AuthorDate: Thu Jun 18 14:49:40 2026 +0800 system/libarchive: add FILE_STREAM dependency libarchive unconditionally compiles libarchive_fe/*.c (line_reader.c, err.c) and core archive_read_open_file.c / archive_write_open_file.c which use FILE* / fopen / stdin. When CONFIG_FILE_STREAM is disabled, the lib_get_stream() prototype in nuttx/lib/lib.h is hidden, so the stdin macro (stdio.h) expands to a call to an undeclared function returning int, triggering -Werror=int-conversion in line_reader.c. Add an explicit dependency so UTILS_LIBARCHIVE only appears when CONFIG_FILE_STREAM is enabled, preventing the invalid config combo. Signed-off-by: haopengxiang <[email protected]> Signed-off-by: tengshuangshuang <[email protected]> --- system/libarchive/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/system/libarchive/Kconfig b/system/libarchive/Kconfig index ac792438c..bcbb0c7e7 100644 --- a/system/libarchive/Kconfig +++ b/system/libarchive/Kconfig @@ -6,6 +6,7 @@ config UTILS_LIBARCHIVE tristate "libarchive" default n + depends on FILE_STREAM if UTILS_LIBARCHIVE
