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

Bug 919391

Summary: sys-apps/isapnptools-1.27 - resource.c: error: passing argument 2 of getdelim from incompatible pointer type [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: jy6x2b32pie9
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36451
https://github.com/retroprom/isapnptools/issues/1
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
sys-apps:isapnptools-1.27:20231206-215525.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-12-07 08:35:28 UTC
      |                     ^~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include    -O3 -pipe -march=native -fno-diagnostics-color -c realtime.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include    -O3 -pipe -march=native -fno-diagnostics-color -c cardinfo.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include    -O3 -pipe -march=native -fno-diagnostics-color -c pnp-select.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include    -O3 -pipe -march=native -fno-diagnostics-color -c resource.c
resource.c: In function allocate_pci_resources:
resource.c:299:28: error: passing argument 2 of getdelim from incompatible pointer type [-Wincompatible-pointer-types]
  299 |    while( getdelim( &line, &lineMax, '\n', fp ) > 0 )
      |                            ^~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.8.1_p1 [openjdk-17]
2)	OpenJDK 21.0.1_p12 [openjdk-21]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-21 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 0570064fe9f79eccf58478186fd9a3f9938afca2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 6 20:32:02 2023 +0000

    2023-12-06 20:32:02 UTC

emerge -qpvO sys-apps/isapnptools
[ebuild  N    ] sys-apps/isapnptools-1.27
Comment 1 Toralf Förster gentoo-dev 2023-12-07 08:35:29 UTC
Created attachment 878016 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-07 08:35:30 UTC
Created attachment 878017 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-07 08:35:31 UTC
Created attachment 878018 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-07 08:35:32 UTC
Created attachment 878019 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-07 08:35:33 UTC
Created attachment 878020 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-07 08:35:34 UTC
Created attachment 878021 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-07 08:35:35 UTC
Created attachment 878022 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-07 08:35:36 UTC
Created attachment 878023 [details]
sys-apps:isapnptools-1.27:20231206-215525.log
Comment 9 Toralf Förster gentoo-dev 2023-12-07 08:35:37 UTC
Created attachment 878024 [details]
temp.tar.xz
Comment 10 NHO 2024-04-01 18:25:25 UTC
Well, there's upstream? Or something. Or someone had imported source into github.

https://github.com/retroprom/isapnptools/issues/1
Comment 11 Larry the Git Cow gentoo-dev 2024-05-08 16:04:33 UTC
The bug has been closed via the following commit(s):

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

commit dcfe7c9123998cc686cd653af0dc1362d08a7db2
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2024-04-27 08:07:40 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-05-08 16:03:30 +0000

    sys-apps/isapnptools: Fix iterator type for C99, update EAPI 7 -> 8
    
    Also explicitly void function whose input we intentionally ignore
    
    Closes: https://bugs.gentoo.org/919391
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/36451
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 ...apnptools-1.27-incompatible-pointer-types.patch | 20 ++++++++++++++
 sys-apps/isapnptools/isapnptools-1.27-r1.ebuild    | 31 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)