Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922572

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 packagesAssignee: 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

Description Christopher Fore 2024-01-20 16:56:33 UTC
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);
      |                     ^~~~~~
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-31 14:38:34 UTC
clang-lld_tinderbox has reproduced this issue with version 1.1.1_alpha23-r1 - Updating summary.
Comment 2 NHO 2024-03-25 13:57:54 UTC
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.