Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624330 - sys-apps/frandom-1.1 : /.../frandom.c:267:7: error: implicit declaration of function ‘copy_to_user’ [-Werror=implicit-function-declaration]
Summary: sys-apps/frandom-1.1 : /.../frandom.c:267:7: error: implicit declaration of f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-09 08:09 UTC by Toralf Förster
Modified: 2017-10-13 11:34 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.22 KB, text/plain)
2017-07-09 08:09 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,90.89 KB, text/plain)
2017-07-09 08:09 UTC, Toralf Förster
Details
environment (environment,118.45 KB, text/plain)
2017-07-09 08:10 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.50 KB, application/x-bzip)
2017-07-09 08:10 UTC, Toralf Förster
Details
sys-apps:frandom-1.1:20170708-214540.log (sys-apps:frandom-1.1:20170708-214540.log,2.82 KB, text/plain)
2017-07-09 08:10 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.56 KB, application/x-bzip)
2017-07-09 08:10 UTC, Toralf Förster
Details
frandom-copy-from-user.patch (frandom-copy-from-user.patch,393 bytes, patch)
2017-08-30 17:13 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.