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

Bug 880523

Summary: app-text/rman-3.2-r1 - rman.c: error: incompatible function pointer types passing int (const
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: StormByte
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/34244
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
app-text:rman-3.2-r1:20221108-211103.log
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
temp.tar.bz2
Fix incompatible types in cmp function

Description Toralf Förster gentoo-dev 2022-11-08 21:37:36 UTC
clang -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -DNDEBUG -DVOLLIST='"1:2:3:4:5:6:7:8:9:o:l:n:p"' -DMANTITLEPRINTF='"%s(%s) manual page"' -DMANREFPRINTF='"%s.%s"' -DPOLYGLOTMANVERSION=\"3.2\" -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -o rman rman.c
rman.c:141:16: warning: '/*' within block comment [-Wcomment]
/*int fMan=1;           /* invoke agressive man page filtering? */
                        ^
rman.c:364:78: error: incompatible function pointer types passing 'int (const
      char **, const char **)' to parameter of type '__compar_fn_t' (aka 'int
      (*)(const void *, const void *)')

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

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

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.6
php cli (if any):

  HEAD of ::gentoo
commit 01bcecb6150e3df576568f2050291d4e5bf3e344
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 8 20:16:54 2022 +0000

    2022-11-08 20:16:54 UTC

emerge -qpvO app-text/rman
[ebuild  N    ] app-text/rman-3.2-r1
Comment 1 Toralf Förster gentoo-dev 2022-11-08 21:37:37 UTC
Created attachment 829797 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-08 21:37:38 UTC
Created attachment 829799 [details]
app-text:rman-3.2-r1:20221108-211103.log
Comment 3 Toralf Förster gentoo-dev 2022-11-08 21:37:40 UTC
Created attachment 829801 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-08 21:37:41 UTC
Created attachment 829803 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-08 21:37:42 UTC
Created attachment 829805 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-08 21:37:43 UTC
Created attachment 829807 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-08 21:37:44 UTC
Created attachment 829809 [details]
temp.tar.bz2
Comment 8 David Carlos Manuelda 2023-06-14 06:37:51 UTC
I've made a patch that makes it compile to be tested, it seems not to give problems but a proper test request is required.
Comment 9 David Carlos Manuelda 2023-06-14 06:38:32 UTC
Created attachment 863806 [details, diff]
Fix incompatible types in cmp function
Comment 10 Larry the Git Cow gentoo-dev 2023-12-13 07:54:48 UTC
The bug has been closed via the following commit(s):

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

commit 785b732be3914227b8455af1a69dcb15ad781ab6
Author:     Leonardo Hernández Hernández <leohdz172@proton.me>
AuthorDate: 2023-12-11 23:11:32 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-12-13 07:50:10 +0000

    app-text/rman: update EAPI 7 -> 8, fix -Wincompatible-pointer-types
    
    Closes: https://bugs.gentoo.org/880523
    Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
    Closes: https://github.com/gentoo/gentoo/pull/34244
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../rman-3.2-incompatible-pointer-types.patch      | 24 ++++++++++++++++
 app-text/rman/rman-3.2-r2.ebuild                   | 32 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)