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

Bug 709642

Summary: net-misc/getdate-1.2-r1 : getdate.c:(.text.startup+<snip>): undefined reference to stime
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/14923
https://bugs.gentoo.org/show_bug.cgi?id=727738
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 708318    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-misc:getdate-1.2-r1:20200214-151639.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-14 18:20:47 UTC
      |                   time_t {aka long int}
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-misc/getdate-1.2-r1/temp/ccYfkrVv.o: in function `main':
getdate.c:(.text.startup+0x24b): undefined reference to `stime'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: getdate] Error 1
 * ERROR: net-misc/getdate-1.2-r1::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200210-221913

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
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.41.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 14 Feb 2020 14:37:52 +0000

emerge -qpvO net-misc/getdate
[ebuild  N    ] net-misc/getdate-1.2-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-14 18:20:50 UTC
Created attachment 613822 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-14 18:20:53 UTC
Created attachment 613824 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-14 18:20:56 UTC
Created attachment 613826 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-14 18:20:58 UTC
Created attachment 613828 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-14 18:21:01 UTC
Created attachment 613830 [details]
net-misc:getdate-1.2-r1:20200214-151639.log
Comment 6 Toralf Förster gentoo-dev 2020-02-14 18:21:04 UTC
Created attachment 613832 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-03-14 21:42:52 UTC
The bug has been closed via the following commit(s):

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

commit fb38cbd4b7f03e04e3275ce0ab540fff373499ea
Author:     Sam James (sam_c) <sam@cmpct.info>
AuthorDate: 2020-03-10 23:38:53 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-03-14 21:42:22 +0000

    net-misc/getdate: Fix build with glibc-2.31, bump EAPI
    
    * Patches getdate to not use stime (removed in glibc-2.31).
      (Tested and adjusts time fine.)
    
    * Bump EAPI from 4 -> 7
    
    Closes: https://bugs.gentoo.org/709642
    Signed-off-by: Sam James (sam_c) <sam@cmpct.info>
    Closes: https://github.com/gentoo/gentoo/pull/14923
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 net-misc/getdate/files/getdate-glibc-2.31.patch | 13 ++++++++
 net-misc/getdate/getdate-1.2-r2.ebuild          | 42 +++++++++++++++++++++++++
 2 files changed, 55 insertions(+)