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

Bug 870973

Summary: net-misc/ices-2.0.2-r1 - timing.c: error: call to undeclared function gettimeofday; ISO C99 and
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
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
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
net-misc:ices-2.0.2-r1:20220917-173528.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-17 19:37:00 UTC
make[3]: Entering directory '/var/tmp/portage/net-misc/ices-2.0.2-r1/work/ices-2.0.2/src/timing'
/bin/sh ../../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I. -I../..    -I/usr/include/libxml2 -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o libicetiming_la-timing.lo `test -f 'timing.c' || echo './'`timing.c
mkdir .libs
 clang -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/libxml2 -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c timing.c  -fPIC -DPIC -o .libs/libicetiming_la-timing.o
timing.c:53:5: error: call to undeclared function 'gettimeofday'; ISO C99 and
      later do not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220917-070004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/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:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

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

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

    2022-09-17 17:16:46 UTC

emerge -qpvO net-misc/ices
[ebuild  N    ] net-misc/ices-2.0.2-r1
Comment 1 Toralf Förster gentoo-dev 2022-09-17 19:37:01 UTC
Created attachment 808921 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 19:37:02 UTC
Created attachment 808924 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 19:37:04 UTC
Created attachment 808927 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 19:37:05 UTC
Created attachment 808930 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 19:37:06 UTC
Created attachment 808933 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 19:37:08 UTC
Created attachment 808936 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 19:37:09 UTC
Created attachment 808939 [details]
net-misc:ices-2.0.2-r1:20220917-173528.log
Comment 8 Toralf Förster gentoo-dev 2022-09-17 19:37:10 UTC
Created attachment 808942 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-10-06 20:45:04 UTC
The bug has been closed via the following commit(s):

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

commit c09e4b7cfb3c84a29dd2c66beb30fb5128078088
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-06 19:52:48 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-06 20:44:44 +0000

    net-misc/ices: fix build with clang/lld and upcoming clang-16
    
    One configure test was broken with (any) clang/lld on multilib profiles
    due to passing -L/usr/lib which led to underlinking wrt #740794.
    
    For 16 it's the usual missing header, handled by adjusting the autoconf
    test (revbumped in previous commit at same time for other compilers).
    
    Closes: https://bugs.gentoo.org/740794
    Closes: https://bugs.gentoo.org/870973
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 net-misc/ices/files/ices-2.0.2-gettimeofday.patch | 15 +++++++++++++++
 net-misc/ices/files/ices-2.0.2-libogg-test.patch  | 17 +++++++++++++++++
 net-misc/ices/ices-2.0.2-r2.ebuild                | 13 +++++++++++++
 3 files changed, 45 insertions(+)