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

Bug 943959

Summary: sci-libs/cfitsio-4.4.1 - [libtool] [gcc-15] /.../putcol.c: error: cptr undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Astronomy project <sci-astronomy>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/40826
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
sci-libs:cfitsio-4.4.1:20241119-033822.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-11-19 08:53:19 UTC
too long lines were shrinked:

FAILED: CMakeFiles/cfitsio.dir/putcol.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_BZIP2=1 -DHAVE_FMEMOPEN -DHAVE_FTRUNCATE -DHAVE_NET_SERVICES -DHAVE_SHMEM_SERVICES -DHAVE_UNISTD_H -D_REENTRANT -Dcfitsio_EXPORTS -I/var/tmp/portage/sci-libs/cfitsio-4.4.1/work/cfitsio-4.4.1 -I/var/tmp/portage/sci-libs/cfitsio-4.4.1/work/cfitsio-4.4.1_build-ab
/var/tmp/portage/sci-libs/cfitsio-4.4.1/work/cfitsio-4.4.1/putcol.c: In function ffiter:
/var/tmp/portage/sci-libs/cfitsio-4.4.1/work/cfitsio-4.4.1/putcol.c:1229:24: error: expected identifier or ( before nullptr
 1229 |     char **stringptr, *nullptr, *cptr;
      |                        ^~~~~~~
/var/tmp/portage/sci-libs/cfitsio-4.4.1/work/cfitsio-4.4.1/putcol.c:1672:25: error: cptr undeclared (first use in this function)
 1672 |                         cptr = nullstr;
      |                         ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20241113-211502

  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.3
llvm-config: 19.1.3
Python 3.12.7
go version go1.23.2 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0
  [3]   rust-1.82.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]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 8566b21081f24b8ff8c5a8ecadbce83f2bdad484
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 18 17:03:30 2024 +0000

    2024-11-18 17:03:29 UTC

emerge -qpvO =sci-libs/cfitsio-4.4.1
[ebuild  N    ] sci-libs/cfitsio-4.4.1  USE="bzip2 threads -curl -test -tools" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2 ssse3"
Comment 1 Toralf Förster gentoo-dev 2024-11-19 08:53:20 UTC
Created attachment 910057 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-19 08:53:21 UTC
Created attachment 910058 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-19 08:53:23 UTC
Created attachment 910059 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-19 08:53:23 UTC
Created attachment 910060 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-19 08:53:24 UTC
Created attachment 910061 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-19 08:53:25 UTC
Created attachment 910062 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-19 08:53:27 UTC
Created attachment 910063 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-19 08:53:28 UTC
Created attachment 910064 [details]
sci-libs:cfitsio-4.4.1:20241119-033822.log
Comment 9 Toralf Förster gentoo-dev 2024-11-19 08:53:29 UTC
Created attachment 910065 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2025-03-10 01:37:49 UTC
The bug has been closed via the following commit(s):

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

commit 7ac36f22a5ee77e6516ba65ce6ef9dabb9825be1
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-03-01 09:27:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 01:36:31 +0000

    sci-libs/cfitsio: port to C23
    
    Rename nullptr to ptr_to_null, as it points to null in string, not
    is pointer that is null.
    
    Closes: https://bugs.gentoo.org/943959
    Closes: https://bugs.gentoo.org/944747
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40826
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/cfitsio/cfitsio-4.5.0-r1.ebuild           | 73 ++++++++++++++++++++++
 .../files/cfitsio-4.5.0-rename-nullptr.patch       | 51 +++++++++++++++
 2 files changed, 124 insertions(+)