Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680944 - net-fs/openafs-1.8.2-r1 : /.../osi_machdep.h:101:8: error: implicit declaration of function do_gettimeofday
Summary: net-fs/openafs-1.8.2-r1 : /.../osi_machdep.h:101:8: error: implicit declarati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 17:22 UTC by Toralf Förster
Modified: 2020-09-13 09:48 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.24 KB, text/plain)
2019-03-19 17:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,123.03 KB, text/plain)
2019-03-19 17:22 UTC, Toralf Förster
Details
environment (environment,131.70 KB, text/plain)
2019-03-19 17:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.59 KB, application/x-bzip)
2019-03-19 17:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,57.79 KB, application/x-bzip)
2019-03-19 17:22 UTC, Toralf Förster
Details
net-fs:openafs-1.8.2-r1:20190319-003404.log (net-fs:openafs-1.8.2-r1:20190319-003404.log,660.75 KB, text/plain)
2019-03-19 17:22 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,59.82 KB, application/x-bzip)
2019-03-19 17:22 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 2019-03-19 17:22:38 UTC
                 from /var/tmp/portage/net-fs/openafs-1.8.2-r1/work/openafs-1.8.2/src/libafs/MODLOAD-5.0.2-MP/afs_callback.c:21:
/var/tmp/portage/net-fs/openafs-1.8.2-r1/work/openafs-1.8.2/src/libafs/MODLOAD-5.0.2-MP/afs_callback.c: In function ‘SRXAFSCB_GetCE’:
/var/tmp/portage/net-fs/openafs-1.8.2-r1/work/openafs-1.8.2/src/afs/LINUX/osi_machdep.h:101:8: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
        do_gettimeofday(&__afs_tv);                           \
        ^~~~~~~~~~~~~~~
/var/tmp/portage/net-fs/openafs-1.8.2-r1/work/openafs-1.8.2/src/afs/afs_osi.h:170:25: note: in expansion of macro ‘osi_GetTime’

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop-gnome_20190316-092022

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO net-fs/openafs
[ebuild  N    ] net-fs/openafs-1.8.2-r1  USE="modules namei ncurses pthreaded-ubik supergroups -api -bitmap-later -debug -doc -fuse -kauth -kerberos -perl -tsm -ubik-read-while-write"
Comment 1 Toralf Förster gentoo-dev 2019-03-19 17:22:40 UTC
Created attachment 569784 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-03-19 17:22:43 UTC
Created attachment 569786 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-03-19 17:22:46 UTC
Created attachment 569788 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-03-19 17:22:49 UTC
Created attachment 569790 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-03-19 17:22:52 UTC
Created attachment 569792 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-03-19 17:22:55 UTC
Created attachment 569794 [details]
net-fs:openafs-1.8.2-r1:20190319-003404.log
Comment 7 Toralf Förster gentoo-dev 2019-03-19 17:22:58 UTC
Created attachment 569796 [details]
temp.tbz2
Comment 8 Cheyenne Wills 2019-05-13 13:59:45 UTC
Just a quick FWIW.. the fix for this is in upstream
Comment 9 Andrew Savchenko gentoo-dev 2019-05-13 17:06:21 UTC
(In reply to Cheyenne Wills from comment #8)
> Just a quick FWIW.. the fix for this is in upstream

In 1.8.3 or some later commit?
Could you point to exact commit hash?
Comment 10 Cheyenne Wills 2019-05-16 15:04:20 UTC
(In reply to Andrew Savchenko from comment #9)
> (In reply to Cheyenne Wills from comment #8)
> > Just a quick FWIW.. the fix for this is in upstream
> 
> In 1.8.3 or some later commit?
> Could you point to exact commit hash?

There are 3 commits needed for Linux 5.0, they are all in 1.8.3

Linux_5.0: replaced current_kernel_time with ktime_get_coarse_real_ts64 
 804fefa6b46ed75921a1560a9e6b37842eabc94a

Linux_5.0: Use super_block flags instead of Mount flags when filling sb 
 25829aaef319728e30fc45895e8945438e4dc719

Linux_5.0: replace do_gettimeofday with ktime_get_real_ts64 
 e7d8dc01cc1f0592eaecea5b87990097e9e59b88

A 4th commit is not yet in 1.8.x .. (scheduled for 1.8.4) but it's just a housekeeping update so it's really not needed for building on Linux 5.0.

LINUX: correct include for ktime_get_coarse_real_ts64() 
 b34f74cf2bdb18f004bc9b3ce15a0bb183426703
Comment 11 Larry the Git Cow gentoo-dev 2020-09-13 09:48:07 UTC
The bug has been closed via the following commit(s):

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

commit d9e3fbc9f8f1990ab161537c1e0ce3658489f20d
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2020-09-13 09:40:58 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2020-09-13 09:47:49 +0000

    net-fs/openafs: update to 1.8.6
    
    - Version bump to 1.8.6, this fixes many bugs,
    - including CVE-2019-1860{1..3}.
    - Update to the latest upstream stable 1_8_x branch, which fixes
      more bugs and bring kernel 5.9 support.
    - Migrate to tmpfiles eclass.
    - Fix build with USE=tsm.
    - Fix systemd unit files, thanks Adrian <adrian@planetcoding.net>
      for suggestion.
    - Fix doxygen dep.
    
    Bug: https://bugs.gentoo.org/719136
    Closes: https://bugs.gentoo.org/680944
    Closes: https://bugs.gentoo.org/686488
    Closes: https://bugs.gentoo.org/706738
    Closes: https://bugs.gentoo.org/736160
    Closes: https://bugs.gentoo.org/740630
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 net-fs/openafs/Manifest             |   3 +
 net-fs/openafs/openafs-1.8.6.ebuild | 343 ++++++++++++++++++++++++++++++++++++
 2 files changed, 346 insertions(+)