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

Bug 624330

Summary: sys-apps/frandom-1.1 : /.../frandom.c:267:7: error: implicit declaration of function ‘copy_to_user’ [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Rick Farina (Zero_Chaos) <zerochaos>
Status: RESOLVED FIXED    
Severity: normal CC: fedeliallalinea, jarausch, kripton
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-apps:frandom-1.1:20170708-214540.log
temp.tbz2
frandom-copy-from-user.patch

Description Toralf Förster gentoo-dev 2017-07-09 08:09:51 UTC
  CC [M]  /var/tmp/portage/sys-apps/frandom-1.1/work/frandom-1.1/frandom.o
/var/tmp/portage/sys-apps/frandom-1.1/work/frandom-1.1/frandom.c: In function ‘frandom_read’:
/var/tmp/portage/sys-apps/frandom-1.1/work/frandom-1.1/frandom.c:267:7: error: implicit declaration of function ‘copy_to_user’ [-Werror=implicit-function-declaration]
   if (copy_to_user(buf, state->buf, dobytes)) {
       ^~~~~~~~~~~~
cc1: some warnings being treated as errors

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-gnome_20170706-211748

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

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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.4.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-07-09 08:09:55 UTC
Created attachment 482468 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-09 08:09:58 UTC
Created attachment 482470 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-09 08:10:02 UTC
Created attachment 482472 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-09 08:10:05 UTC
Created attachment 482474 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-09 08:10:09 UTC
Created attachment 482476 [details]
sys-apps:frandom-1.1:20170708-214540.log
Comment 6 Toralf Förster gentoo-dev 2017-07-09 08:10:12 UTC
Created attachment 482478 [details]
temp.tbz2
Comment 7 Marco Genasci 2017-08-30 17:13:38 UTC
Created attachment 491112 [details, diff]
frandom-copy-from-user.patch

Patch for version 1.1, the new version 1.2 [1] fix problem.

[1] http://billauer.co.il/download/frandom-1.2.tar.gz
Comment 8 Vedran Vrbanc 2017-10-13 11:34:39 UTC
The author has uploaded the version 1.2 to SourceForge. This version compiles successfully with newer kernels.

Now all that is needed to fix this bug is to bump the ebuild version to 1.2, I.E. copy the frandom-1.1.ebuild to frandom-1.2.ebuild.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-01 13:36:54 UTC
The bug has been closed via the following commit(s):

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

commit 2d987400c762eb696362869fe712c2871b45489f
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-12-01 13:34:38 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-12-01 13:36:22 +0000

    sys-apps/frandom: treeclean
    
    Closes: https://bugs.gentoo.org/778749
    Closes: https://bugs.gentoo.org/819252
    Closes: https://bugs.gentoo.org/624330
    Closes: https://bugs.gentoo.org/638378
    Closes: https://bugs.gentoo.org/660874
    Closes: https://bugs.gentoo.org/688704
    Closes: https://bugs.gentoo.org/756226
    Closes: https://bugs.gentoo.org/756229
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask                  | 12 ------------
 sys-apps/frandom/Manifest              |  1 -
 sys-apps/frandom/frandom-1.1-r1.ebuild | 31 -------------------------------
 sys-apps/frandom/metadata.xml          | 11 -----------
 4 files changed, 55 deletions(-)