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:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard: fixed in 0.9.4-r1
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-31 10:05 UTC by Agostino Sarubbo
Modified: 2024-10-29 18:46 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,71.43 KB, text/plain)
2022-12-31 10:05 UTC, Agostino Sarubbo
Details
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
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

NOTE:
(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:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-31 10:05:08 UTC
Created attachment 846112 [details]
build.log

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 https://gitlab.com/coolreader-ng/crengine-ng/-/commit/62106833d4e8af5325ed7a55c7a897e43a52bb20
Will be in the next version.
Comment 4 Aleksey Chernov 2023-01-01 06:26:38 UTC
Created attachment 846322 [details, diff]
0001-Compile-warnings-errors-fixed-strcasecmp-missing-pro.patch

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

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09803522a2796b647f85a4aaa4e877792fefccf5

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

    app-text/crengine-ng: compilation fixes
    
    Closes: https://bugs.gentoo.org/889078
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 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(+)