Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945802 - sys-fs/mtpfs-1.1-r6 - [gcc-15] mtpfs.c: error: initialization of int ( )(const char , mode_t) {aka int ( )(const char , unsigned int)} from incompatible pointer type int
Summary: sys-fs/mtpfs-1.1-r6 - [gcc-15] mtpfs.c: error: initialization of int ( )(cons...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-03 08:27 UTC by Toralf Förster
Modified: 2024-12-15 16:16 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.90 KB, text/plain)
2024-12-03 08:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,90.02 KB, text/plain)
2024-12-03 08:27 UTC, Toralf Förster
Details
environment (environment,26.89 KB, text/plain)
2024-12-03 08:27 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-12-03 08:27 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.68 KB, application/x-xz)
2024-12-03 08:27 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,4.18 KB, application/x-xz)
2024-12-03 08:27 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,194.44 KB, text/plain)
2024-12-03 08:27 UTC, Toralf Förster
Details
sys-fs:mtpfs-1.1-r6:20241203-054211.log (sys-fs:mtpfs-1.1-r6:20241203-054211.log,5.05 KB, text/plain)
2024-12-03 08:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,8.03 KB, application/x-xz)
2024-12-03 08:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-03 08:27:22 UTC
too long lines were shrinked:

config.status: creating Makefile
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-fs/mtpfs-1.1-r6/work/mtpfs-1.1 ...
make -O -j4 
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"MTPfs\" -DPACKAGE_TARNAME=\"mtpfs\" -DPACKAGE_VERSION=\"1.1\" -DPACKAGE_STRING=\"MTPfs\ 1.1\" -DPACKAGE_BUGREPORT=\"Chris\ Debenham\ \<chris@adebenham.com\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mtpfs\" -DVERSION=\"1.1\" -DDEBUG=0 -I.  -DFUSE_USE_VERSION=22 -I/usr
mtpfs.c:1343:16: error: initialization of int (*)(const char *, mode_t) {aka int (*)(const char *, unsigned int)} from incompatible pointer type int (*)(void) [-Wincompatible-pointer-types]
 1343 |     .chmod   = mtpfs_blank,
      |                ^~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241201-015002

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.4
llvm-config: 19.1.4
Python 3.12.7
go version go1.23.3 linux/amd64
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0
  [3]   rust-bin-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 77e1944892c3d46f993e819350964caec25ff94c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 3 04:35:44 2024 +0000

    2024-12-03 04:35:44 UTC

emerge -qpvO =sys-fs/mtpfs-1.1-r6
[ebuild  N    ] sys-fs/mtpfs-1.1-r6  USE="-debug -mad"
Comment 1 Toralf Förster gentoo-dev 2024-12-03 08:27:23 UTC
Created attachment 913152 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-03 08:27:24 UTC
Created attachment 913153 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-12-03 08:27:26 UTC
Created attachment 913154 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-12-03 08:27:27 UTC
Created attachment 913156 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-12-03 08:27:28 UTC
Created attachment 913157 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-03 08:27:29 UTC
Created attachment 913158 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-03 08:27:30 UTC
Created attachment 913159 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-12-03 08:27:31 UTC
Created attachment 913160 [details]
sys-fs:mtpfs-1.1-r6:20241203-054211.log
Comment 9 Toralf Förster gentoo-dev 2024-12-03 08:27:32 UTC
Created attachment 913161 [details]
temp.tar.xz
Comment 10 OldManSeph 2024-12-11 18:24:15 UTC
Just encountered this one. Found the patch too. Is the patch already submitted?
Comment 11 Bernard Cafarelli gentoo-dev 2024-12-11 19:27:17 UTC
You mean https://github.com/cjd/mtpfs/pull/28 ?
If so, not yet but I plan to get it in soon (small patch)
Comment 12 OldManSeph 2024-12-11 19:29:57 UTC
(In reply to Bernard Cafarelli from comment #11)
> You mean https://github.com/cjd/mtpfs/pull/28 ?
> If so, not yet but I plan to get it in soon (small patch)

No rush. I was going to submit a modified ebuild, as the package seems somewhat deprecated.
Comment 13 Bernard Cafarelli gentoo-dev 2024-12-12 09:03:02 UTC
By all means, please do, I have not used that one nor updated the ebuild for a while
Comment 14 Larry the Git Cow gentoo-dev 2024-12-15 16:16:37 UTC
The bug has been closed via the following commit(s):

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

commit d4e3ec6536fab815dcc9a3b64696ac246d04ef66
Author:     OldManSeph <sschaefering@gmail.com>
AuthorDate: 2024-12-14 09:47:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-15 16:15:36 +0000

    sys-fs/mtpfs: fix for c23 in 1.1-r6
    
    Patch from: https://github.com/cjd/mtpfs/commit/3b7b0d3ac7e15c9b654e19489bb4be84d48698f7.patch
    
    Closes: https://bugs.gentoo.org/945802
    Signed-off-by: OldManSeph <sschaefering@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/39719
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/mtpfs/files/mtpfs-1.1-c23-fix.patch | 38 ++++++++++++++++++++++++++++++
 sys-fs/mtpfs/mtpfs-1.1-r6.ebuild           |  5 ++--
 2 files changed, 41 insertions(+), 2 deletions(-)