Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884405 - 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
Summary: dev-ruby/ruby-ldap-0.9.20-r3 fails to compile (CLANG-STRICTER-SYSTEM): ldap.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard: fixed in 0.9.20-r4
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-05 07:53 UTC by Agostino Sarubbo
Modified: 2024-10-29 17:20 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,61.26 KB, text/plain)
2022-12-05 07:53 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-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(+)