Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889078 - app-text/crengine-ng-0.9.3 fails to compile (CLANG-STRICTER-SYSTEM): fonts.c:945:7: error: call to undeclared function strcasecmp; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Summary: app-text/crengine-ng-0.9.3 fails to compile (CLANG-STRICTER-SYSTEM): fonts.c:...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
Keywords: PATCH
Depends on:
Blocks: clang-16-porting
  Show dependency tree
Reported: 2022-12-31 10:05 UTC by Agostino Sarubbo
Modified: 2023-01-03 10:43 UTC (History)
1 user (show)

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

build.log (build.log,71.43 KB, text/plain)
2022-12-31 10:05 UTC, Agostino Sarubbo
0001-Compile-warnings-errors-fixed-strcasecmp-missing-pro.patch (0001-Compile-warnings-errors-fixed-strcasecmp-missing-pro.patch,1.38 KB, patch)
2023-01-01 06:26 UTC, Aleksey Chernov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-31 10:05:05 UTC

Issue: app-text/crengine-ng-0.9.3 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-31 10:05:08 UTC
Created attachment 846112 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-31 10:05:09 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

FAILED: thirdparty/antiword/CMakeFiles/cre_antiword.dir/fonts.c.o 
FAILED: thirdparty/chmlib/CMakeFiles/cre_chmlib.dir/src/chm_lib.c.o 
/var/tmp/portage/app-text/crengine-ng-0.9.3/work/crengine-ng-0.9.3/thirdparty/antiword/fonts.c:945:7: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Comment 3 Aleksey Chernov 2023-01-01 06:24:15 UTC
Fixed in upstream
Will be in the next version.
Comment 4 Aleksey Chernov 2023-01-01 06:26:38 UTC
Created attachment 846322 [details, diff]

Or apply this patch to current version.
Comment 5 Larry the Git Cow gentoo-dev 2023-01-03 10:43:13 UTC
The bug has been closed via the following commit(s):

commit 09803522a2796b647f85a4aaa4e877792fefccf5
Author:     Andrey Grozin <>
AuthorDate: 2023-01-03 10:42:58 +0000
Commit:     Andrey Grozin <>
CommitDate: 2023-01-03 10:42:58 +0000

    app-text/crengine-ng: compilation fixes
    Signed-off-by: Andrey Grozin <>

 app-text/crengine-ng/crengine-ng-0.9.4-r1.ebuild   | 60 ++++++++++++++++++++++
 app-text/crengine-ng/files/crengine-ng-0.9.4.patch | 55 ++++++++++++++++++++
 2 files changed, 115 insertions(+)