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

Bug 944371

Summary: sci-calculators/units-2.23 - [ncurses-6.5] [meson] [libtool] [gcc-15] units.h: error: conflicting types for strchr; have char (void)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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-calculators:units-2.23:20241121-115245.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-11-21 20:26:16 UTC
too long lines were shrinked:

>>> Compiling source in /var/tmp/portage/sci-calculators/units-2.23/work/units-2.23 ...
make -O -j4 units 
x86_64-pc-linux-gnu-gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.23\" -DPACKAGE_STRING=\"GNU\ units\ 2
x86_64-pc-linux-gnu-gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.23\" -DPACKAGE_STRING=\"GNU\ units\ 2
x86_64-pc-linux-gnu-gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.23\" -DPACKAGE_STRING=\"GNU\ units\ 2
In file included from parse.y:27:
units.h:57:12: error: conflicting types for strchr; have char *(void)
   57 |      char *strchr();
      |            ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20241117-232508

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  <dev-build/meson-9999
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

  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:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
*)	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-11 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 16e1516b54ae30bf9e4c4156fb2189a5513e3bab
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 21 11:03:49 2024 +0000

    2024-11-21 11:03:48 UTC

emerge -qpvO =sci-calculators/units-2.23
[ebuild  N    ] sci-calculators/units-2.23  USE="units-cur" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-11-21 20:26:17 UTC
Created attachment 911278 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-21 20:26:18 UTC
Created attachment 911279 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-21 20:26:20 UTC
Created attachment 911280 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-21 20:26:20 UTC
Created attachment 911281 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-21 20:26:21 UTC
Created attachment 911282 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-21 20:26:23 UTC
Created attachment 911283 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-21 20:26:24 UTC
Created attachment 911284 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-21 20:26:24 UTC
Created attachment 911285 [details]
sci-calculators:units-2.23:20241121-115245.log
Comment 9 Toralf Förster gentoo-dev 2024-11-21 20:26:25 UTC
Created attachment 911286 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-11-24 11:21:26 UTC
The bug has been closed via the following commit(s):

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

commit 4ac010dc31052b2613d65002caf05e0ffe52bd3e
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-11-24 08:52:41 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-11-24 11:21:16 +0000

    sci-calculators/units: don't build with C23
    
    Don't build with C23.
    Also remove a sed command that was doing nothing (qa-sed).
    
    Closes: https://bugs.gentoo.org/944371
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sci-calculators/units/units-2.23-r1.ebuild | 61 ++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)