Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716566 - games-puzzle/greedy-0.2.0-r1 : greedy.c: error: time_t undeclared (first use in this function)
Summary: games-puzzle/greedy-0.2.0-r1 : greedy.c: error: time_t undeclared (first use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-07 11:04 UTC by Toralf Förster
Modified: 2021-03-31 09:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.99 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,355.63 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
environment (environment,101.17 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,26.18 KB, application/x-bzip)
2020-04-07 11:04 UTC, Toralf Förster
Details
games-puzzle:greedy-0.2.0-r1:20200407-104854.log (games-puzzle:greedy-0.2.0-r1:20200407-104854.log,3.04 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.34 KB, application/x-bzip)
2020-04-07 11:05 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-07 11:04:45 UTC
  112 |  srand(time((time_t *) 0));
      |        ^~~~
greedy.c:112:14: error: time_t undeclared (first use in this function); did you mean timeout?
  112 |  srand(time((time_t *) 0));
      |              ^~~~~~
      |              timeout

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200328-201618

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Apr  7 09:39:12 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO games-puzzle/greedy
[ebuild  N    ] games-puzzle/greedy-0.2.0-r1
Comment 1 Toralf Förster gentoo-dev 2020-04-07 11:04:47 UTC
Created attachment 631106 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-07 11:04:50 UTC
Created attachment 631108 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-07 11:04:53 UTC
Created attachment 631110 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-07 11:04:56 UTC
Created attachment 631112 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-07 11:04:59 UTC
Created attachment 631114 [details]
games-puzzle:greedy-0.2.0-r1:20200407-104854.log
Comment 6 Toralf Förster gentoo-dev 2020-04-07 11:05:01 UTC
Created attachment 631116 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2021-03-31 09:40:40 UTC
The bug has been closed via the following commit(s):

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

commit 0490b4b3276c58900eab8c2a798eecfa7060304f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-03-31 09:40:16 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-03-31 09:40:16 +0000

    games-puzzle/greedy: Add missing includes
    
    Closes: https://bugs.gentoo.org/716566
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch | 12 ++++++++++++
 games-puzzle/greedy/greedy-0.2.0-r2.ebuild                   |  2 ++
 2 files changed, 14 insertions(+)