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

Bug 870445

Summary: sys-block/scsiping-0.0.1-r1:0 - main.c: error: implicit declaration of function atoi [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
sys-block:scsiping-0.0.1-r1:20220916-180430.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-16 18:07:03 UTC
>>> Compiling source in /var/tmp/portage/sys-block/scsiping-0.0.1-r1/work/scsiping-0.0.1 ...
make -j4 DEBUG= 'CFLAGS=-pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' 
gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int   -c -o main.o main.c
main.c: In function main:
main.c:47:33: error: implicit declaration of function atoi [-Werror=implicit-function-declaration]
   47 |                         count = atoi(optarg);
      |                                 ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220914-050006

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.1
 [2] x86_64-pc-linux-gnu-12.2.1 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
*)	Eclipse Temurin JRE 8.345_p01 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-jre-bin-8  system-vm
  [3]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit e5cd60aa15289f27c42e8230065d3f4c599234a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 16 17:46:46 2022 +0000

    2022-09-16 17:46:45 UTC

emerge -qpvO sys-block/scsiping
[ebuild  N    ] sys-block/scsiping-0.0.1-r1
Comment 1 Toralf Förster gentoo-dev 2022-09-16 18:07:05 UTC
Created attachment 805894 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-16 18:07:06 UTC
Created attachment 805897 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-16 18:07:08 UTC
Created attachment 805900 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-16 18:07:09 UTC
Created attachment 805903 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-16 18:07:10 UTC
Created attachment 805906 [details]
sys-block:scsiping-0.0.1-r1:20220916-180430.log
Comment 6 Toralf Förster gentoo-dev 2022-09-16 18:07:11 UTC
Created attachment 805909 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-09-28 02:35:28 UTC
The bug has been closed via the following commit(s):

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

commit 4153ee687b291e4ce63a3826a85ec044b736a492
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-28 00:31:29 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-28 02:34:34 +0000

    sys-block/scsiping: fix build with clang16
    
    Previous commit let this respect CC, so maybe clang
    will be used now...
    
    Closes: https://bugs.gentoo.org/870445
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 sys-block/scsiping/files/scsiping-0.0.1-clang16.patch | 8 ++++++++
 sys-block/scsiping/scsiping-0.0.1-r1.ebuild           | 4 ++++
 2 files changed, 12 insertions(+)