Summary: | app-i18n/freewnn-1.1.1_alpha23-r1: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christopher Fore <csfore> |
Component: | Current packages | Assignee: | CJK Team <cjk> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | csfore, jy6x2b32pie9 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: | build.log using gcc 14 |
clang-lld_tinderbox has reproduced this issue with version 1.1.1_alpha23-r1 - Updating summary. Configure script fails to check for presence of string.h correctly, fails with compilation errors, declares that STDC_HEADERS are undefined, this causes compilation failure in main program. |
Created attachment 882694 [details] build.log using gcc 14 Reproduction steps: 1. Install GCC 14 2. emerge -1 app-i18n/freewnn rk_main.c:260:21: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 260 | return (*s ? (s + strlen (s) - 1) : s); | ^~~~~~ rk_read.c: In function ‘trytoopen’: rk_main.c:45:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ 44 | #include "rk_fundecl.h" +++ |+#include <string.h> 45 | #include "jslib.h" rk_main.c:260:21: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 260 | return (*s ? (s + strlen (s) - 1) : s); | ^~~~~~