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

Bug 883711

Summary: dev-perl/XML-LibXML-2.20.700-r2 fails to compile (CLANG-STRICTER-SYSTEM): perl-libxml-mm.c:142:18: error: incompatible function pointer types passing void (void , void , xmlChar ) (aka void (void , void , unsigned char )) to parameter of type xmlHashScan
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/shlomif/perl-XML-LibXML/pull/75
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-11-30 05:35:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-perl/XML-LibXML-2.20.700-r2 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:21 UTC
Created attachment 838393 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-05-12 23:50:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23ea36dfba863f53e66a3a9f73aeec9124dd9aa5

commit 23ea36dfba863f53e66a3a9f73aeec9124dd9aa5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-12 23:42:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-12 23:42:16 +0000

    dev-perl/XML-LibXML: fix modern C issues
    
    Closes: https://bugs.gentoo.org/883711
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-perl/XML-LibXML/XML-LibXML-2.20.800-r1.ebuild  | 82 ++++++++++++++++++++++
 .../files/XML-LibXML-2.20.800-modern-c.patch       | 45 ++++++++++++
 2 files changed, 127 insertions(+)