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

Bug 884405

Summary: dev-ruby/ruby-ldap-0.9.20-r3 fails to compile (CLANG-STRICTER-SYSTEM): ldap.c:204:30: error: incompatible function pointer types passing VALUE (VALUE, VALUE) (aka unsigned long (unsigned long, unsigned long)) to parameter of type rb_block_call_func_t (ak
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/bearded/ruby-ldap/issues/47
https://github.com/gentoo/gentoo/pull/31924
Whiteboard: fixed in 0.9.20-r4
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-12-05 07:53:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-ruby/ruby-ldap-0.9.20-r3 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-05 07:53:28 UTC
Created attachment 840183 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-07-21 06:43:35 UTC
The bug has been closed via the following commit(s):

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

commit d7f861624c8c3cad1aa2e791b866f6a676eff08e
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-20 19:01:06 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-07-21 06:43:30 +0000

    dev-ruby/ruby-ldap: Fix incompatible function pointer types
    
    Closes: https://bugs.gentoo.org/884405
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../files/ruby-ldap-0.9.20-clang16-fix.patch       | 12 +++++++
 dev-ruby/ruby-ldap/ruby-ldap-0.9.20-r4.ebuild      | 38 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)