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

Bug 880341

Summary: dev-libs/libdnsres-0.1a-r3 - arc4random.c: error: call to undeclared function time; ISO C99 and later
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: CONFIRMED ---    
Severity: normal CC: jy6x2b32pie9
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36138
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
dev-libs:libdnsres-0.1a-r3:20221107-231408.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-08 08:51:35 UTC
      deprecated in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
dewks(wks)
^
arc4random.c:19:11: error: call to undeclared function 'time'; 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_no_multilib_systemd-j4_test-20221107-060003

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
php cli (if any):
GNU Make 4.4

  HEAD of ::gentoo
commit 389e31d93bef2036bae3539459c8dcdbef89b049
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 7 22:16:52 2022 +0000

    2022-11-07 22:16:51 UTC

emerge -qpvO dev-libs/libdnsres
[ebuild  N    ] dev-libs/libdnsres-0.1a-r3  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-11-08 08:51:36 UTC
Created attachment 828735 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-08 08:51:37 UTC
Created attachment 828737 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-11-08 08:51:38 UTC
Created attachment 828739 [details]
dev-libs:libdnsres-0.1a-r3:20221107-231408.log
Comment 4 Toralf Förster gentoo-dev 2022-11-08 08:51:40 UTC
Created attachment 828741 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-11-08 08:51:41 UTC
Created attachment 828743 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-11-08 08:51:42 UTC
Created attachment 828745 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-08 08:51:43 UTC
Created attachment 828747 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-08 08:51:45 UTC
Created attachment 828749 [details]
temp.tar.bz2
Comment 9 jy6x2b32pie9 2024-04-06 12:39:29 UTC
Upstream appears dead...
I am unable to port it to musl. I am unable to fix clang compilation errors.
But C99 at least is fixable.