Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922572 - app-i18n/freewnn-1.1.1_alpha23-r1: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration])
Summary: app-i18n/freewnn-1.1.1_alpha23-r1: error: implicit declaration of function ‘s...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-20 16:56 UTC by Christopher Fore
Modified: 2024-03-25 13:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log using gcc 14 (build.log,29.37 KB, text/x-log)
2024-01-20 16:56 UTC, Christopher Fore
Details

Note You need to log in before you can comment on or make changes to this bug.
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 jy6x2b32pie9 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.