Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883707 - dev-perl/Tk-JPEG-Lite-2.15.0-r1 fails to compile (CLANG-STRICTER-SYSTEM): imgJPEG.c:131:5: error: incompatible function pointer types initializing Tk_ImageStringWriteProc (aka int ()(struct Tcl_Interp , struct Tcl_Obj , struct Tk_PhotoImageBlock )) with
Summary: dev-perl/Tk-JPEG-Lite-2.15.0-r1 fails to compile (CLANG-STRICTER-SYSTEM): img...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard: patch
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2022-11-30 05:35 UTC by Agostino Sarubbo
Modified: 2024-12-01 08:37 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,68.46 KB, text/plain)
2022-11-30 05:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-30 05:35:12 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-perl/Tk-JPEG-Lite-2.15.0-r1 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-11-30 05:35:13 UTC
Created attachment 838389 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-12-01 08:37:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa5e219c1ae22c22366f7003a6bd92389764731

commit 1aa5e219c1ae22c22366f7003a6bd92389764731
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2024-08-24 01:00:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-01 08:37:13 +0000

    dev-perl/Tk-JPEG-Lite: Build fix for modern C compilers
    
    [sam: Revbump for modern C fix, add bug link to patch.]
    
    Closes: https://bugs.gentoo.org/883707
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/38327
    Signed-off-by: Sam James <sam@gentoo.org>

 ...5.0-r1.ebuild => Tk-JPEG-Lite-2.15.0-r2.ebuild} |  7 ++++-
 .../files/Tk-JPEG-Lite-2.15.0-Modernize-C.patch    | 32 ++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletion(-)