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

Bug 873997

Summary: dev-db/libdbi-drivers-0.9.0-r1 - src/constraint.c: error: incompatible integer to pointer conversion
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-db:libdbi-drivers-0.9.0-r1:20221002-095817.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-02 10:01:44 UTC
      const char *, int, struct TestReporter_ *)')
      [-Wincompatible-function-pointer-types]
    constraint->test = &test_with_matcher;
                     ^ ~~~~~~~~~~~~~~~~~~
src/constraint.c:167:8: error: incompatible integer to pointer conversion
      initializing 'int (*)(const void *)' with an expression of type 'intptr_t'
      (aka 'long') [-Wint-conversion]

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20221001-020003

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
2)	Eclipse Temurin JRE 8.345_p01 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8 
  [2]   openjdk-jre-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 5f2331619be8f1a3f2478b03a36a636fb976ba2b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 09:01:58 2022 +0000

    2022-10-02 09:01:57 UTC

emerge -qpvO dev-db/libdbi-drivers
[ebuild  N    ] dev-db/libdbi-drivers-0.9.0-r1  USE="sqlite -doc -firebird -mysql -oci8 -postgres -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-10-02 10:01:45 UTC
Created attachment 815224 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-02 10:01:46 UTC
Created attachment 815227 [details]
dev-db:libdbi-drivers-0.9.0-r1:20221002-095817.log
Comment 3 Toralf Förster gentoo-dev 2022-10-02 10:01:48 UTC
Created attachment 815230 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-02 10:01:49 UTC
Created attachment 815233 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-02 10:01:50 UTC
Created attachment 815236 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-02 10:01:51 UTC
Created attachment 815239 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-02 10:01:53 UTC
Created attachment 815242 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-12-20 15:19:01 UTC
The bug has been closed via the following commit(s):

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

commit d306c830e97ab2bd9dc4e305010103a76e073263
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-20 15:17:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-20 15:18:40 +0000

    dev-db/libdbi-drivers: use fedora's modern C patch
    
    Less void* casting.
    
    Closes: https://bugs.gentoo.org/894750
    Closes: https://bugs.gentoo.org/873997
    Closes: https://bugs.gentoo.org/870961
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libdbi-drivers-0.9.0-clang16-build-fix.patch   | 44 ++++++++++++++++------
 1 file changed, 32 insertions(+), 12 deletions(-)